Convert to use debug rx/tx pins to trigger adding this code
As per review request
This commit is contained in:
parent
7ff0036a26
commit
49769cfea4
@ -34,12 +34,11 @@
|
|||||||
#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 the board defined a debug uart tx or rx pin then we enable this code
|
||||||
#if defined(USE_DEBUG_PORT_CODE)
|
#if defined(CIRCUITPY_DEBUG_UART_TX) || defined(CIRCUITPY_DEBUG_UART_RX)
|
||||||
// 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
|
||||||
// static LPUART_Type *uart_instance = LPUART2; // feather 1062
|
// static LPUART_Type *uart_instance = LPUART2; // feather 1062
|
||||||
|
|
||||||
static uint32_t UartSrcFreq(void) {
|
static uint32_t UartSrcFreq(void) {
|
||||||
uint32_t freq;
|
uint32_t freq;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user