diff options
| author | hathach <[email protected]> | 2024-08-22 18:51:32 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2024-08-22 18:51:32 +0700 |
| commit | ccf886ca80ed74d985483fdb90e67703ebeb7dad (patch) | |
| tree | 9a5b72c803bc3350fac489b84e0e5ad5b445106b /hw | |
| parent | 0db42aac71a6fb2a821a034ee29d2587638d309a (diff) | |
add pio-usb host test to hil. fix build as well
Diffstat (limited to 'hw')
| -rw-r--r-- | hw/bsp/rp2040/family.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/bsp/rp2040/family.c b/hw/bsp/rp2040/family.c index 250989ce9..64a3a0af6 100644 --- a/hw/bsp/rp2040/family.c +++ b/hw/bsp/rp2040/family.c @@ -42,7 +42,7 @@ static uart_inst_t *uart_inst; #endif -#if CFG_TUH_RPI_PIO_USB || CFG_TUD_RPI_PIO_USB +#if (CFG_TUH_ENABLED && CFG_TUH_RPI_PIO_USB) || (CFG_TUD_ENABLED && CFG_TUD_RPI_PIO_USB) #include "pio_usb.h" #endif @@ -126,7 +126,7 @@ void stdio_rtt_init(void) { void board_init(void) { -#if CFG_TUH_RPI_PIO_USB || CFG_TUD_RPI_PIO_USB +#if (CFG_TUH_ENABLED && CFG_TUH_RPI_PIO_USB) || (CFG_TUD_ENABLED && CFG_TUD_RPI_PIO_USB) // Set the system clock to a multiple of 120mhz for bitbanging USB with pico-usb set_sys_clock_khz(120000, true); |
