Expand description
Boot request signaling and boot mode selection.
Three schemes selected automatically by chip capabilities and flash mode:
- reg:
BOOT_MODEregister (system-flash, chips withoutboot_pin) - ram: RAM magic word (user-flash, all chips)
- gpio: RAM magic word + GPIO pin (system-flash, chips with
boot_pin)
Scheme cfgs (boot_req_reg, boot_req_ram, boot_req_gpio) are set by
the build script. ram and gpio are both active for system-flash + boot_pin.
Structs§
- Config
- Boot control hardware configuration (no-op for reg and ram schemes).
Functions§
- init
- Initialize boot control hardware. Call once at startup.
- is_
boot_ requested - Check whether a boot-to-bootloader request is pending.
- set_
boot_ request - Signal (or clear) boot intent for the next reset.