libxr
Embedded C++ framework for bare-metal, RTOS and Linux
Loading...
Searching...
No Matches
ch32_can_caps.hpp
1
#pragma once
2
3
#include "libxr_def.hpp"
4
#include DEF2STR(LIBXR_CH32_CONFIG_FILE)
5
6
// V30x 公共头文件在单 CAN 的 V303(D8)上也定义 CAN2;仅 D8C 为双 CAN。
7
// The V30x common header also defines CAN2 on single-CAN V303 (D8).
8
// Only D8C (V305/V307/V317) has two CAN controllers in this SDK family.
9
#if defined(CH32V30x_D8C)
10
#define LIBXR_CH32_HAS_CAN2 1
11
#else
12
#define LIBXR_CH32_HAS_CAN2 0
13
#endif
driver
ch
ch32_can_caps.hpp
Generated by
1.12.0