zephyr/modules/hal_wch/ch32fun.h
Michael Hope 3dbf080698 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>
2025-05-09 01:40:22 +02:00

25 lines
402 B
C

/*
* Copyright (c) 2024 Dhiru Kholia
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef _CH32FUN_H
#define _CH32FUN_H
#if defined(CONFIG_SOC_CH32V003)
#define CH32V003 1
#include <ch32v003fun.h>
#endif
#if defined(CONFIG_SOC_SERIES_CH32V00X)
#define CH32V003 1
#include <ch32v003fun.h>
#endif
#if defined(CONFIG_SOC_SERIES_QINGKE_V4C)
#define CH32V20x 1
#include <ch32v003fun.h>
#endif
#endif