Skip to content

Commit 6a9015c

Browse files
committed
remove CPU freq restriction. move into subfolder that arduino ide wants.
1 parent da43407 commit 6a9015c

File tree

4 files changed

+0
-13
lines changed

4 files changed

+0
-13
lines changed

USB_SNES_Gamepad/Arduino_Feather_RP2040_USB_Host/usbh_helper.h renamed to USB_SNES_Gamepad/Arduino_Feather_RP2040_USB_Host/snes_gamepad_simpletest/usbh_helper.h

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -63,19 +63,6 @@ static void rp2040_configure_pio_usb(void) {
6363
//while ( !Serial ) delay(10); // wait for native usb
6464
Serial.println("Core1 setup to run TinyUSB host with pio-usb");
6565

66-
// Check for CPU frequency, must be multiple of 120Mhz for bit-banging USB
67-
uint32_t cpu_hz = clock_get_hz(clk_sys);
68-
if (cpu_hz != 120000000UL && cpu_hz != 240000000UL) {
69-
while (!Serial) {
70-
delay(10); // wait for native usb
71-
}
72-
Serial.printf("Error: CPU Clock = %lu, PIO USB require CPU clock must be multiple of 120 Mhz\r\n", cpu_hz);
73-
Serial.printf("Change your CPU Clock to either 120 or 240 Mhz in Menu->CPU Speed \r\n");
74-
while (1) {
75-
delay(1);
76-
}
77-
}
78-
7966
#ifdef PIN_5V_EN
8067
pinMode(PIN_5V_EN, OUTPUT);
8168
digitalWrite(PIN_5V_EN, PIN_5V_EN_STATE);

0 commit comments

Comments
 (0)