1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

boards: add some missing whitespaces for static tests

This commit is contained in:
Karl Fessel 2022-08-17 15:25:37 +02:00
parent 05f114d0af
commit da51932737
22 changed files with 70 additions and 70 deletions

View File

@ -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,

View File

@ -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),
}
};

View File

@ -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,

View File

@ -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 }
/** @} */

View File

@ -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

View File

@ -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,

View File

@ -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,

View File

@ -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

View File

@ -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,
},

View File

@ -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,
},

View File

@ -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,
},

View File

@ -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,

View File

@ -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
/** @} */

View File

@ -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
/**

View File

@ -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) |
* </center><br>
*
* 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
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*

View File

@ -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),
* },
* };
*

View File

@ -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

View File

@ -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

View File

@ -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)

View File

@ -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

View File

@ -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 */

View File

@ -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,