summaryrefslogtreecommitdiff
path: root/bsp/microchip/common/board/SConscript
diff options
context:
space:
mode:
authorKevin Liu <[email protected]>2022-04-19 14:32:02 +0800
committerGitHub <[email protected]>2022-04-19 14:32:02 +0800
commit7847c5e98d7ec7ca81b0b6dd5dfbd694ef3ba512 (patch)
treeb5f43a4fb12ca433c3a918a3a3e1792786ae3972 /bsp/microchip/common/board/SConscript
parent991b6e78b3bd51b810f6e7a74e7b3665ed90dcab (diff)
Microchip SAM MCU新增ethernet支持和驱动更新 (#5821)
* Microchip SAM MCU BSP update and add ethernet driver 1. Update Microchip SAM MCU BSP, add I2C, GMAC, ADC driver support. 2. Add ethernet driver support of SAM MCU for RT-Thread. * Add GMAC and I2C driver support 1. Update MCU BSP to support I2C/ADC/GMAC peripherals. 2. Add I2C and ethernet driver and LWIP support. 3. Update serial driver. * Add I2C driver and move some files to the common folder 1. Add I2C driver. 2. Move the same drivers and demo code to same folder to reduce duplicated code.
Diffstat (limited to 'bsp/microchip/common/board/SConscript')
-rw-r--r--bsp/microchip/common/board/SConscript21
1 files changed, 21 insertions, 0 deletions
diff --git a/bsp/microchip/common/board/SConscript b/bsp/microchip/common/board/SConscript
new file mode 100644
index 0000000000..a32002a272
--- /dev/null
+++ b/bsp/microchip/common/board/SConscript
@@ -0,0 +1,21 @@
+Import('RTT_ROOT')
+Import('rtconfig')
+from building import *
+
+cwd = GetCurrentDir()
+src = Glob('*.c')
+CPPPATH = [cwd]
+
+#remove other no use files
+if GetDepend('SAM_I2C_EXAMPLE') == False:
+ SrcRemove(src, ['sam_i2c.c'])
+
+if GetDepend('SAM_LWIP_EXAMPLE') == False:
+ SrcRemove(src, ['sam_gmac.c'])
+
+# You can select chips from the list above
+CPPDEFINES = []
+
+group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES)
+
+Return('group') \ No newline at end of file