2022-05-06 09:28:21 +08:00
|
|
|
/*
|
2022-05-31 11:53:56 +08:00
|
|
|
* Copyright (c) 2006-2022, RT-Thread Development Team
|
|
|
|
* Copyright (c) 2022, Xiaohua Semiconductor Co., Ltd.
|
2022-05-06 09:28:21 +08:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*
|
|
|
|
* Change Logs:
|
|
|
|
* Date Author Notes
|
|
|
|
* 2022-04-28 CDT first version
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __DRV_CAN_H__
|
|
|
|
#define __DRV_CAN_H__
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include <board.h>
|
|
|
|
#include <rtdevice.h>
|
|
|
|
#include <rtthread.h>
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-05-15 20:57:35 +08:00
|
|
|
/* hc32 can device */
|
|
|
|
struct can_dev_init_params
|
2022-05-06 09:28:21 +08:00
|
|
|
{
|
|
|
|
char *name;
|
|
|
|
};
|
|
|
|
|
|
|
|
int rt_hw_can_init(void);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /*__DRV_CAN_H__ */
|
|
|
|
|
|
|
|
/************************** end of file ******************/
|