2015-08-28 16:57:41 +08:00
|
|
|
Import('RTT_ROOT')
|
|
|
|
Import('rtconfig')
|
|
|
|
from building import *
|
|
|
|
|
|
|
|
cwd = os.path.join(str(Dir('#')), 'drivers')
|
|
|
|
|
|
|
|
# add the general drivers.
|
|
|
|
src = Split("""
|
|
|
|
board.c
|
|
|
|
led.c
|
2020-04-11 12:06:40 +08:00
|
|
|
key.c
|
2020-04-10 21:40:33 +08:00
|
|
|
uart.c
|
2015-08-28 16:57:41 +08:00
|
|
|
""")
|
|
|
|
|
|
|
|
if GetDepend('RT_USING_LWIP'):
|
2023-01-09 10:14:23 +08:00
|
|
|
src += ['dm9000.c']
|
2015-08-28 16:57:41 +08:00
|
|
|
|
2020-04-11 12:06:40 +08:00
|
|
|
if GetDepend('RT_MINI2440_LCD_A70'):
|
|
|
|
src += ['lcd_a70.c']
|
|
|
|
if GetDepend('RT_MINI2440_LCD_T43'):
|
|
|
|
src += ['lcd_t43.c']
|
|
|
|
if GetDepend('RT_MINI2440_LCD_N35'):
|
|
|
|
src += ['lcd_n35.c']
|
|
|
|
if GetDepend('RT_MINI2440_LCD_T35'):
|
|
|
|
src += ['lcd_t35.c']
|
|
|
|
if GetDepend('RT_MINI2440_LCD_X35'):
|
|
|
|
src += ['lcd_x35.c']
|
2015-08-28 16:57:41 +08:00
|
|
|
|
2020-04-11 17:56:02 +08:00
|
|
|
if GetDepend('PKG_USING_GUIENGINE'):
|
2020-04-15 21:03:43 +08:00
|
|
|
src += ['touch.c']
|
2020-04-11 12:06:40 +08:00
|
|
|
|
|
|
|
if GetDepend('RT_USING_SDIO'):
|
|
|
|
src += ['s3cmci.c']
|
|
|
|
|
2015-08-28 16:57:41 +08:00
|
|
|
|
|
|
|
CPPPATH = [cwd]
|
|
|
|
|
|
|
|
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH)
|
|
|
|
|
|
|
|
Return('group')
|
|
|
|
|