#!python
# STM32F0 Hal Scons script.
Import('prjEnv')

stm32f0_hal_sources = [
    'Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c',
    'Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c',
    'Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_uart.c',
    'Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_uart_ex.c',
    'Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c',
    'Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c',
    'Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c',
    'Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c',
    'Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c',
    'Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c',
    'Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c',
    'Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c',
    'Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c',
    'Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c',
    'Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c',
    'Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c',
    'Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_exti.c',
]

stm32f0_hal_includes = [
    '#Drivers/STM32F0xx_HAL_Driver/Inc',
    '#Drivers/STM32F0xx_HAL_Driver/Inc/Legacy',
    '#Drivers/CMSIS/Device/ST/STM32F0xx/Include',
    '#Drivers/CMSIS/Include',
]

stm32f0_hal_defines = [
    'USE_HAL_DRIVER'
]

prjEnv.Append(
  app_sources = stm32f0_hal_sources,
  CPPPATH = stm32f0_hal_includes,
  CPPDEFINES = stm32f0_hal_defines
)