Skip to content

Commit e478369

Browse files
VynDragonfabiobaltieri
authored andcommitted
modules: hal_wch: add CH32V203 support
Adds CH32V203 support Signed-off-by: Camille BAUD <[email protected]>
1 parent 2013d6e commit e478369

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

dts/riscv/wch/ch32v203/ch32v203.dtsi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@
6969
reg = <0x40010000 16>;
7070
#address-cells = <1>;
7171
#size-cells = <1>;
72+
clocks = <&rcc CH32V20X_V30X_CLOCK_AFIO>;
7273

7374
gpioa: gpio@40010800 {
7475
compatible = "wch,gpio";

modules/hal_wch/ch32fun.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@
1717
#include <ch32v003fun.h>
1818
#endif
1919

20+
#if defined(CONFIG_SOC_SERIES_QINGKE_V4B)
21+
#define CH32V20x 1
22+
#include <ch32v003fun.h>
23+
#endif
24+
2025
#if defined(CONFIG_SOC_SERIES_QINGKE_V4C)
2126
#define CH32V20x 1
2227
#include <ch32v003fun.h>

0 commit comments

Comments
 (0)