Skip to content

Commit 9e6cd27

Browse files
committed
rp2/modmachine.c: Add option to reset the clock to system clock again.
Signed-off-by: robert-hh <robert@hammelrath.com>
1 parent 11e75fe commit 9e6cd27

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

ports/rp2/modmachine.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,12 @@ static void mp_machine_set_freq(size_t n_args, const mp_obj_t *args) {
9595
if (!set_sys_clock_khz(freq / 1000, false)) {
9696
mp_raise_ValueError(MP_ERROR_TEXT("cannot change frequency"));
9797
}
98+
// Option: Set PERI clock to system clock again
99+
// clock_configure(clk_peri,
100+
// 0,
101+
// CLOCKS_CLK_PERI_CTRL_AUXSRC_VALUE_CLK_SYS,
102+
// SYS_CLK_KHZ * KHZ,
103+
// SYS_CLK_KHZ * KHZ);
98104
#if MICROPY_HW_ENABLE_UART_REPL
99105
setup_default_uart();
100106
mp_uart_init();

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy