Skip to content

Replace Reboot trait with Data struct and release v0.4.0 - #12

Merged
robin-nitrokey merged 5 commits into
mainfrom
reboot2
Sep 16, 2026
Merged

robin-nitrokey merged 5 commits into
mainfrom
reboot2

Conversation

@robin-nitrokey

Copy link
Copy Markdown
Member

This PR makes Reboot::reboot_to_firmware_update non-diverging, introduces a Data struct to make the constructor arguments simpler, replaces the Reboot trait with function pointers in this struct, makes destructive firmware update optional and releases v0.4.0 with these changes.

On the lpc55, the reboot must be triggered from the idle task so the
reboot function needs to return to yield back.
This simplifies the type signature for App and also makes it possible to
make some functions optional.
This feature is only available on some hardware variants. If it is not
enabled, the command will return an error and normal reboot to firmware
update can still be used.
@robin-nitrokey
robin-nitrokey merged commit 8bf2fc9 into main Sep 16, 2026
11 checks passed
@robin-nitrokey
robin-nitrokey deleted the reboot2 branch September 16, 2026 13:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants