diff options
| author | graham sanderson <[email protected]> | 2021-05-31 11:18:26 -0500 |
|---|---|---|
| committer | graham sanderson <[email protected]> | 2021-05-31 11:18:26 -0500 |
| commit | 90d7483d925eab3ab2c05d286d0671cb8ec66ecc (patch) | |
| tree | fd44caa8d9101e7912638141952eb412da090e89 | |
| parent | db138a530cadfc91241ac158a188cefe7452c90e (diff) | |
guard stdio_uart_init_full with LIB_PICO_STDUI_UART as the function doesn't exist otherwise
| -rw-r--r-- | hw/bsp/rp2040/family.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/bsp/rp2040/family.c b/hw/bsp/rp2040/family.c index b2dbd3e6a..10ead2776 100644 --- a/hw/bsp/rp2040/family.c +++ b/hw/bsp/rp2040/family.c @@ -127,7 +127,7 @@ void board_init(void) #ifndef BUTTON_BOOTSEL #endif -#ifdef UART_DEV +#if defined(UART_DEV) && defined(LIB_PICO_STDIO_UART) bi_decl(bi_2pins_with_func(UART_TX_PIN, UART_TX_PIN, GPIO_FUNC_UART)); uart_inst = uart_get_instance(UART_DEV); stdio_uart_init_full(uart_inst, CFG_BOARD_UART_BAUDRATE, UART_TX_PIN, UART_RX_PIN); |
