diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2024-10-29 11:51:29 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2024-11-14 11:24:47 -0500 |
commit | 8a203cf2cbd805f627c138a48780183c783451cc (patch) | |
tree | b87a37041a7b4b476bc3507bc3d5bb71bd837a32 /src/rp2040/internal.h | |
parent | 58541a799ea9dd4141595febd50ebfc0177f629b (diff) | |
download | kutter-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/internal.h')
-rw-r--r-- | src/rp2040/internal.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/rp2040/internal.h b/src/rp2040/internal.h index 010318a6..da5b0a5b 100644 --- a/src/rp2040/internal.h +++ b/src/rp2040/internal.h @@ -14,11 +14,8 @@ void enable_pclock(uint32_t reset_bit); int is_enabled_pclock(uint32_t reset_bit); uint32_t get_pclock_frequency(uint32_t reset_bit); void gpio_peripheral(uint32_t gpio, int func, int pull_up); -void reset_to_usb_boot(uint32_t gpio_activity_pin_mask - , uint32_t disable_interface_mask); -void connect_internal_flash(void); -void flash_exit_xip(void); -void flash_flush_cache(void); +void bootrom_reboot_usb_bootloader(void); +void bootrom_read_unique_id(uint8_t *out, uint32_t maxlen); // Force a function to run from ram #define UNIQSEC __FILE__ "." __stringify(__LINE__) |