mirror of
https://github.com/qmk/qmk_firmware.git
synced 2024-11-22 03:19:24 +00:00
bootloaders: rp2040: update for pico sdk 2.0
This commit is contained in:
parent
41bfb5a2ee
commit
24042a0cf1
@ -6,6 +6,7 @@
|
|||||||
#include "gpio.h"
|
#include "gpio.h"
|
||||||
#include "wait.h"
|
#include "wait.h"
|
||||||
#include "pico/bootrom.h"
|
#include "pico/bootrom.h"
|
||||||
|
#include "pico/runtime_init.h"
|
||||||
|
|
||||||
#if !defined(RP2040_BOOTLOADER_DOUBLE_TAP_RESET_LED)
|
#if !defined(RP2040_BOOTLOADER_DOUBLE_TAP_RESET_LED)
|
||||||
# define RP2040_BOOTLOADER_DOUBLE_TAP_RESET_LED_MASK 0U
|
# define RP2040_BOOTLOADER_DOUBLE_TAP_RESET_LED_MASK 0U
|
||||||
@ -39,7 +40,7 @@ const uint32_t magic_token = 0xCAFEB0BA;
|
|||||||
void __late_init(void) {
|
void __late_init(void) {
|
||||||
// All clocks have to be enabled before jumping to the bootloader function,
|
// All clocks have to be enabled before jumping to the bootloader function,
|
||||||
// otherwise the bootrom will be stuck infinitely.
|
// otherwise the bootrom will be stuck infinitely.
|
||||||
clocks_init();
|
runtime_init_clocks();
|
||||||
|
|
||||||
if (magic_location != magic_token) {
|
if (magic_location != magic_token) {
|
||||||
magic_location = magic_token;
|
magic_location = magic_token;
|
||||||
|
Loading…
Reference in New Issue
Block a user