File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -169,6 +169,8 @@ compile_proto()
169169#pull in tinyUSB
170170set (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
173175pico_sdk_init ()
174176
Original file line number Diff line number Diff line change @@ -54,11 +54,7 @@ static absolute_time_t rebootDelayTimeout = nil_time;
5454void 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 ();
You can’t perform that action at this time.
0 commit comments