Skip to content

Simplify crate organization and fix boot / reset naming confusions - #23

Merged
aq1018 merged 12 commits into
mainfrom
refactor/structure-and-naming
Apr 18, 2026
Merged

aq1018 merged 12 commits into
mainfrom
refactor/structure-and-naming

Conversation

@aq1018

@aq1018 aq1018 commented Apr 17, 2026 •

Copy link
Copy Markdown
Collaborator
  • Unified the CH32 crates - merged hal + boot + app into a single tinyboot-ch32, and extracted tinyboot-ch32-rt runtime for system-flash bootloaders.
  • Refactored BootCtl - replaced BootMode with RunMode { HandOff, Service } and split persisted intent (run_mode / set_run_mode) from control flow (reset, hand_off).
  • Restructured platform::boot_ctl into orthogonal run_mode / boot_src / hand_off submodules.
  • Flattened tinyboot_core::traits and moved Platform to crate root.
  • Self-locking storage - removed Storage::unlock(). unlock/lock now scoped per op inside the HAL.
  • Polish - non-HAL bools converted to enums, boot_state -> boot_meta_store, crate aliases dropped.
  • Updated readme and comments ( ai generated )

@aq1018
aq1018 force-pushed the refactor/structure-and-naming branch from 560f6c9 to 2969659 Compare April 17, 2026 17:28
@aq1018 aq1018 changed the title merge ch32 related crates to a single unified ch32 crate, and extract Simplify crate organization and fix boot / reset naming confusions Apr 17, 2026
@aq1018
aq1018 merged commit 8d1fdef into main Apr 18, 2026
10 checks passed
@aq1018
aq1018 deleted the refactor/structure-and-naming branch April 18, 2026 02:26
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.

1 participant