Skip to content

Commit

Permalink
examples: wch: Add examples for ch32v307
Browse files Browse the repository at this point in the history
Add examples for the CH32V307 microcontroller, including empty and blinky
examples for both the chip and the CH32V307VCT6-R1 board.

Signed-off-by: Junhui Liu <[email protected]>
  • Loading branch information
pigmoral committed Feb 11, 2025
1 parent f7ea060 commit 55c2f4f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions examples/wch/ch32v/build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ pub fn build(b: *std.Build) void {
.{ .target = mb.ports.ch32v.chips.ch32v203x8, .name = "empty_ch32v203", .file = "src/empty.zig" },
.{ .target = mb.ports.ch32v.chips.ch32v203x8, .name = "blinky_ch32v203", .file = "src/blinky.zig" },
.{ .target = mb.ports.ch32v.boards.ch32v203.suzuduino_uno_v1b, .name = "suzuduino_blinky", .file = "src/board_blinky.zig" },

// CH32V307
.{ .target = mb.ports.ch32v.chips.ch32v307xc, .name = "empty_ch32v307", .file = "src/empty.zig" },
.{ .target = mb.ports.ch32v.chips.ch32v307xc, .name = "blinky_ch32v307", .file = "src/blinky.zig" },
.{ .target = mb.ports.ch32v.boards.ch32v307.ch32v307v_r1_1v0, .name = "ch32v307v_r1_1v0_blinky", .file = "src/blinky.zig" },
};

for (available_examples) |example| {
Expand Down

0 comments on commit 55c2f4f

Please sign in to comment.