mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-03-28 02:03:20 +08:00
add lpc408x can driver
This commit is contained in:
@@ -39,7 +39,7 @@ void rtthread_startup(void)
|
||||
rt_system_heap_init((void *)HEAP_BEGIN, (void *)HEAP_END);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
rt_components_board_init();
|
||||
/* initialize scheduler system */
|
||||
rt_system_scheduler_init();
|
||||
/* initialize system timer*/
|
||||
|
||||
973
bsp/lpc408x/drivers/drv_lpccan.c
Normal file
973
bsp/lpc408x/drivers/drv_lpccan.c
Normal file
File diff suppressed because it is too large
Load Diff
29
bsp/lpc408x/drivers/drv_lpccan.h
Normal file
29
bsp/lpc408x/drivers/drv_lpccan.h
Normal file
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
* File : drv_lpccan.h
|
||||
* This file is part of RT-Thread RTOS
|
||||
* COPYRIGHT (C) 2015, RT-Thread Development Team
|
||||
*
|
||||
* The license and distribution terms for this file may be
|
||||
* found in the file LICENSE in this distribution or at
|
||||
* http://www.rt-thread.org/license/LICENSE
|
||||
*
|
||||
* Change Logs:
|
||||
* Date Author Notes
|
||||
* 2015-06-30 aubrcool@qq.com first version
|
||||
*/
|
||||
|
||||
#ifndef DRV_LPCCAN_H_
|
||||
#define DRV_LPCCAN_H_
|
||||
#include <rthw.h>
|
||||
#include <rtdevice.h>
|
||||
|
||||
#define LPC_CAN_AF_STD_INIT(id) \
|
||||
RT_CAN_FILTER_ITEM_INIT(id,0,0,0,0xFFFFFFFF)
|
||||
#define LPC_CAN_AF_EXT_INIT(id) \
|
||||
RT_CAN_FILTER_ITEM_INIT(id,1,0,0,0xFFFFFFFF)
|
||||
#define LPC_CAN_AF_STD_GRP_INIT(id1,id2) \
|
||||
RT_CAN_FILTER_ITEM_INIT(id1,0,0,1,id2)
|
||||
#define LPC_CAN_AF_EXT_GRP_INIT(id1,id2) \
|
||||
RT_CAN_FILTER_ITEM_INIT(id1,1,0,1,id2)
|
||||
|
||||
#endif /*DRV_LPCCAN_H_*/
|
||||
File diff suppressed because it is too large
Load Diff
@@ -72,6 +72,7 @@
|
||||
#define RT_USING_DEVICE_IPC
|
||||
// <bool name="RT_USING_SERIAL" description="Using Serial Device Driver Framework" default="true" />
|
||||
#define RT_USING_SERIAL
|
||||
#define RT_USING_CAN
|
||||
// <integer name="RT_UART_RX_BUFFER_SIZE" description="The buffer size for UART reception" default="64" />
|
||||
#define RT_UART_RX_BUFFER_SIZE 64
|
||||
// </section>
|
||||
@@ -95,6 +96,7 @@
|
||||
#define RT_USING_COMPONENTS_INIT
|
||||
// <section name="RT_USING_FINSH" description="Using finsh as shell, which is a C-Express shell" default="true" >
|
||||
#define RT_USING_FINSH
|
||||
#define FINSH_USING_MSH
|
||||
// <bool name="FINSH_USING_SYMTAB" description="Using symbol table in finsh shell" default="true" />
|
||||
#define FINSH_USING_SYMTAB
|
||||
// <bool name="FINSH_USING_DESCRIPTION" description="Keeping description in symbol table" default="true" />
|
||||
@@ -236,5 +238,6 @@
|
||||
// </section>
|
||||
|
||||
// </RDTConfigurator>
|
||||
|
||||
#define RT_USING_LPCCAN1
|
||||
#define RT_USING_CPU_FFS
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user