Skip to content

Commit

Permalink
MicroPython: Update overclock patch.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gadgetoid committed Jul 5, 2024
1 parent 1d80017 commit 295772f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions micropython/overclock_and_overvolt.patch
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
diff --git a/ports/rp2/main.c b/ports/rp2/main.c
index ff0384b95..82b4c856f 100644
index 3b4d351a7..f8ac068c4 100644
--- a/ports/rp2/main.c
+++ b/ports/rp2/main.c
@@ -51,6 +51,7 @@
@@ -53,6 +53,7 @@
#include "pico/unique_id.h"
#include "hardware/rtc.h"
#include "hardware/structs/rosc.h"
+#include "hardware/vreg.h"
#if MICROPY_PY_LWIP
#include "lwip/init.h"
#include "lwip/apps/mdns.h"
@@ -72,6 +73,12 @@ bi_decl(bi_program_feature_group_with_flags(BINARY_INFO_TAG_MICROPYTHON,
@@ -74,6 +75,12 @@ bi_decl(bi_program_feature_group_with_flags(BINARY_INFO_TAG_MICROPYTHON,
BI_NAMED_GROUP_SEPARATE_COMMAS | BI_NAMED_GROUP_SORT_ALPHA));

int main(int argc, char **argv) {
Expand All @@ -20,6 +20,6 @@ index ff0384b95..82b4c856f 100644
+ sleep_ms(10);
+ set_sys_clock_khz(250000, true);
+
#if MICROPY_HW_ENABLE_UART_REPL
bi_decl(bi_program_feature("UART REPL"))
setup_default_uart();
// This is a tickless port, interrupts should always trigger SEV.
SCB->SCR |= SCB_SCR_SEVONPEND_Msk;

0 comments on commit 295772f

Please sign in to comment.