4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-01-25 12:07:23 +08:00
Fan Yang c1b22ede30
Add BSP for HPM6750EVK and HPM6750EVKMINI (#6374)
* Add CANFD support and correct typos

- Added CANFD required fields to can.h
- Fixed typos in can.h and can.c
- Corrected all the projects affected by the typo
- Fixed wrong line-ending in some affected can driver files

Signed-off-by: Fan YANG <fan.yang@hpmicro.com>

* update

* bsp: support boards from hpmicro

- Supported HPM6750EVKMINI
- Supported HPM6750EVK

Signed-off-by: Fan YANG <fan.yang@hpmicro.com>

Signed-off-by: Fan YANG <fan.yang@hpmicro.com>
Co-authored-by: Meco Man <920369182@qq.com>
2022-09-06 00:48:16 -04:00

38 lines
1.4 KiB
Python

Import('rtconfig')
import os
from building import *
#get current directory
cwd = GetCurrentDir()
CPPDEFINES=[]
# Update include path
path = [ os.path.join(cwd, 'debug_console'), os.path.join(cwd, 'touch'), os.path.join(cwd, 'usb'), os.path.join(cwd, 'dma_manager') ]
# The set of source files associated with this SConscript file.
src = []
src += [ os.path.join(cwd, 'debug_console', 'hpm_debug_console.c') ]
src += [ os.path.join(cwd, 'dma_manager', 'hpm_dma_manager.c') ]
if GetDepend(['BSP_USING_TOUCH_GT911']):
src += [os.path.join(cwd, 'touch', 'gt911', 'hpm_touch_gt911.c') ]
src += [os.path.join(cwd, 'touch', 'gt911', 'hpm_gt911.c') ]
path += [ os.path.join(cwd, 'touch', 'gt911') ]
CPPDEFINES = ['CONFIG_TOUCH_GT911=1']
if GetDepend(['BSP_USING_TOUCH_FT5406']):
src += [ os.path.join(cwd, 'touch', 'ft5406', 'hpm_touch_ft5406.c') ]
src += [ os.path.join(cwd, 'touch', 'ft5406', 'hpm_ft5406.c') ]
path += [ os.path.join(cwd, 'touch', 'ft5406') ]
CPPDEFINES = ['CONFIG_TOUCH_FT5406=1']
if GetDepend(['BSP_USING_USB_DEVICE']):
src += [ os.path.join(cwd, 'usb', 'device', 'hpm_usb_device.c') ]
path += [ os.path.join(cwd, 'usb', 'device') ]
if GetDepend(['BSP_USING_USB_HOST']):
src += [ os.path.join(cwd, 'usb', 'host', 'hpm_usb_host.c') ]
path += [ os.path.join(cwd, 'usb', 'host') ]
group = DefineGroup('Libraries', src, depend = [''], CPPPATH = path, CPPDEFINES=CPPDEFINES)
Return ('group')