mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-10-02 14:23:19 +08:00
Add the ARM NVIC PIC driver, no-MMU I/O mapping, built-in FDT support, and Cortex-M CPU hooks required by the native RT-Thread device model.
34 lines
708 B
Python
34 lines
708 B
Python
from building import *
|
|
|
|
group = []
|
|
|
|
if not GetDepend(['RT_USING_PIC']):
|
|
Return('group')
|
|
|
|
cwd = GetCurrentDir()
|
|
CPPPATH = [cwd + '/../include']
|
|
|
|
src = ['pic.c', 'pic_rthw.c']
|
|
|
|
if GetDepend(['RT_PIC_ARM_NVIC']):
|
|
src += ['pic-arm-nvic.c']
|
|
|
|
if GetDepend(['RT_PIC_ARM_GIC']) or GetDepend(['RT_PIC_ARM_GIC_V3']):
|
|
src += ['pic-gic-common.c']
|
|
|
|
if GetDepend(['RT_PIC_ARM_GIC']):
|
|
src += ['pic-gicv2.c']
|
|
|
|
if GetDepend(['RT_PIC_ARM_GIC_V2M']):
|
|
src += ['pic-gicv2m.c']
|
|
|
|
if GetDepend(['RT_PIC_ARM_GIC_V3']):
|
|
src += ['pic-gicv3.c']
|
|
|
|
if GetDepend(['RT_PIC_ARM_GIC_V3_ITS']):
|
|
src += ['pic-gicv3-its.c']
|
|
|
|
group = DefineGroup('DeviceDrivers', src, depend = [''], CPPPATH = CPPPATH)
|
|
|
|
Return('group')
|