Skip to content

Commit 61aab7a

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

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
set(PICO_PLATFORM rp2040)
22
set(PICO_BOARD pico)
3+
#set(OPENOCD_SERIAL E6614103E719612F)

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)