Merge pull request #8046 from naveenkaje/UART_HWFC_Error_Fix_Upstream_Based

NRF52 serial: Fix UART console RX
pull/8436/merge
Cruz Monrreal 2018-10-16 10:22:25 -05:00 committed by GitHub
commit 50e6de7df2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 0 deletions

View File

@ -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