Skip to content

Commit 3dbf080

Browse files
nzmichaelhkartben
authored andcommitted
hal: wch: widen the checks to include the CH32V family
Expand the current systick compatibility to include the CH32V00x series. Change the HAL compatibility to include all of the CH32V family. Signed-off-by: Michael Hope <[email protected]>
1 parent 64067e5 commit 3dbf080

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

drivers/timer/Kconfig.wch_ch32v00x

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# SPDX-License-Identifier: Apache-2.0
33

44
config CH32V00X_SYSTICK
5-
bool "CH32V00X systick timer"
6-
depends on SOC_SERIES_QINGKE_V2A || SOC_SERIES_QINGKE_V4C
5+
bool "CH32V QingKe core systick timer"
6+
depends on SOC_SERIES_QINGKE_V2A || SOC_SERIES_QINGKE_V4C || SOC_SERIES_CH32V00X
77
default y
88
depends on DT_HAS_WCH_SYSTICK_ENABLED

modules/hal_wch/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
if(CONFIG_SOC_SERIES_QINGKE_V2A OR CONFIG_SOC_SERIES_QINGKE_V4C)
1+
if(CONFIG_SOC_FAMILY_CH32V)
22
zephyr_include_directories(${ZEPHYR_HAL_WCH_MODULE_DIR}/ch32v003fun .)
33
endif()

modules/hal_wch/ch32fun.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@
1212
#include <ch32v003fun.h>
1313
#endif
1414

15+
#if defined(CONFIG_SOC_SERIES_CH32V00X)
16+
#define CH32V003 1
17+
#include <ch32v003fun.h>
18+
#endif
19+
1520
#if defined(CONFIG_SOC_SERIES_QINGKE_V4C)
1621
#define CH32V20x 1
1722
#include <ch32v003fun.h>

0 commit comments

Comments
 (0)