mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #8046 from naveenkaje/UART_HWFC_Error_Fix_Upstream_Based
NRF52 serial: Fix UART console RXpull/8436/merge
commit
50e6de7df2
|
@ -39,6 +39,8 @@
|
||||||
#include "nrf.h"
|
#include "nrf.h"
|
||||||
#include "cmsis_nvic.h"
|
#include "cmsis_nvic.h"
|
||||||
#include "stdint.h"
|
#include "stdint.h"
|
||||||
|
#include "PinNames.h"
|
||||||
|
#include "hal/gpio_api.h"
|
||||||
|
|
||||||
#if defined(SOFTDEVICE_PRESENT)
|
#if defined(SOFTDEVICE_PRESENT)
|
||||||
#include "nrf_sdm.h"
|
#include "nrf_sdm.h"
|
||||||
|
@ -110,3 +112,13 @@ void nrf_reloc_vector_table(void)
|
||||||
SCB->VTOR = (uint32_t) nrf_dispatch_vector;
|
SCB->VTOR = (uint32_t) nrf_dispatch_vector;
|
||||||
#endif
|
#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
|
||||||
|
|
Loading…
Reference in New Issue