mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-01-15 06:59:22 +08:00
0f0093aa3e
- [update] 更新 template 工程配置 - [update] 更新 PLATFORM 配置 - [add] 添加 ra icu 驱动文件 - [add] 增加传感器类型 IAQ、EtOH - [add] 添加 CAN 驱动 - [add] 添加 RW007 驱动及使用说明 - [fix] GCC 编译问题 - [fix] flash 驱动 - [fix] 修改 scons 脚本配置
49 lines
1.4 KiB
C
49 lines
1.4 KiB
C
/*
|
|
* Copyright (c) 2006-2021, RT-Thread Development Team
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*
|
|
* Change Logs:
|
|
* Date Author Notes
|
|
* 2021-10-29 mazhiyuan first version
|
|
*/
|
|
|
|
#ifndef __CAN_CONFIG_H__
|
|
#define __CAN_CONFIG_H__
|
|
|
|
#include <rtthread.h>
|
|
#include "hal_data.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#if defined(BSP_USING_CAN0)
|
|
#ifndef CAN0_CONFIG
|
|
#define CAN0_CONFIG \
|
|
{ \
|
|
.name = "can0", \
|
|
.num_of_mailboxs = CAN_NO_OF_MAILBOXES_g_can0, \
|
|
.p_api_ctrl = &g_can0_ctrl, \
|
|
.p_cfg = &g_can0_cfg, \
|
|
}
|
|
#endif /* CAN0_CONFIG */
|
|
#endif /* BSP_USING_CAN0 */
|
|
|
|
#if defined(BSP_USING_CAN1)
|
|
#ifndef CAN1_CONFIG
|
|
#define CAN1_CONFIG \
|
|
{ \
|
|
.name = "can1", \
|
|
.num_of_mailboxs = CAN_NO_OF_MAILBOXES_g_can1, \
|
|
.p_api_ctrl = &g_can1_ctrl, \
|
|
.p_cfg = &g_can1_cfg, \
|
|
}
|
|
#endif /* CAN1_CONFIG */
|
|
#endif /* BSP_USING_CAN1 */
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
#endif
|