Files
rt-thread/bsp/microchip/same70/bsp/SConscript
Kevin Liu 8af8decb62 Add Microchip SAM series MCU support for RT-Thread (#5771)
* Add Microchip SAM series MCU support for RT-Thread

Add Microchip SAM series MCU support for RT-Thread, including SAM Cortex-M0+, M4F and M7.

* Add bsp directory to ignored check list

Add bsp directory to ignored check list, add microchip /samc21/same54/same70 to workflows list

* remove STDIO definition and bug fix

1. remove STDIO code from Microchip official BSP. 2. bug fix of SAME70 hpl/hpl_usart.c, samc21&same54 hpl/hpl_sercom.c baudrate update interface.  3. Add RT-Thread standard STDIO implementation on Microchip SAM MCU.

* add CAN driver & example and script fix

Add CAN driver and example for SAMC21/SAME5x/SAME70 and fix rtconfig.py issue(unused space might result link error)

* Add Chinese version README

Add Chinese version README for SAMC21/E54/E70
2022-04-14 10:54:53 +08:00

55 lines
1.4 KiB
Python

import rtconfig
from building import *
# get current directory
cwd = GetCurrentDir()
#var defined
CPPDEFINES = []
#common lib define
CPPDEFINES += [rtconfig.DEVICE_TYPE]
# The set of source files associated with this SConscript file.
src = Glob('hal/src/*.c')
src += Glob('hal/utils/src/*.c')
src += Glob('hpl/core/*.c')
src += Glob('hpl/mcan/*.c')
src += Glob('hpl/pmc/*.c')
src += Glob('hpl/systick/*.c')
src += Glob('hpl/usart/*.c')
src += Glob('hpl/xdmac/*.c')
src += [cwd + '/atmel_start.c']
src += [cwd + '/driver_init.c']
#add for startup script
if rtconfig.CROSS_TOOL == 'gcc':
src += [cwd + '/same70b/gcc/system_same70q21b.c']
src += [cwd + '/same70b/gcc/gcc/startup_same70q21b.c']
elif rtconfig.CROSS_TOOL == 'keil':
src += [cwd + '/same70b/armcc/Source/' + 'system_same70q21b.c']
src += [cwd + '/same70b/armcc/Source/ARM/' + 'startup_SAME70.s']
elif rtconfig.CROSS_TOOL == 'iar':
src += [cwd + '/same70b/iar/' + 'system_same70q21b.c']
src += [cwd + '/same70b/iar/iar/' + 'startup_same70q21b.c']
path = [
cwd,
cwd + '/CMSIS/Core/Include',
cwd + '/config',
cwd + '/hal/include',
cwd + '/hal/utils/include',
cwd + '/hpl/core',
cwd + '/hpl/mcan',
cwd + '/hpl/pio',
cwd + '/hpl/pmc',
cwd + '/hpl/systick',
cwd + '/hpl/usart',
cwd + '/hri',
cwd + '/same70b/include',]
group = DefineGroup('Libraries', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES)
Return('group')