2. 在IMXRT的Libraries中增加了peripherals目录,用于具体型号的设备驱动相关的代码的实现,不应与MCU的平台相关,实现PHY的设备对象中的相关接口。 3. 修改了BSP中的Sconstruct文件,增加了peripherals目录的构建 4. 修改了KEIL环境的SCT文件,用于实现以太网功能
17 lines
302 B
Python
17 lines
302 B
Python
from building import *
|
|
|
|
src = []
|
|
cwd = []
|
|
CPPDEFINES = []
|
|
|
|
cwd = GetCurrentDir()
|
|
|
|
if GetDepend('BSP_USING_PHY') and GetDepend('PHY_USING_KSZ8081'):
|
|
src += ['phyksz8081.c']
|
|
|
|
path = [cwd]
|
|
|
|
group = DefineGroup('Peripherals', src, depend = [''], CPPPATH = path, CPPDEFINES=CPPDEFINES)
|
|
|
|
Return('group')
|