Skip to content

Commit

Permalink
pio-usb now only need sysclk to be multiple of 12Mhz
Browse files Browse the repository at this point in the history
  • Loading branch information
hathach committed Feb 20, 2025
1 parent cafc788 commit 1f879a0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion hw/bsp/rp2040/family.c
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,12 @@ void stdio_rtt_init(void) {
void board_init(void)
{
#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 the system clock to a multiple of 12mhz for bit-banging USB with pico-usb
set_sys_clock_khz(120000, true);
// set_sys_clock_khz(180000, true);
// set_sys_clock_khz(192000, true);
// set_sys_clock_khz(240000, true);
// set_sys_clock_khz(264000, true);

#ifdef PICO_DEFAULT_PIO_USB_VBUSEN_PIN
gpio_init(PICO_DEFAULT_PIO_USB_VBUSEN_PIN);
Expand Down

0 comments on commit 1f879a0

Please sign in to comment.