forked from micropython/micropython
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rp2/modmachine.c: Allow to use the MCU clock for the peripherals.
By default, the peripheral clock for UART and SPI is set to 48 MHz and will not be affected by the MCU clock change. This can be changed by a second argument to machine.freq(freq, use_mcu_clk). If use_mcu_clck is present and True, the mcu_clock is used for UART and SPI. Note that UART and SPI baud rates may have to be re-configured after changing the MCU clock. The peripheral clock cannot be set to arbitrary values. So it follows either the USB clock of 48MHz or the MCU clock. Side change: Allow more than one argument for machine.freq(). Signed-off-by: robert-hh <robert@hammelrath.com>
- Loading branch information
Showing
3 changed files
with
11 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters