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 <michaelh@juju.nz>
This commit is contained in:
parent
64067e5d6a
commit
3dbf080698
3 changed files with 8 additions and 3 deletions
|
@ -2,7 +2,7 @@
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
config CH32V00X_SYSTICK
|
config CH32V00X_SYSTICK
|
||||||
bool "CH32V00X systick timer"
|
bool "CH32V QingKe core systick timer"
|
||||||
depends on SOC_SERIES_QINGKE_V2A || SOC_SERIES_QINGKE_V4C
|
depends on SOC_SERIES_QINGKE_V2A || SOC_SERIES_QINGKE_V4C || SOC_SERIES_CH32V00X
|
||||||
default y
|
default y
|
||||||
depends on DT_HAS_WCH_SYSTICK_ENABLED
|
depends on DT_HAS_WCH_SYSTICK_ENABLED
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
if(CONFIG_SOC_SERIES_QINGKE_V2A OR CONFIG_SOC_SERIES_QINGKE_V4C)
|
if(CONFIG_SOC_FAMILY_CH32V)
|
||||||
zephyr_include_directories(${ZEPHYR_HAL_WCH_MODULE_DIR}/ch32v003fun .)
|
zephyr_include_directories(${ZEPHYR_HAL_WCH_MODULE_DIR}/ch32v003fun .)
|
||||||
endif()
|
endif()
|
||||||
|
|
|
@ -12,6 +12,11 @@
|
||||||
#include <ch32v003fun.h>
|
#include <ch32v003fun.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(CONFIG_SOC_SERIES_CH32V00X)
|
||||||
|
#define CH32V003 1
|
||||||
|
#include <ch32v003fun.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(CONFIG_SOC_SERIES_QINGKE_V4C)
|
#if defined(CONFIG_SOC_SERIES_QINGKE_V4C)
|
||||||
#define CH32V20x 1
|
#define CH32V20x 1
|
||||||
#include <ch32v003fun.h>
|
#include <ch32v003fun.h>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue