Skip to content

Commit 1c21874

Browse files
committed
【增加】fdcan
1 parent 6f70939 commit 1c21874

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

libraries/Kconfig

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,16 @@ menu "On-chip Peripheral"
260260
bool "Enable DCMI"
261261
default n
262262

263+
menuconfig BSP_USING_FDCAN
264+
bool "Enable FDCAN"
265+
default n
266+
select RT_USING_CAN
267+
if BSP_USING_FDCAN
268+
config BSP_USING_FDCAN1
269+
bool "USING FDCAN1"
270+
default n
271+
endif
272+
263273
config BSP_USING_USBD
264274
bool "Enable USB Device"
265275
select RT_USING_USB_DEVICE

libraries/drivers/SConscript

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,10 @@ if GetDepend(['BSP_USING_USBD']):
4545

4646
if GetDepend(['BSP_USING_USBH']):
4747
src += ['drv_usbh.c']
48-
48+
49+
if GetDepend(['RT_USING_CAN']):
50+
src += ['drv_fdcan.c']
51+
4952
path = [cwd]
5053
path += [cwd + '/include']
5154
path += [cwd + '/include/config']

0 commit comments

Comments
 (0)