Created
February 13, 2018 22:10
-
-
Save aykevl/edf5fc2dca1bf5dafcc6c6c8d635c022 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/ports/nrf/hal/hal_uart.c b/ports/nrf/hal/hal_uart.c | |
index 39590272b..583a8761d 100644 | |
--- a/ports/nrf/hal/hal_uart.c | |
+++ b/ports/nrf/hal/hal_uart.c | |
@@ -122,7 +122,7 @@ void hal_uart_init(NRF_UART_Type * p_instance, hal_uart_init_t const * p_uart_in | |
if (p_uart_init->flow_control) { | |
hal_gpio_cfg_pin(p_uart_init->rts_pin->port, p_uart_init->rts_pin->pin, HAL_GPIO_MODE_OUTPUT, HAL_GPIO_PULL_DISABLED); | |
- hal_gpio_cfg_pin(p_uart_init->cts_pin->port, p_uart_init->cts_pin->pin, HAL_GPIO_MODE_INPUT, HAL_GPIO_PULL_DISABLED); | |
+ hal_gpio_cfg_pin(p_uart_init->cts_pin->port, p_uart_init->cts_pin->pin, HAL_GPIO_MODE_INPUT, HAL_GPIO_PULL_DOWN); | |
p_instance->PSELCTS = p_uart_init->cts_pin->pin; | |
p_instance->PSELRTS = p_uart_init->rts_pin->pin; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment