From 24042a0cf18f407f044297527735eb57bea226bb Mon Sep 17 00:00:00 2001 From: Stefan Kerkmann Date: Fri, 30 Aug 2024 10:03:22 +0200 Subject: [PATCH] bootloaders: rp2040: update for pico sdk 2.0 --- platforms/chibios/bootloaders/rp2040.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/platforms/chibios/bootloaders/rp2040.c b/platforms/chibios/bootloaders/rp2040.c index 524d13e636f..eefaf377557 100644 --- a/platforms/chibios/bootloaders/rp2040.c +++ b/platforms/chibios/bootloaders/rp2040.c @@ -6,6 +6,7 @@ #include "gpio.h" #include "wait.h" #include "pico/bootrom.h" +#include "pico/runtime_init.h" #if !defined(RP2040_BOOTLOADER_DOUBLE_TAP_RESET_LED) # define RP2040_BOOTLOADER_DOUBLE_TAP_RESET_LED_MASK 0U @@ -39,7 +40,7 @@ const uint32_t magic_token = 0xCAFEB0BA; void __late_init(void) { // All clocks have to be enabled before jumping to the bootloader function, // otherwise the bootrom will be stuck infinitely. - clocks_init(); + runtime_init_clocks(); if (magic_location != magic_token) { magic_location = magic_token;