Skip to content

Commit 50e6de7

Browse files
author
Cruz Monrreal
authored
Merge pull request #8046 from naveenkaje/UART_HWFC_Error_Fix_Upstream_Based
NRF52 serial: Fix UART console RX
2 parents 9b59a3b + fa480c4 commit 50e6de7

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52/reloc_vector_table.c

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@
3939
#include "nrf.h"
4040
#include "cmsis_nvic.h"
4141
#include "stdint.h"
42+
#include "PinNames.h"
43+
#include "hal/gpio_api.h"
4244

4345
#if defined(SOFTDEVICE_PRESENT)
4446
#include "nrf_sdm.h"
@@ -110,3 +112,13 @@ void nrf_reloc_vector_table(void)
110112
SCB->VTOR = (uint32_t) nrf_dispatch_vector;
111113
#endif
112114
}
115+
116+
#if (STDIO_UART_RTS != NC)
117+
void mbed_sdk_init(void)
118+
{
119+
gpio_t rts;
120+
gpio_init_out(&rts, STDIO_UART_RTS);
121+
/* Set STDIO_UART_RTS as gpio driven low */
122+
gpio_write(&rts, 0);
123+
}
124+
#endif

0 commit comments

Comments
 (0)