4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-01-23 05:37:24 +08:00
xiaoxiaolisunny af82606dd3
[bsp][hc32]添加hc32f460系列WDT外设驱动 (#6158)
* 添加hc32f460系列外设WDT驱动

* format kconfig

* Update drv_wdt.c

Co-authored-by: Man, Jianting (Meco) <920369182@qq.com>
2022-08-02 22:46:35 -04:00

47 lines
903 B
Python

Import('RTT_ROOT')
Import('rtconfig')
from building import *
cwd = GetCurrentDir()
# add the general drivers.
src = Split("""
drv_irq.c
""")
if GetDepend(['RT_USING_PIN']):
src += ['drv_gpio.c']
if GetDepend(['RT_USING_SERIAL']):
src += ['drv_usart.c']
if GetDepend(['RT_USING_SPI']):
src += ['drv_spi.c']
if GetDepend(['RT_USING_I2C', 'RT_USING_I2C_BITOPS']):
src += ['drv_soft_i2c.c']
if GetDepend(['BSP_USING_ETH', 'RT_USING_LWIP']):
src += ['drv_eth.c']
if GetDepend(['RT_USING_ADC']):
src += ['drv_adc.c']
if GetDepend(['RT_USING_CAN']):
src += ['drv_can.c']
if GetDepend(['RT_USING_RTC']):
src += ['drv_rtc.c']
if GetDepend(['RT_USING_WDT']):
src += ['drv_wdt.c']
if GetDepend(['RT_USING_PWM', 'BSP_USING_PWM_TMRA']):
src += ['drv_pwm_tmra.c']
path = [cwd]
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path)
Return('group')