-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
port: ch32v: Add support for ch32v307
Add support for the CH32V307 microcontroller to port, including target and board definitions, and new source files for the CH32V307 board and HAL. This enables building firmware for the CH32V307 microcontroller and its associated board. Signed-off-by: Junhui Liu <[email protected]>
- Loading branch information
Showing
3 changed files
with
67 additions
and
0 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
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
// CH32V307V_MINI | ||
// CH32V307 | ||
pub const chip = @import("chip"); | ||
pub const micro = @import("microzig"); | ||
|
||
pub const cpu_frequency = 8_000_000; // 8 MHz |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
pub const pins = @import("pins.zig"); | ||
pub const gpio = @import("gpio.zig"); | ||
|
||
// pub fn init() void {} |