Fix the pre-check stuff

This commit is contained in:
KurtE 2022-04-08 15:59:27 -07:00
parent 219ef5e407
commit 7ff0036a26

View File

@ -34,6 +34,7 @@
#include "fsl_lpuart.h"
// TODO: Switch this to using DEBUG_UART.
// Need official way to turn off the port serial code when it is not needed
#if defined(USE_DEBUG_PORT_CODE)
// static LPUART_Type *uart_instance = LPUART1; // evk
static LPUART_Type *uart_instance = LPUART4; // feather 1011
@ -66,7 +67,9 @@ void port_serial_init(void) {
LPUART_Init(uart_instance, &config, UartSrcFreq());
}
bool port_serial_connected(void) { return true; }
bool port_serial_connected(void) {
return true;
}
char port_serial_read(void) {
uint8_t data;