mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-01-18 12:03:57 +08:00
Merge pull request #5516 from cazure/master
[bsp/n32g452xx] add can drivers
This commit is contained in:
commit
16806a1496
1002
bsp/n32g452xx/Libraries/rt_drivers/drv_can.c
Normal file
1002
bsp/n32g452xx/Libraries/rt_drivers/drv_can.c
Normal file
File diff suppressed because it is too large
Load Diff
31
bsp/n32g452xx/Libraries/rt_drivers/drv_can.h
Normal file
31
bsp/n32g452xx/Libraries/rt_drivers/drv_can.h
Normal file
@ -0,0 +1,31 @@
|
||||
/*
|
||||
* Copyright (c) 2006-2022, RT-Thread Development Team
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*
|
||||
* Change Logs:
|
||||
* Date Author Notes
|
||||
* 2022-01-09 chenbin the first version
|
||||
*/
|
||||
|
||||
#ifndef __DRV_CAN_H__
|
||||
#define __DRV_CAN_H__
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
#include <board.h>
|
||||
#include <rtdevice.h>
|
||||
#include <rtthread.h>
|
||||
|
||||
int rt_hw_can_init(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /*__DRV_CAN_H__ */
|
||||
|
||||
/************************** end of file ******************/
|
Loading…
x
Reference in New Issue
Block a user