diff options
| author | Louis Burda <[email protected]> | 2022-12-13 11:00:03 +0100 |
|---|---|---|
| committer | Louis Burda <[email protected]> | 2022-12-13 11:00:03 +0100 |
| commit | 9e7e8908a34a4ef2a4b271b9d6b0598ed72e064f (patch) | |
| tree | 7c28c00caa8daa385f87fa84cac7a98abd9ce85a | |
| parent | f4f85bad540583ef5c40f3933fb0150d6ef8ba9c (diff) | |
Fix ifdefs for disabled uart stdio in rp2040 family
| -rw-r--r-- | hw/bsp/rp2040/family.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/hw/bsp/rp2040/family.c b/hw/bsp/rp2040/family.c index f7ee56990..75328027b 100644 --- a/hw/bsp/rp2040/family.c +++ b/hw/bsp/rp2040/family.c @@ -115,7 +115,7 @@ void stdio_rtt_init(void) #endif -#ifdef UART_DEV +#if defined(UART_DEV) && defined(LIB_PICO_STDIO_UART) static uart_inst_t *uart_inst; #endif @@ -191,7 +191,7 @@ uint32_t board_button_read(void) int board_uart_read(uint8_t* buf, int len) { -#ifdef UART_DEV +#if defined(UART_DEV) && defined(LIB_PICO_STDIO_UART) int count = 0; while ( (count < len) && uart_is_readable(uart_inst) ) { @@ -207,7 +207,7 @@ int board_uart_read(uint8_t* buf, int len) int board_uart_write(void const * buf, int len) { -#ifdef UART_DEV +#if defined(UART_DEV) && defined(LIB_PICO_STDIO_UART) char const* bufch = (char const*) buf; for(int i=0;i<len;i++) { uart_putc(uart_inst, bufch[i]); |
