diff options
| author | 杨熙 <[email protected]> | 2024-02-16 00:30:50 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-02-16 00:30:50 +0800 |
| commit | 41e08084f85646512b1529c8ac4c3201fba63833 (patch) | |
| tree | e479ac0237e719ccc393c8a141eaf5cd747ba499 /bsp/nxp/mcxa/Libraries/drivers/SConscript | |
| parent | 35eea4bc461133d431d457328f1cf987ebc2f787 (diff) | |
Bsp nxp support (#8530)
Co-authored-by: StackYuan <[email protected]>
Diffstat (limited to 'bsp/nxp/mcxa/Libraries/drivers/SConscript')
| -rw-r--r-- | bsp/nxp/mcxa/Libraries/drivers/SConscript | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/bsp/nxp/mcxa/Libraries/drivers/SConscript b/bsp/nxp/mcxa/Libraries/drivers/SConscript new file mode 100644 index 0000000000..a83afdec90 --- /dev/null +++ b/bsp/nxp/mcxa/Libraries/drivers/SConscript @@ -0,0 +1,41 @@ +from building import * + +cwd = GetCurrentDir() + +src = [] + +if GetDepend('BSP_USING_PIN'): + src += ['drv_pin.c'] + +if GetDepend('BSP_USING_UART'): + src += ['drv_uart.c'] + +if GetDepend('BSP_USING_RTC'): + src += ['drv_rtc.c'] + +if GetDepend('BSP_USING_SPI'): + src += ['drv_spi.c'] + +if GetDepend('BSP_USING_SDIO'): + src += ['drv_sdio.c'] + +if GetDepend('BSP_USING_I2C'): + src += ['drv_i2c.c'] + +if GetDepend('BSP_USING_ADC'): + src += ['drv_adc.c'] + +if GetDepend('BSP_USING_HWTIMER'): + src += ['drv_hwtimer.c'] + +if GetDepend('BSP_USING_WDT'): + src += ['drv_wdt.c'] + +if GetDepend('BSP_USING_PWM'): + src += ['drv_pwm.c'] + +path = [cwd,cwd + '/config'] + +group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path) + +Return('group') |
