On the rp2040 I change the flash clock rate using the function
How do I do this on the rp2350?
MMBasic builds with the flash clock divider set to 4 to allow for overclocking the processor but if the processor is not overclocked the above function is used at runtime to set the flash clock to normal
I can't see any obvious equivalent in the rp2350 datasheet although they may be some of the 1345 pages I haven't read yet ![Wink ;)]()
Code:
void __no_inline_not_in_flash_func(modclock)(uint16_t speed){ ssi_hw->ssienr=0; ssi_hw->baudr=0; ssi_hw->baudr=speed; ssi_hw->ssienr=1;}
MMBasic builds with the flash clock divider set to 4 to allow for overclocking the processor but if the processor is not overclocked the above function is used at runtime to set the flash clock to normal
Code:
if(Option.CPU_Speed<=200000)modclock(2);

Statistics: Posted by matherp — Tue Aug 13, 2024 4:21 pm