Skip to content

Commit

Permalink
add pio-usb host test to hil. fix build as well
Browse files Browse the repository at this point in the history
  • Loading branch information
hathach committed Aug 22, 2024
1 parent 0db42aa commit ccf886c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
4 changes: 2 additions & 2 deletions hw/bsp/rp2040/family.c
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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);

Expand Down
11 changes: 5 additions & 6 deletions test/hil/rpi.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,7 @@
"flasher_sn": "E6633861A3978538",
"flasher_args": "-f interface/cmsis-dap.cfg -f target/atsame5x.cfg",
"tests": {
"dual_attached": [
{
"vid_pid": "1a86_55d4", "serial": "52D2002130"
}
]
"dual_attached": [{"vid_pid": "1a86_55d4", "serial": "52D2002130"}]
}
},
{
Expand Down Expand Up @@ -51,7 +47,10 @@
"uid": "E6614C311B764A37",
"flasher": "openocd",
"flasher_sn": "E6614103E72C1D2F",
"flasher_args": "-f interface/cmsis-dap.cfg -f target/rp2040.cfg -c \"adapter speed 5000\""
"flasher_args": "-f interface/cmsis-dap.cfg -f target/rp2040.cfg -c \"adapter speed 5000\"",
"tests": {
"dual_attached": [{"vid_pid": "1a86_55d4", "serial": "52D2002470"}]
}
},
{
"name": "stm32f072disco",
Expand Down

0 comments on commit ccf886c

Please sign in to comment.