zephyr/modules/hal_wch/hal_ch32fun.h
Camille BAUD 1d91c4aecb modules: hal_wch: fix conditional compilation
adds _D8W for CH32V208

Signed-off-by: Camille BAUD <mail@massdriver.space>
2025-06-03 21:30:48 -07:00

43 lines
696 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 <ch32fun.h>
#endif
#if defined(CONFIG_SOC_SERIES_CH32V00X)
#define CH32V00x 1
#include <ch32fun.h>
#endif
#if defined(CONFIG_SOC_SERIES_QINGKE_V4B)
#define CH32V20x 1
#include <ch32fun.h>
#endif
#if defined(CONFIG_SOC_SERIES_QINGKE_V4C)
#if defined(CONFIG_SOC_CH32V208)
#define CH32V20x_D8W 1
#endif
#define CH32V20x 1
#include <ch32fun.h>
#endif
#if defined(CONFIG_SOC_SERIES_QINGKE_V4F)
#define CH32V30x 1
#if defined(CONFIG_SOC_CH32V303)
#define CH32V30x_D8 1
#endif
#include <ch32fun.h>
#endif
#endif