-
Notifications
You must be signed in to change notification settings - Fork 118
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated PR #223 for current HEAD and extended it for other WCH's CH32…
…V series. (#302) * Updated PR #223 for current head. The modifications for tools by @akiroz was imported without modification. SVD files are merged to be tha same name as its datasheet. Merged startup codes. Imported rcc_init_hsi_pll() into HAL module. The empty.zig example was almost replaced. However, blinky.zig is not merged because the example by @akiroz is accessing peripheral registers in main function. * Extended PR #223 to the other CH32V series chips. No description about ABI for CH32V103 and CH32V202 but assumed it is EABI. Names of the vector table (Interrupt names) are fixed to be the same name for that of the datasheet. --------- Co-authored-by: nosuz <[email protected]>
- Loading branch information
Showing
15 changed files
with
735 additions
and
933 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
const microzig = @import("microzig"); | ||
|
||
pub fn main() void { | ||
while (true) { | ||
asm volatile ("" ::: "memory"); | ||
// asm volatile ("nop"); | ||
} | ||
pub fn main() !void { | ||
asm volatile ("nop"); | ||
// while (true) { | ||
// asm volatile ("" ::: "memory"); | ||
// } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
# WCH CH32Vx03 Package | ||
|
||
SVD is copied from [ch32-rs/ch32-rs](https://github.com/ch32-rs/ch32-rs) | ||
SVD is derived from [ch32-rs/ch32-rs](https://github.com/ch32-rs/ch32-rs). | ||
|
||
However, the names of registers and interrupts are fixed to match the same names in the datasheet. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.