diff --git a/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52/reloc_vector_table.c b/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52/reloc_vector_table.c index 53daa7e4ff..851fa5510a 100644 --- a/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52/reloc_vector_table.c +++ b/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52/reloc_vector_table.c @@ -39,6 +39,8 @@ #include "nrf.h" #include "cmsis_nvic.h" #include "stdint.h" +#include "PinNames.h" +#include "hal/gpio_api.h" #if defined(SOFTDEVICE_PRESENT) #include "nrf_sdm.h" @@ -110,3 +112,13 @@ void nrf_reloc_vector_table(void) SCB->VTOR = (uint32_t) nrf_dispatch_vector; #endif } + +#if (STDIO_UART_RTS != NC) +void mbed_sdk_init(void) +{ + gpio_t rts; + gpio_init_out(&rts, STDIO_UART_RTS); + /* Set STDIO_UART_RTS as gpio driven low */ + gpio_write(&rts, 0); +} +#endif