diff --git a/boards/common/e104-bt50xxa-tb/include/periph_conf.h b/boards/common/e104-bt50xxa-tb/include/periph_conf.h index 33f8632ab9..3a6a4b1ca9 100644 --- a/boards/common/e104-bt50xxa-tb/include/periph_conf.h +++ b/boards/common/e104-bt50xxa-tb/include/periph_conf.h @@ -74,8 +74,8 @@ static const i2c_conf_t i2c_config[] = { static const uart_conf_t uart_config[] = { { /* Mapped to USB virtual COM port */ .dev = NRF_UARTE0, - .rx_pin = GPIO_PIN(0,14), - .tx_pin = GPIO_PIN(0,18), + .rx_pin = GPIO_PIN(0, 14), + .tx_pin = GPIO_PIN(0, 18), #ifdef MODULE_PERIPH_UART_HW_FC .rts_pin = GPIO_UNDEF, .cts_pin = GPIO_UNDEF, diff --git a/boards/common/particle-mesh/include/periph_conf_common.h b/boards/common/particle-mesh/include/periph_conf_common.h index c2bb6e3782..8557594a8a 100644 --- a/boards/common/particle-mesh/include/periph_conf_common.h +++ b/boards/common/particle-mesh/include/periph_conf_common.h @@ -39,9 +39,9 @@ extern "C" { static const spi_conf_t spi_config[] = { { .dev = NRF_SPIM0, - .sclk = GPIO_PIN(1,15), - .mosi = GPIO_PIN(1,13), - .miso = GPIO_PIN(1,14), + .sclk = GPIO_PIN(1, 15), + .mosi = GPIO_PIN(1, 13), + .miso = GPIO_PIN(1, 14), } }; diff --git a/boards/feather-nrf52840/include/periph_conf.h b/boards/feather-nrf52840/include/periph_conf.h index 33d54eccd5..12b0777730 100644 --- a/boards/feather-nrf52840/include/periph_conf.h +++ b/boards/feather-nrf52840/include/periph_conf.h @@ -37,8 +37,8 @@ extern "C" { static const uart_conf_t uart_config[] = { { .dev = NRF_UARTE0, - .rx_pin = GPIO_PIN(0,24), - .tx_pin = GPIO_PIN(0,25), + .rx_pin = GPIO_PIN(0, 24), + .tx_pin = GPIO_PIN(0, 25), #ifdef MODULE_PERIPH_UART_HW_FC .rts_pin = GPIO_UNDEF, .cts_pin = GPIO_UNDEF, diff --git a/boards/mcb2388/include/board.h b/boards/mcb2388/include/board.h index 96baa5c618..40735cd30b 100644 --- a/boards/mcb2388/include/board.h +++ b/boards/mcb2388/include/board.h @@ -99,8 +99,8 @@ extern "C" { #define HD44780_PARAM_PIN_RS GPIO_PIN(1, 28) #define HD44780_PARAM_PIN_RW GPIO_PIN(1, 29) #define HD44780_PARAM_PIN_ENABLE GPIO_PIN(1, 31) -#define HD44780_PARAM_PINS_DATA { GPIO_PIN(1,24), GPIO_PIN(1,25), \ - GPIO_PIN(1,26), GPIO_PIN(1,27), \ +#define HD44780_PARAM_PINS_DATA { GPIO_PIN(1, 24), GPIO_PIN(1, 25), \ + GPIO_PIN(1, 26), GPIO_PIN(1, 27), \ GPIO_UNDEF, GPIO_UNDEF, \ GPIO_UNDEF, GPIO_UNDEF } /** @} */ diff --git a/boards/nrf52832-mdk/include/periph_conf.h b/boards/nrf52832-mdk/include/periph_conf.h index b3ac5561f5..f98988b054 100644 --- a/boards/nrf52832-mdk/include/periph_conf.h +++ b/boards/nrf52832-mdk/include/periph_conf.h @@ -36,8 +36,8 @@ extern "C" { * @{ */ #define UART_NUMOF (1U) -#define UART_PIN_RX GPIO_PIN(0,19) -#define UART_PIN_TX GPIO_PIN(0,20) +#define UART_PIN_RX GPIO_PIN(0, 19) +#define UART_PIN_TX GPIO_PIN(0, 20) /** @} */ #ifdef __cplusplus diff --git a/boards/nrf52840-mdk/include/periph_conf.h b/boards/nrf52840-mdk/include/periph_conf.h index 905708fe60..67b75341b8 100644 --- a/boards/nrf52840-mdk/include/periph_conf.h +++ b/boards/nrf52840-mdk/include/periph_conf.h @@ -38,8 +38,8 @@ extern "C" { static const uart_conf_t uart_config[] = { { .dev = NRF_UARTE0, - .rx_pin = GPIO_PIN(0,19), - .tx_pin = GPIO_PIN(0,20), + .rx_pin = GPIO_PIN(0, 19), + .tx_pin = GPIO_PIN(0, 20), #ifdef MODULE_PERIPH_UART_HW_FC .rts_pin = GPIO_UNDEF, .cts_pin = GPIO_UNDEF, diff --git a/boards/nrf52840dk/include/periph_conf.h b/boards/nrf52840dk/include/periph_conf.h index b615b9030c..9e06924ab5 100644 --- a/boards/nrf52840dk/include/periph_conf.h +++ b/boards/nrf52840dk/include/periph_conf.h @@ -55,8 +55,8 @@ static const spi_conf_t spi_config[] = { static const uart_conf_t uart_config[] = { { /* Mapped to USB virtual COM port */ .dev = NRF_UARTE0, - .rx_pin = GPIO_PIN(0,8), - .tx_pin = GPIO_PIN(0,6), + .rx_pin = GPIO_PIN(0, 8), + .tx_pin = GPIO_PIN(0, 6), #ifdef MODULE_PERIPH_UART_HW_FC .rts_pin = GPIO_UNDEF, .cts_pin = GPIO_UNDEF, @@ -65,8 +65,8 @@ static const uart_conf_t uart_config[] = { }, { /* Mapped to Arduino D0/D1 pins */ .dev = NRF_UARTE1, - .rx_pin = GPIO_PIN(1,1), - .tx_pin = GPIO_PIN(1,2), + .rx_pin = GPIO_PIN(1, 1), + .tx_pin = GPIO_PIN(1, 2), #ifdef MODULE_PERIPH_UART_HW_FC .rts_pin = GPIO_UNDEF, .cts_pin = GPIO_UNDEF, diff --git a/boards/nrf52dk/include/periph_conf.h b/boards/nrf52dk/include/periph_conf.h index c2111f2875..e0d7991259 100644 --- a/boards/nrf52dk/include/periph_conf.h +++ b/boards/nrf52dk/include/periph_conf.h @@ -49,8 +49,8 @@ static const spi_conf_t spi_config[] = { * @{ */ #define UART_NUMOF (1U) -#define UART_PIN_RX GPIO_PIN(0,8) -#define UART_PIN_TX GPIO_PIN(0,6) +#define UART_PIN_RX GPIO_PIN(0, 8) +#define UART_PIN_TX GPIO_PIN(0, 6) /** @} */ #ifdef __cplusplus diff --git a/boards/particle-argon/include/periph_conf.h b/boards/particle-argon/include/periph_conf.h index 0a2d639c42..1b90aa51a8 100644 --- a/boards/particle-argon/include/periph_conf.h +++ b/boards/particle-argon/include/periph_conf.h @@ -34,8 +34,8 @@ extern "C" { static const uart_conf_t uart_config[] = { { .dev = NRF_UARTE0, - .rx_pin = GPIO_PIN(0,8), - .tx_pin = GPIO_PIN(0,6), + .rx_pin = GPIO_PIN(0, 8), + .tx_pin = GPIO_PIN(0, 6), #ifdef MODULE_PERIPH_UART_HW_FC .rts_pin = GPIO_UNDEF, .cts_pin = GPIO_UNDEF, @@ -44,11 +44,11 @@ static const uart_conf_t uart_config[] = { }, { .dev = NRF_UARTE1, - .rx_pin = GPIO_PIN(1,5), - .tx_pin = GPIO_PIN(1,4), + .rx_pin = GPIO_PIN(1, 5), + .tx_pin = GPIO_PIN(1, 4), #ifdef MODULE_PERIPH_UART_HW_FC - .rts_pin = GPIO_PIN(1,6), - .cts_pin = GPIO_PIN(1,7), + .rts_pin = GPIO_PIN(1, 6), + .cts_pin = GPIO_PIN(1, 7), #endif .irqn = UARTE1_IRQn, }, diff --git a/boards/particle-boron/include/periph_conf.h b/boards/particle-boron/include/periph_conf.h index df77a972b4..44394cb069 100644 --- a/boards/particle-boron/include/periph_conf.h +++ b/boards/particle-boron/include/periph_conf.h @@ -34,8 +34,8 @@ extern "C" { static const uart_conf_t uart_config[] = { { .dev = NRF_UARTE0, - .rx_pin = GPIO_PIN(0,8), - .tx_pin = GPIO_PIN(0,6), + .rx_pin = GPIO_PIN(0, 8), + .tx_pin = GPIO_PIN(0, 6), #ifdef MODULE_PERIPH_UART_HW_FC .rts_pin = GPIO_UNDEF, .cts_pin = GPIO_UNDEF, @@ -44,11 +44,11 @@ static const uart_conf_t uart_config[] = { }, { .dev = NRF_UARTE1, - .rx_pin = GPIO_PIN(1,4), - .tx_pin = GPIO_PIN(1,5), + .rx_pin = GPIO_PIN(1, 4), + .tx_pin = GPIO_PIN(1, 5), #ifdef MODULE_PERIPH_UART_HW_FC - .rts_pin = GPIO_PIN(1,7), - .cts_pin = GPIO_PIN(1,6), + .rts_pin = GPIO_PIN(1, 7), + .cts_pin = GPIO_PIN(1, 6), #endif .irqn = UARTE1_IRQn, }, diff --git a/boards/particle-xenon/include/periph_conf.h b/boards/particle-xenon/include/periph_conf.h index 8f741ce936..fddd037f4e 100644 --- a/boards/particle-xenon/include/periph_conf.h +++ b/boards/particle-xenon/include/periph_conf.h @@ -34,8 +34,8 @@ extern "C" { static const uart_conf_t uart_config[] = { { .dev = NRF_UARTE0, - .rx_pin = GPIO_PIN(0,8), - .tx_pin = GPIO_PIN(0,6), + .rx_pin = GPIO_PIN(0, 8), + .tx_pin = GPIO_PIN(0, 6), #ifdef MODULE_PERIPH_UART_HW_FC .rts_pin = GPIO_UNDEF, .cts_pin = GPIO_UNDEF, @@ -44,11 +44,11 @@ static const uart_conf_t uart_config[] = { }, { .dev = NRF_UARTE1, - .rx_pin = GPIO_PIN(1,10), - .tx_pin = GPIO_PIN(1,8), + .rx_pin = GPIO_PIN(1, 10), + .tx_pin = GPIO_PIN(1, 8), #ifdef MODULE_PERIPH_UART_HW_FC - .rts_pin = GPIO_PIN(1,3), - .cts_pin = GPIO_PIN(1,11), + .rts_pin = GPIO_PIN(1, 3), + .cts_pin = GPIO_PIN(1, 11), #endif .irqn = UARTE1_IRQn, }, diff --git a/boards/reel/include/periph_conf.h b/boards/reel/include/periph_conf.h index da432298c2..a35a030b71 100644 --- a/boards/reel/include/periph_conf.h +++ b/boards/reel/include/periph_conf.h @@ -37,8 +37,8 @@ extern "C" { static const uart_conf_t uart_config[] = { { .dev = NRF_UARTE0, - .rx_pin = GPIO_PIN(0,8), - .tx_pin = GPIO_PIN(0,6), + .rx_pin = GPIO_PIN(0, 8), + .tx_pin = GPIO_PIN(0, 6), #ifdef MODULE_PERIPH_UART_HW_FC .rts_pin = GPIO_UNDEF, .cts_pin = GPIO_UNDEF, diff --git a/boards/remote-revb/include/board.h b/boards/remote-revb/include/board.h index c8f78ef714..239f833e12 100644 --- a/boards/remote-revb/include/board.h +++ b/boards/remote-revb/include/board.h @@ -114,11 +114,11 @@ * @{ */ #define SDCARD_SPI_PARAM_SPI SPI_DEV(1) -#define SDCARD_SPI_PARAM_CS GPIO_PIN(0,7) -#define SDCARD_SPI_PARAM_CLK GPIO_PIN(2,4) -#define SDCARD_SPI_PARAM_MOSI GPIO_PIN(2,5) -#define SDCARD_SPI_PARAM_MISO GPIO_PIN(2,6) -#define SDCARD_SPI_PARAM_POWER GPIO_PIN(0,6) +#define SDCARD_SPI_PARAM_CS GPIO_PIN(0, 7) +#define SDCARD_SPI_PARAM_CLK GPIO_PIN(2, 4) +#define SDCARD_SPI_PARAM_MOSI GPIO_PIN(2, 5) +#define SDCARD_SPI_PARAM_MISO GPIO_PIN(2, 6) +#define SDCARD_SPI_PARAM_POWER GPIO_PIN(0, 6) #define SDCARD_SPI_PARAM_POWER_AH false /** @} */ diff --git a/drivers/grove_ledbar/include/grove_ledbar_params.h b/drivers/grove_ledbar/include/grove_ledbar_params.h index bd0020c710..4f8097567c 100644 --- a/drivers/grove_ledbar/include/grove_ledbar_params.h +++ b/drivers/grove_ledbar/include/grove_ledbar_params.h @@ -34,14 +34,14 @@ extern "C" * @brief Clock GPIO pin */ #ifndef GROVE_LEDBAR_CLK -#define GROVE_LEDBAR_CLK (GPIO_PIN(0,1)) +#define GROVE_LEDBAR_CLK (GPIO_PIN(0, 1)) #endif /** * @brief Data GPIO pin */ #ifndef GROVE_LEDBAR_DAT -#define GROVE_LEDBAR_DAT (GPIO_PIN(0,2)) +#define GROVE_LEDBAR_DAT (GPIO_PIN(0, 2)) #endif /** diff --git a/drivers/include/l3gxxxx.h b/drivers/include/l3gxxxx.h index 7dc8bbc8ce..e7ed68eb39 100644 --- a/drivers/include/l3gxxxx.h +++ b/drivers/include/l3gxxxx.h @@ -898,9 +898,9 @@ * | I2C address | #L3GXXXX_I2C_ADDR | #L3GXXXX_I2C_ADDR_2 | * | SPI device | #L3GXXXX_SPI_DEV | SPI_DEV(0) | * | SPI clock frequency | #L3GXXXX_SPI_CLK | SPI_CLK_1MHZ | - * | SPI CS signal | #L3GXXXX_SPI_CS | GPIO_PIN(0,0) | - * | `INT1` MCU pin | #L3GXXXX_INT1_PIN | GPIO_PIN(0,1) | - * | `INT2/DRDY` MCU pin | #L3GXXXX_INT2_PIN | GPIO_PIN(0,2) | + * | SPI CS signal | #L3GXXXX_SPI_CS | GPIO_PIN(0, 0) | + * | `INT1` MCU pin | #L3GXXXX_INT1_PIN | GPIO_PIN(0, 1) | + * | `INT2/DRDY` MCU pin | #L3GXXXX_INT2_PIN | GPIO_PIN(0, 2) | *
* * These hardware configurations can be overridden either by the board @@ -909,7 +909,7 @@ * * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * DRIVER=l3gd20h USEMODULE='l3gxxxx_irq_data` \ - * CLFAGS='-DL3GXXXX_INT2_PIN=GPIO_PIN\(0,5\)' \ + * CLFAGS='-DL3GXXXX_INT2_PIN=GPIO_PIN\(0, 5\)' \ * BOARD=... make -C tests/driver_l3gxxxx * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * diff --git a/drivers/include/pcf857x.h b/drivers/include/pcf857x.h index e93f0c89c1..978a6e96bb 100644 --- a/drivers/include/pcf857x.h +++ b/drivers/include/pcf857x.h @@ -221,13 +221,13 @@ * .dev = I2C_DEV(0), * .addr = 0, * .exp = PCF857X_EXP_PCF8574A, - * .int_pin = GPIO_PIN(0,1), + * .int_pin = GPIO_PIN(0, 1), * }, * { * .dev = I2C_DEV(0), * .addr = 0, * .exp = PCF857X_EXP_PCF8575, - * .int_pin = GPIO_PIN(0,2), + * .int_pin = GPIO_PIN(0, 2), * }, * }; * diff --git a/drivers/io1_xplained/include/io1_xplained_internals.h b/drivers/io1_xplained/include/io1_xplained_internals.h index 19998da08b..33a485cfac 100644 --- a/drivers/io1_xplained/include/io1_xplained_internals.h +++ b/drivers/io1_xplained/include/io1_xplained_internals.h @@ -43,13 +43,13 @@ extern "C" { * @{ */ #define IO1_SDCARD_SPI_PARAM_SPI SPI_DEV(1) -#define IO1_SDCARD_SPI_PARAM_CS GPIO_PIN(1,3) -#define IO1_SDCARD_SPI_PARAM_CLK GPIO_PIN(1,23) -#define IO1_SDCARD_SPI_PARAM_MOSI GPIO_PIN(1,22) -#define IO1_SDCARD_SPI_PARAM_MISO GPIO_PIN(1,2) +#define IO1_SDCARD_SPI_PARAM_CS GPIO_PIN(1, 3) +#define IO1_SDCARD_SPI_PARAM_CLK GPIO_PIN(1, 23) +#define IO1_SDCARD_SPI_PARAM_MOSI GPIO_PIN(1, 22) +#define IO1_SDCARD_SPI_PARAM_MISO GPIO_PIN(1, 2) #define IO1_SDCARD_SPI_PARAM_POWER (GPIO_UNDEF) #define IO1_SDCARD_SPI_PARAM_POWER_AH (true) -#define IO1_SDCARD_SPI_PARAM_DETECT GPIO_PIN(0,23) +#define IO1_SDCARD_SPI_PARAM_DETECT GPIO_PIN(0, 23) /** @} */ /** @@ -64,15 +64,15 @@ extern "C" { * @name IO1 Xplained LED pin * @{ */ -#define IO1_LED_PIN GPIO_PIN(0,18) +#define IO1_LED_PIN GPIO_PIN(0, 18) /** @} */ /** * @name IO1 Xplained gpio pins * @{ */ -#define IO1_GPIO1_PIN GPIO_PIN(0,13) -#define IO1_GPIO2_PIN GPIO_PIN(0,28) +#define IO1_GPIO1_PIN GPIO_PIN(0, 13) +#define IO1_GPIO2_PIN GPIO_PIN(0, 28) /** @} */ #ifdef __cplusplus diff --git a/drivers/pulse_counter/include/pulse_counter_params.h b/drivers/pulse_counter/include/pulse_counter_params.h index 72ad853b62..569f34939c 100644 --- a/drivers/pulse_counter/include/pulse_counter_params.h +++ b/drivers/pulse_counter/include/pulse_counter_params.h @@ -28,7 +28,7 @@ extern "C" { #endif #ifndef PULSE_COUNTER_GPIO -#define PULSE_COUNTER_GPIO GPIO_PIN(0,18) +#define PULSE_COUNTER_GPIO GPIO_PIN(0, 18) #endif #ifndef PULSE_COUNTER_GPIO_FLANK diff --git a/drivers/sdcard_spi/include/sdcard_spi_params.h b/drivers/sdcard_spi/include/sdcard_spi_params.h index 75bdca659b..ea99216acb 100644 --- a/drivers/sdcard_spi/include/sdcard_spi_params.h +++ b/drivers/sdcard_spi/include/sdcard_spi_params.h @@ -33,16 +33,16 @@ extern "C" { #define SDCARD_SPI_PARAM_SPI SPI_DEV(0) #endif #ifndef SDCARD_SPI_PARAM_CS -#define SDCARD_SPI_PARAM_CS GPIO_PIN(2,4) +#define SDCARD_SPI_PARAM_CS GPIO_PIN(2, 4) #endif #ifndef SDCARD_SPI_PARAM_CLK -#define SDCARD_SPI_PARAM_CLK GPIO_PIN(2,5) +#define SDCARD_SPI_PARAM_CLK GPIO_PIN(2, 5) #endif #ifndef SDCARD_SPI_PARAM_MOSI -#define SDCARD_SPI_PARAM_MOSI GPIO_PIN(2,6) +#define SDCARD_SPI_PARAM_MOSI GPIO_PIN(2, 6) #endif #ifndef SDCARD_SPI_PARAM_MISO -#define SDCARD_SPI_PARAM_MISO GPIO_PIN(2,7) +#define SDCARD_SPI_PARAM_MISO GPIO_PIN(2, 7) #endif #ifndef SDCARD_SPI_PARAM_POWER #define SDCARD_SPI_PARAM_POWER (GPIO_UNDEF) diff --git a/drivers/srf04/include/srf04_params.h b/drivers/srf04/include/srf04_params.h index 31fc03a1ed..40670e4f70 100644 --- a/drivers/srf04/include/srf04_params.h +++ b/drivers/srf04/include/srf04_params.h @@ -31,10 +31,10 @@ extern "C" { * @{ */ #ifndef SRF04_PARAM_TRIGGER -#define SRF04_PARAM_TRIGGER GPIO_PIN(0,13) +#define SRF04_PARAM_TRIGGER GPIO_PIN(0, 13) #endif #ifndef SRF04_PARAM_ECHO -#define SRF04_PARAM_ECHO GPIO_PIN(0,14) +#define SRF04_PARAM_ECHO GPIO_PIN(0, 14) #endif #ifndef SRF04_PARAMS diff --git a/drivers/ws281x/include/ws281x_params.h b/drivers/ws281x/include/ws281x_params.h index d668a0e170..1950e3f4eb 100644 --- a/drivers/ws281x/include/ws281x_params.h +++ b/drivers/ws281x/include/ws281x_params.h @@ -31,7 +31,7 @@ extern "C" { * @{ */ #ifndef WS281X_PARAM_PIN -#define WS281X_PARAM_PIN (GPIO_PIN(0,0)) /**< GPIO pin connected to the data pin of the first LED */ +#define WS281X_PARAM_PIN (GPIO_PIN(0, 0)) /**< GPIO pin connected to the data pin of the first LED */ #endif #ifndef WS281X_PARAM_NUMOF #define WS281X_PARAM_NUMOF (8U) /**< Number of LEDs chained */ diff --git a/tests/periph_qdec/boards_modded/nrf52840dk_mod/include/periph_conf.h b/tests/periph_qdec/boards_modded/nrf52840dk_mod/include/periph_conf.h index 9358b30f93..7e931301de 100644 --- a/tests/periph_qdec/boards_modded/nrf52840dk_mod/include/periph_conf.h +++ b/tests/periph_qdec/boards_modded/nrf52840dk_mod/include/periph_conf.h @@ -50,8 +50,8 @@ static const qdec_conf_t qdec_config[] = { static const uart_conf_t uart_config[] = { { /* Mapped to USB virtual COM port */ .dev = NRF_UARTE0, - .rx_pin = GPIO_PIN(0,8), - .tx_pin = GPIO_PIN(0,6), + .rx_pin = GPIO_PIN(0, 8), + .tx_pin = GPIO_PIN(0, 6), #ifdef MODULE_PERIPH_UART_HW_FC .rts_pin = GPIO_UNDEF, .cts_pin = GPIO_UNDEF,