modules: hal_wch: add CH32V203 support

Adds CH32V203 support

Signed-off-by: Camille BAUD <mail@massdriver.space>
This commit is contained in:
Camille BAUD 2025-03-21 19:01:47 +01:00 committed by Fabio Baltieri
commit e4783692e4
2 changed files with 6 additions and 0 deletions

View file

@ -69,6 +69,7 @@
reg = <0x40010000 16>;
#address-cells = <1>;
#size-cells = <1>;
clocks = <&rcc CH32V20X_V30X_CLOCK_AFIO>;
gpioa: gpio@40010800 {
compatible = "wch,gpio";

View file

@ -17,6 +17,11 @@
#include <ch32v003fun.h>
#endif
#if defined(CONFIG_SOC_SERIES_QINGKE_V4B)
#define CH32V20x 1
#include <ch32v003fun.h>
#endif
#if defined(CONFIG_SOC_SERIES_QINGKE_V4C)
#define CH32V20x 1
#include <ch32v003fun.h>