diff options
Diffstat (limited to 'bsp/nxp/lpc/lpc408x/drivers/SConscript')
| -rw-r--r-- | bsp/nxp/lpc/lpc408x/drivers/SConscript | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/bsp/nxp/lpc/lpc408x/drivers/SConscript b/bsp/nxp/lpc/lpc408x/drivers/SConscript new file mode 100644 index 0000000000..6557de9c16 --- /dev/null +++ b/bsp/nxp/lpc/lpc408x/drivers/SConscript @@ -0,0 +1,31 @@ +from building import * + +cwd = GetCurrentDir() +CPPPATH = [cwd] + +# add the general drivers. +src = Split(""" +board.c +""") + +if GetDepend(['BSP_USING_EMAC']): + src += ['drv_emac.c'] + +if GetDepend(['BSP_USING_HWTIMER0']): + src += ['drv_hwtimer.c'] + +if GetDepend(['BSP_USING_LED']): + src += ['drv_led.c'] + +if GetDepend(['BSP_USING_SDRAM']): + src += ['drv_sdram.c'] + +if GetDepend('BSP_USING_UART0') or GetDepend('BSP_USING_UART2'): + src += ['drv_uart.c'] + +if GetDepend('BSP_USING_ADC'): + src += ['drv_adc.c'] + +group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH) + +Return('group') |
