diff --git a/boards/mulle/include/periph_conf.h b/boards/mulle/include/periph_conf.h index 6bce2fff3990469861a1e25ccce4ede6824db11d..80b5dc64566b95b5e8b0fac8581709802c2a9dc6 100644 --- a/boards/mulle/include/periph_conf.h +++ b/boards/mulle/include/periph_conf.h @@ -293,16 +293,6 @@ static const spi_conf_t spi_config[] = { #define SPI_NUMOF (sizeof(spi_config) / sizeof(spi_config[0])) /** @} */ - -/** - * @name I2C configuration - * @{ - */ -#define I2C_NUMOF (1U) -#define I2C_CLK SystemBusClock -#define I2C_0_EN 1 -#define I2C_1_EN 0 -#define I2C_IRQ_PRIO CPU_DEFAULT_IRQ_PRIO /** * @name I2C baud rate configuration * @{ @@ -321,6 +311,16 @@ static const spi_conf_t spi_config[] = { #define KINETIS_I2C_F_MULT_FAST_PLUS (0) /** @} */ +/** + * @name I2C configuration + * @{ + */ +#define I2C_NUMOF (1U) +#define I2C_CLK SystemBusClock +#define I2C_0_EN 1 +#define I2C_1_EN 0 +#define I2C_IRQ_PRIO CPU_DEFAULT_IRQ_PRIO + /* I2C 0 device configuration */ #define I2C_0_DEV I2C0 #define I2C_0_CLKEN() (BITBAND_REG32(SIM->SCGC4, SIM_SCGC4_I2C0_SHIFT) = 1) @@ -336,7 +336,6 @@ static const spi_conf_t spi_config[] = { #define I2C_0_PORT_CFG (PORT_PCR_MUX(I2C_0_PIN_AF) | PORT_PCR_ODE_MASK) /** @} */ - /** * @name GPIO configuration * @{ diff --git a/cpu/cc2538/include/periph_cpu.h b/cpu/cc2538/include/periph_cpu.h index e57a73ac3e45b4e4cffe184784794a954724ad93..2fbe199bbb8c0cbd6be6ed0a3d1cc8da5aa7f917 100644 --- a/cpu/cc2538/include/periph_cpu.h +++ b/cpu/cc2538/include/periph_cpu.h @@ -48,6 +48,9 @@ typedef uint32_t gpio_t; */ #define GPIO_PIN(port, pin) (gpio_t)(((uint32_t)GPIO_A + (port << 12)) | pin) +/** + * @brief Define a custom GPIO_UNDEF value + */ #define GPIO_UNDEF 99 /** diff --git a/cpu/kinetis_common/include/periph_cpu.h b/cpu/kinetis_common/include/periph_cpu.h index a1c53b17e7c758f6f3d103dff01578cbf27f437a..5be69a2800d326724db99f7a7f0f42150f6a46df 100644 --- a/cpu/kinetis_common/include/periph_cpu.h +++ b/cpu/kinetis_common/include/periph_cpu.h @@ -245,11 +245,11 @@ typedef struct { */ typedef struct { FTM_Type* ftm; /**< used FTM */ - struct { /**< logical channel configuration */ + struct { gpio_t pin; /**< GPIO pin used, set to GPIO_UNDEF */ uint8_t af; /**< alternate function mapping */ uint8_t ftm_chan; /**< the actual FTM channel used */ - } chan[PWM_CHAN_MAX]; + } chan[PWM_CHAN_MAX]; /**< logical channel configuration */ uint8_t chan_numof; /**< number of actually configured channels */ uint8_t ftm_num; /**< FTM number used */ } pwm_conf_t; @@ -277,9 +277,11 @@ enum { /** * @brief Hardware timer type-specific device macros + * @{ */ #define TIMER_PIT_DEV(x) (TIMER_DEV(0 + (x))) #define TIMER_LPTMR_DEV(x) (TIMER_DEV(PIT_NUMOF + (x))) +/** @} */ /** * @brief CPU internal function for initializing PORTs diff --git a/cpu/lpc11u34/include/periph_cpu.h b/cpu/lpc11u34/include/periph_cpu.h index f498de2a5e0c5d6c8a8c294300bfb3d9245d9d73..0c791c3c68e59909a7f1095b76277f71741d0e98 100644 --- a/cpu/lpc11u34/include/periph_cpu.h +++ b/cpu/lpc11u34/include/periph_cpu.h @@ -109,10 +109,10 @@ typedef enum { * @brief PWM configuration */ typedef struct { - LPC_CTxxBx_Type *dev; - __IO uint32_t *pins[PWM_CHAN_NUMOF]; /**< set to NULL if channel is not used */ - uint16_t clk_bit; - uint8_t af; + LPC_CTxxBx_Type *dev; /**< PWM device */ + __IO uint32_t *pins[PWM_CHAN_NUMOF]; /**< set to NULL if channel is not used */ + uint16_t clk_bit; /**< clock enable bit */ + uint8_t af; /**< alternate pin function */ } pwm_conf_t; /** @@ -120,16 +120,18 @@ typedef struct { * * @note The values expect the CPU to run at 12MHz * @todo Generalize the SPI driver + * + * @{ */ #define HAVE_SPI_CLK_T typedef enum { - SPI_CLK_100KHZ = 119, /**< drive the SPI bus with 100KHz */ - SPI_CLK_400KHZ = 29, /**< drive the SPI bus with 400KHz */ - SPI_CLK_1MHZ = 11, /**< drive the SPI bus with 1MHz */ - SPI_CLK_5MHZ = 2, /**< drive the SPI bus with 5MHz */ + SPI_CLK_100KHZ = 119, /**< drive the SPI bus with 100KHz */ + SPI_CLK_400KHZ = 29, /**< drive the SPI bus with 400KHz */ + SPI_CLK_1MHZ = 11, /**< drive the SPI bus with 1MHz */ + SPI_CLK_5MHZ = 2, /**< drive the SPI bus with 5MHz */ SPI_CLK_10MHZ = 0 /**< actual: 12 MHz */ } spi_clk_t; - +/** @} */ /** * @brief SPI configuration data diff --git a/cpu/lpc2387/include/periph_cpu.h b/cpu/lpc2387/include/periph_cpu.h index b29e78dc94ca1a2b694a4565aad84a00e9865d09..841b63bbf355d4b751f49cdde1845755eb933123 100644 --- a/cpu/lpc2387/include/periph_cpu.h +++ b/cpu/lpc2387/include/periph_cpu.h @@ -82,6 +82,7 @@ typedef enum { /** * @brief Override SPI clock speed values + * @{ */ #define HAVE_SPI_CLK_T typedef enum { @@ -91,6 +92,7 @@ typedef enum { SPI_CLK_5MHZ = 5000, /**< drive the SPI bus with 5MHz */ SPI_CLK_10MHZ = 10000 /**< drive the SPI bus with 10MHz */ } spi_clk_t; +/** @} */ /* @} */ #ifdef __cplusplus diff --git a/cpu/nrf5x_common/include/periph_cpu_common.h b/cpu/nrf5x_common/include/periph_cpu_common.h index 38a9ee0140cf664966cfce849278790035ea4d66..dbb681aa8fc6b0ff507ea53de48783ee67042afe 100644 --- a/cpu/nrf5x_common/include/periph_cpu_common.h +++ b/cpu/nrf5x_common/include/periph_cpu_common.h @@ -123,6 +123,7 @@ typedef struct { /** * @brief Override SPI mode values + * @{ */ #define HAVE_SPI_MODE_T typedef enum { @@ -131,9 +132,11 @@ typedef enum { SPI_MODE_2 = SPI_CONFIG_CPOL_Msk, /**< CPOL=1, CPHA=0 */ SPI_MODE_3 = (SPI_CONFIG_CPOL_Msk | SPI_CONFIG_CPHA_Msk) /**< CPOL=1, CPHA=1 */ } spi_mode_t; +/** @} */ /** * @brief Override SPI clock values + * @{ */ #define HAVE_SPI_CLK_T typedef enum { @@ -143,6 +146,7 @@ typedef enum { SPI_CLK_5MHZ = SPI_FREQUENCY_FREQUENCY_M4, /**< 5MHz */ SPI_CLK_10MHZ = SPI_FREQUENCY_FREQUENCY_M8 /**< 10MHz */ } spi_clk_t; +/** @} */ /** * @brief SPI configuration values diff --git a/cpu/sam3/include/periph_cpu.h b/cpu/sam3/include/periph_cpu.h index b2097b3337fb4f6504f77f135313d10e93a01c28..89b44b92c9a380f23b1b75afe0c81b94a5b4239a 100644 --- a/cpu/sam3/include/periph_cpu.h +++ b/cpu/sam3/include/periph_cpu.h @@ -127,6 +127,10 @@ typedef enum { GPIO_MUX_B = 1, /**< alternate function B */ } gpio_mux_t; +/** + * @brief Override default SPI modes + * @{ + */ #define HAVE_SPI_MODE_T typedef enum { SPI_MODE_0 = (SPI_CSR_NCPHA), /**< CPOL=0, CPHA=0 */ @@ -134,7 +138,12 @@ typedef enum { SPI_MODE_2 = (SPI_CSR_CPOL | SPI_CSR_NCPHA), /**< CPOL=1, CPHA=0 */ SPI_MODE_3 = (SPI_CSR_CPOL) /**< CPOL=1, CPHA=1 */ } spi_mode_t; +/** @} */ +/** + * @brief Override default SPI clock values + * @{ + */ #define HAVE_SPI_CLK_T typedef enum { SPI_CLK_100KHZ = (100000), /**< 100KHz */ @@ -143,6 +152,7 @@ typedef enum { SPI_CLK_5MHZ = (5000000), /**< 5MHz */ SPI_CLK_10MHZ = (10000000) /**< 10MHz */ } spi_clk_t; +/** @} */ /** * @brief Timer configuration data diff --git a/cpu/stm32f1/include/periph_cpu.h b/cpu/stm32f1/include/periph_cpu.h index b9bbe757b9dcbc3f2f571dc260dd337fac5eafc4..b1e7f364229623a33c5c4be6cb4fb47bf332c47d 100644 --- a/cpu/stm32f1/include/periph_cpu.h +++ b/cpu/stm32f1/include/periph_cpu.h @@ -51,6 +51,11 @@ extern "C" { */ #define GPIO_MODE(mode, cnf, odr) (mode | (cnf << 2) | (odr << 4)) +/** + * @brief Define the number of available PM modes + */ +#define PM_NUM_MODES (2U) + #ifndef DOXYGEN /** * @brief Override GPIO mode options @@ -126,8 +131,6 @@ typedef struct { uint8_t chan; /**< DAC device used for this line */ } dac_conf_t; -#define PM_NUM_MODES (2U) - #ifdef __cplusplus } #endif diff --git a/cpu/stm32f2/include/periph_cpu.h b/cpu/stm32f2/include/periph_cpu.h index 82d740cbf8c18409f6180e319191a4025dcc804f..ffd10918ac4412205dfc947d2eace1dfc1cb0251 100644 --- a/cpu/stm32f2/include/periph_cpu.h +++ b/cpu/stm32f2/include/periph_cpu.h @@ -178,6 +178,11 @@ static inline uint32_t dma_ifc(int stream) } } +/** + * @brief Enable DMA interrupts + * + * @param[in] stream logical DMA stream + */ static inline void dma_isr_enable(int stream) { if (stream < 7) { diff --git a/drivers/include/adt7310.h b/drivers/include/adt7310.h index 9a379cc896b9a05aae6ed13bc01b4d9f1f949e30..4ba673b6fb2fcba211a6dd7facf740798f766a73 100644 --- a/drivers/include/adt7310.h +++ b/drivers/include/adt7310.h @@ -120,6 +120,7 @@ int adt7310_set_config(adt7310_t *dev, uint8_t config); * * @param[in] dev pointer to sensor device descriptor * @param[in] spi SPI bus the sensor is connected to + * @param[in] clk SPI bus speed * @param[in] cs GPIO pin the chip select signal is connected to * * @return 0 on success diff --git a/drivers/include/lis3dh.h b/drivers/include/lis3dh.h index e588aee25cf7817f24a8c8aa28ac73b380844b9a..a0015fdc7d86585698c955e403b0d5c74d1a5cd8 100644 --- a/drivers/include/lis3dh.h +++ b/drivers/include/lis3dh.h @@ -715,6 +715,7 @@ typedef struct __attribute__((packed)) * * @param[in] dev Device descriptor of sensor to initialize * @param[in] spi SPI bus the accelerometer is connected to + * @param[in] clk SPI bus speed * @param[in] cs_pin GPIO connected to the chip select pin of the accelerometer * @param[in] scale Initial scale setting of the sensor * diff --git a/tests/lwip/Makefile b/tests/lwip/Makefile index 38c10c2841ca72f5d394ae2e8919a60af8b98178..1320c3fd83ef97100b18bd2ac738f359c64bbbac 100644 --- a/tests/lwip/Makefile +++ b/tests/lwip/Makefile @@ -9,7 +9,7 @@ BOARD_BLACKLIST := arduino-mega2560 msb-430h telosb waspmote-pro z1 arduino-uno arduino-duemilanove BOARD_INSUFFICIENT_MEMORY := airfy-beacon arduino-mega2560 msb-430h nrf6310 \ nucleo-f334 pca10005 stm32f0discovery telosb \ - weio yunjia-nrf51822 z1 nucleo-f030 + weio yunjia-nrf51822 z1 nucleo-f030 wsn430-v1_4 # including lwip_ipv6_mld would currently break this test on at86rf2xx radios USEMODULE += lwip lwip_ipv6_autoconfig lwip_conn_ip lwip_netdev2