kopia lustrzana https://github.com/micropython/micropython
rp2/modmachine.c: Add option to reset the clock to system clock again.
Signed-off-by: robert-hh <robert@hammelrath.com>pull/13718/head
rodzic
856d48f7d4
commit
af7470ad10
|
@ -95,6 +95,12 @@ static void mp_machine_set_freq(size_t n_args, const mp_obj_t *args) {
|
|||
if (!set_sys_clock_khz(freq / 1000, false)) {
|
||||
mp_raise_ValueError(MP_ERROR_TEXT("cannot change frequency"));
|
||||
}
|
||||
// Option: Set PERI clock to system clock again
|
||||
// clock_configure(clk_peri,
|
||||
// 0,
|
||||
// CLOCKS_CLK_PERI_CTRL_AUXSRC_VALUE_CLK_SYS,
|
||||
// SYS_CLK_KHZ * KHZ,
|
||||
// SYS_CLK_KHZ * KHZ);
|
||||
#if MICROPY_HW_ENABLE_UART_REPL
|
||||
setup_default_uart();
|
||||
mp_uart_init();
|
||||
|
|
Ładowanie…
Reference in New Issue