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.
This commit is contained in:
Kevin Liu
2022-04-19 14:32:02 +08:00
committed by GitHub
parent 991b6e78b3
commit 7847c5e98d
180 changed files with 23404 additions and 3570 deletions
+21
View File
@@ -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')