2013-01-08 22:40:58 +08:00
|
|
|
import rtconfig
|
|
|
|
Import('RTT_ROOT')
|
|
|
|
from building import *
|
|
|
|
|
2023-10-23 14:00:07 +08:00
|
|
|
src_bsp = ['application.c', 'startup.c', 'board.c']
|
|
|
|
|
|
|
|
if GetDepend(['RT_USING_PIN']):
|
|
|
|
src_bsp += ['drv_gpio.c']
|
|
|
|
|
|
|
|
if GetDepend(['RT_USING_SERIAL']):
|
|
|
|
if GetDepend(['RT_USING_SERIAL_V2']):
|
|
|
|
src_bsp += ['drv_uart_v2.c']
|
|
|
|
else:
|
|
|
|
src_bsp += ['drv_uart.c']
|
2013-01-08 22:40:58 +08:00
|
|
|
|
2023-01-09 10:14:23 +08:00
|
|
|
src = File(src_bsp)
|
2013-01-08 22:40:58 +08:00
|
|
|
CPPPATH = [RTT_ROOT + '/bsp/avr32uc3b0']
|
|
|
|
group = DefineGroup('Startup', src, depend = [''], CPPPATH = CPPPATH)
|
|
|
|
|
|
|
|
Return('group')
|