nrf5/uart: Making compile time exclusion of RTS/CTS if not defined to use flow control by board configuration.
This commit is contained in:
parent
04751defa0
commit
994b1689e3
@ -204,8 +204,11 @@ STATIC mp_obj_t pyb_uart_init_helper(pyb_uart_obj_t *self, mp_uint_t n_args, con
|
|||||||
hal_uart_init_t uart_init = {
|
hal_uart_init_t uart_init = {
|
||||||
.rx_pin = MICROPY_HW_UART1_RX,
|
.rx_pin = MICROPY_HW_UART1_RX,
|
||||||
.tx_pin = MICROPY_HW_UART1_TX,
|
.tx_pin = MICROPY_HW_UART1_TX,
|
||||||
|
#if MICROPY_HW_UART1_HWFC
|
||||||
.rts_pin = MICROPY_HW_UART1_RTS,
|
.rts_pin = MICROPY_HW_UART1_RTS,
|
||||||
.cts_pin = MICROPY_HW_UART1_CTS,
|
.cts_pin = MICROPY_HW_UART1_CTS,
|
||||||
|
#endif
|
||||||
|
|
||||||
#if MICROPY_HW_UART1_HWFC
|
#if MICROPY_HW_UART1_HWFC
|
||||||
.flow_control = true,
|
.flow_control = true,
|
||||||
#else
|
#else
|
||||||
|
Loading…
Reference in New Issue
Block a user