From 295772f7e3ddab700e8bc99b6506df61f59dbec1 Mon Sep 17 00:00:00 2001 From: Phil Howard Date: Fri, 5 Jul 2024 19:19:48 +0100 Subject: [PATCH] MicroPython: Update overclock patch. --- micropython/overclock_and_overvolt.patch | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/micropython/overclock_and_overvolt.patch b/micropython/overclock_and_overvolt.patch index 77b758e..8865cd0 100644 --- a/micropython/overclock_and_overvolt.patch +++ b/micropython/overclock_and_overvolt.patch @@ -1,8 +1,8 @@ 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" @@ -10,7 +10,7 @@ index ff0384b95..82b4c856f 100644 #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) { @@ -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; +