Skip to content

ch32h417: Add systick - #1055

Draft
So1aric wants to merge 12 commits into
ZigEmbeddedGroup:mainfrom
So1aric:ch32h417-systick
Draft

So1aric wants to merge 12 commits into
ZigEmbeddedGroup:mainfrom
So1aric:ch32h417-systick

Conversation

@So1aric

@So1aric So1aric commented Sep 18, 2026

Copy link
Copy Markdown

Depends on #1027 .

LED toggling works, but dual-core untested.
Switch to b.addRunArtifact and add_firmware.
Add PLL and basic interrupt support and refine
gpio relevant code.

Now implement a blinky example which showcases
interrupt, clock and gpio usage.

Note that gpio speed and pull configuration is
left unimplemented.
Add priority and allocation (to specific core).
Previously the instructions are placed in flash,
causing ~27cycles delay. Now the instructions are
copied from flash to ram at startup, which solves
the issue.
Now gpio use read, put and toggle. Refine some
comments. Move interrupt relevant code from
blinky to its own example.
This allows comptime generate pin configuration.
Add Systick. Move some of the code out from
cpu.interrupt because they aren't that relevant
to interrupt despite their registers lying in
PFIC.
Remove STK_ and _0/_1.
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