Skip to content

Commit 5a346b7

Browse files
authored
bump sys clock to max supported (#1592)
verified working - usb keyboard host - xbox dongle auth - oled display
1 parent fdc3477 commit 5a346b7

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,8 @@ compile_proto()
169169
#pull in tinyUSB
170170
set(PICO_TINYUSB_PATH "${CMAKE_CURRENT_LIST_DIR}/lib/tinyusb")
171171

172+
set(PICO_USE_FASTEST_SUPPORTED_CLOCK 1)
173+
172174
# initialize the Raspberry Pi Pico SDK
173175
pico_sdk_init()
174176

src/gp2040.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,7 @@ static absolute_time_t rebootDelayTimeout = nil_time;
5454
void GP2040::setup() {
5555
Storage::getInstance().init();
5656

57-
// Reduce CPU if USB host is enabled
5857
PeripheralManager::getInstance().initUSB();
59-
if ( PeripheralManager::getInstance().isUSBEnabled(0) ) {
60-
set_sys_clock_khz(120000, true); // Set Clock to 120MHz to avoid potential USB timing issues
61-
}
6258

6359
// I2C & SPI rely on the system clock
6460
PeripheralManager::getInstance().initSPI();

0 commit comments

Comments
 (0)