|
@ -43,7 +43,7 @@ |
|
|
#include "nrf_drv_uart.h" |
|
|
#include "nrf_drv_uart.h" |
|
|
#include "nrf_assert.h" |
|
|
#include "nrf_assert.h" |
|
|
|
|
|
|
|
|
static uint8_t tx_buffer[1]; |
|
|
|
|
|
|
|
|
static uint8_t tx_buffer[256]; |
|
|
static uint8_t rx_buffer[1]; |
|
|
static uint8_t rx_buffer[1]; |
|
|
static volatile bool rx_done; |
|
|
static volatile bool rx_done; |
|
|
static app_uart_event_handler_t m_event_handler; /**< Event handler function. */ |
|
|
static app_uart_event_handler_t m_event_handler; /**< Event handler function. */ |
|
@ -151,6 +151,9 @@ uint32_t app_uart_put(uint8_t byte) |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
uint32_t app_uart_flush(void) |
|
|
uint32_t app_uart_flush(void) |
|
|
{ |
|
|
{ |
|
|
return NRF_SUCCESS; |
|
|
return NRF_SUCCESS; |
|
|