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

boards/nrf5x: update to use generic uart_hw_fc module

This commit is contained in:
Dylan Laduranty 2020-03-10 14:16:00 +01:00
parent 0b15db3694
commit b9ab3d56ae
9 changed files with 22 additions and 0 deletions

View File

@ -39,8 +39,10 @@ static const uart_conf_t uart_config[] = {
.dev = NRF_UARTE0,
.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,
#endif
.irqn = UARTE0_UART0_IRQn,
},
};

View File

@ -40,8 +40,10 @@ static const uart_conf_t uart_config[] = {
.dev = NRF_UARTE0,
.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,
#endif
.irqn = UARTE0_UART0_IRQn,
},
};

View File

@ -50,16 +50,20 @@ static const uart_conf_t uart_config[] = {
.dev = NRF_UARTE0,
.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,
#endif
.irqn = UARTE0_UART0_IRQn,
},
{ /* Mapped to Arduino D0/D1 pins */
.dev = NRF_UARTE1,
.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,
#endif
.irqn = UARTE1_IRQn,
},
};

View File

@ -1,3 +1,4 @@
USEMODULE += boards_common_particle_mesh
USEMODULE += periph_uart_hw_fc
include $(RIOTBOARD)/common/particle-mesh/Makefile.dep

View File

@ -36,16 +36,20 @@ static const uart_conf_t uart_config[] = {
.dev = NRF_UARTE0,
.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,
#endif
.irqn = UARTE0_UART0_IRQn,
},
{
.dev = NRF_UARTE1,
.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),
#endif
.irqn = UARTE1_IRQn,
},
};

View File

@ -1,3 +1,4 @@
USEMODULE += boards_common_particle_mesh
USEMODULE += periph_uart_hw_fc
include $(RIOTBOARD)/common/particle-mesh/Makefile.dep

View File

@ -36,16 +36,20 @@ static const uart_conf_t uart_config[] = {
.dev = NRF_UARTE0,
.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,
#endif
.irqn = UARTE0_UART0_IRQn,
},
{
.dev = NRF_UARTE1,
.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),
#endif
.irqn = UARTE1_IRQn,
},
};

View File

@ -36,8 +36,10 @@ static const uart_conf_t uart_config[] = {
.dev = NRF_UARTE0,
.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,
#endif
.irqn = UARTE0_UART0_IRQn,
},
};

View File

@ -39,8 +39,10 @@ static const uart_conf_t uart_config[] = {
.dev = NRF_UARTE0,
.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,
#endif
.irqn = UARTE0_UART0_IRQn,
},
};