Fix the pre-check stuff
This commit is contained in:
parent
219ef5e407
commit
7ff0036a26
@ -34,6 +34,7 @@
|
|||||||
#include "fsl_lpuart.h"
|
#include "fsl_lpuart.h"
|
||||||
|
|
||||||
// TODO: Switch this to using DEBUG_UART.
|
// 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)
|
#if defined(USE_DEBUG_PORT_CODE)
|
||||||
// static LPUART_Type *uart_instance = LPUART1; // evk
|
// static LPUART_Type *uart_instance = LPUART1; // evk
|
||||||
static LPUART_Type *uart_instance = LPUART4; // feather 1011
|
static LPUART_Type *uart_instance = LPUART4; // feather 1011
|
||||||
@ -66,7 +67,9 @@ void port_serial_init(void) {
|
|||||||
LPUART_Init(uart_instance, &config, UartSrcFreq());
|
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) {
|
char port_serial_read(void) {
|
||||||
uint8_t data;
|
uint8_t data;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user