860094e893
- move all normal drivers (devices framework drivers) into drivers folder. - create nano folder for nano drivers nano drivers are only for a simply wrap of the HAL function, and not seek for adopting rt-thread devcies framework. - provide unified nano console and GPIO drivers.
16 lines
280 B
Python
16 lines
280 B
Python
Import('RTT_ROOT')
|
|
Import('rtconfig')
|
|
from building import *
|
|
|
|
cwd = GetCurrentDir()
|
|
group = []
|
|
src = ['drv_gpio.c']
|
|
path = [cwd]
|
|
|
|
if GetDepend(['RT_USING_CONSOLE']):
|
|
src += ['drv_console.c']
|
|
|
|
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path)
|
|
|
|
Return('group')
|