aboutsummaryrefslogtreecommitdiffstats
path: root/src/rp2040/main.c
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2024-10-29 11:51:29 -0400
committerKevin O'Connor <kevin@koconnor.net>2024-11-14 11:24:47 -0500
commit8a203cf2cbd805f627c138a48780183c783451cc (patch)
treeb87a37041a7b4b476bc3507bc3d5bb71bd837a32 /src/rp2040/main.c
parent58541a799ea9dd4141595febd50ebfc0177f629b (diff)
downloadkutter-8a203cf2cbd805f627c138a48780183c783451cc.tar.gz
kutter-8a203cf2cbd805f627c138a48780183c783451cc.tar.xz
kutter-8a203cf2cbd805f627c138a48780183c783451cc.zip
rp2040: Move chipid reading to bootrom.c
Rewrite chipid.c so that it contains just the USB and canbus id manipulation code. Move the low-level chipid reading to bootrom.c. Also, introduce a new bootrom_reboot_usb_bootloader() function in bootrom.c so that the main.c code does not need to know the specifics of rebooting into the bootrom. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/rp2040/main.c')
-rw-r--r--src/rp2040/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rp2040/main.c b/src/rp2040/main.c
index ed84e6e0..95fa5f15 100644
--- a/src/rp2040/main.c
+++ b/src/rp2040/main.c
@@ -51,7 +51,7 @@ bootloader_request(void)
try_request_canboot();
// Use the bootrom-provided code to reset into BOOTSEL mode
if (CONFIG_MACH_RP2040)
- reset_to_usb_boot(0, 0);
+ bootrom_reboot_usb_bootloader();
}