Skip to content

Commit 1f879a0

Browse files
committed
pio-usb now only need sysclk to be multiple of 12Mhz
1 parent cafc788 commit 1f879a0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

hw/bsp/rp2040/family.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,12 @@ void stdio_rtt_init(void) {
162162
void board_init(void)
163163
{
164164
#if (CFG_TUH_ENABLED && CFG_TUH_RPI_PIO_USB) || (CFG_TUD_ENABLED && CFG_TUD_RPI_PIO_USB)
165-
// Set the system clock to a multiple of 120mhz for bitbanging USB with pico-usb
165+
// Set the system clock to a multiple of 12mhz for bit-banging USB with pico-usb
166166
set_sys_clock_khz(120000, true);
167+
// set_sys_clock_khz(180000, true);
168+
// set_sys_clock_khz(192000, true);
169+
// set_sys_clock_khz(240000, true);
170+
// set_sys_clock_khz(264000, true);
167171

168172
#ifdef PICO_DEFAULT_PIO_USB_VBUSEN_PIN
169173
gpio_init(PICO_DEFAULT_PIO_USB_VBUSEN_PIN);

0 commit comments

Comments
 (0)