[update] rtconfig.py
This commit is contained in:
parent
bae07bdab1
commit
f26dc89de6
|
@ -27,88 +27,88 @@ STM32L5xx_HAL_Driver/Src/STM32l5xx_hal_gpio.c
|
|||
''')
|
||||
|
||||
if GetDepend(['RT_USING_SERIAL']):
|
||||
src += ['STM32L5xx_HAL_Driver/Src/STM32l5xx_hal_uart.c']
|
||||
src += ['STM32L5xx_HAL_Driver/Src/STM32l5xx_hal_uart_ex.c']
|
||||
src += ['STM32L5xx_HAL_Driver/Src/STM32l5xx_hal_usart.c']
|
||||
src += ['STM32L5xx_HAL_Driver/Src/STM32l5xx_hal_usart_ex.c']
|
||||
src += ['STM32L5xx_HAL_Driver/Src/stm32l5xx_hal_uart.c']
|
||||
src += ['STM32L5xx_HAL_Driver/Src/stm32l5xx_hal_uart_ex.c']
|
||||
src += ['STM32L5xx_HAL_Driver/Src/stm32l5xx_hal_usart.c']
|
||||
src += ['STM32L5xx_HAL_Driver/Src/stm32l5xx_hal_usart_ex.c']
|
||||
|
||||
if GetDepend(['RT_USING_I2C']):
|
||||
src += ['STM32L5xx_HAL_Driver/Src/STM32l5xx_hal_i2c.c']
|
||||
src += ['STM32L5xx_HAL_Driver/Src/STM32l5xx_hal_i2c_ex.c']
|
||||
src += ['STM32L5xx_HAL_Driver/Src/stm32l5xx_hal_i2c.c']
|
||||
src += ['STM32L5xx_HAL_Driver/Src/stm32l5xx_hal_i2c_ex.c']
|
||||
|
||||
if GetDepend(['RT_USING_SPI']):
|
||||
src += ['STM32L5xx_HAL_Driver/Src/STM32l5xx_hal_spi.c']
|
||||
src += ['STM32L5xx_HAL_Driver/Src/STM32l5xx_hal_spi_ex.c']
|
||||
src += ['STM32L5xx_HAL_Driver/Src/STM32l5xx_hal_qspi.c']
|
||||
src += ['STM32L5xx_HAL_Driver/Src/stm32l5xx_hal_spi.c']
|
||||
src += ['STM32L5xx_HAL_Driver/Src/stm32l5xx_hal_spi_ex.c']
|
||||
src += ['STM32L5xx_HAL_Driver/Src/stm32l5xx_hal_qspi.c']
|
||||
|
||||
if GetDepend(['RT_USING_USB']):
|
||||
src += ['STM32L5xx_HAL_Driver/Src/STM32l5xx_hal_hcd.c']
|
||||
src += ['STM32L5xx_HAL_Driver/Src/STM32l5xx_hal_pcd.c']
|
||||
src += ['STM32L5xx_HAL_Driver/Src/STM32l5xx_hal_pcd_ex.c']
|
||||
src += ['STM32L5xx_HAL_Driver/Src/STM32l5xx_ll_usb.c']
|
||||
src += ['STM32L5xx_HAL_Driver/Src/stm32l5xx_hal_hcd.c']
|
||||
src += ['STM32L5xx_HAL_Driver/Src/stm32l5xx_hal_pcd.c']
|
||||
src += ['STM32L5xx_HAL_Driver/Src/stm32l5xx_hal_pcd_ex.c']
|
||||
src += ['STM32L5xx_HAL_Driver/Src/stm32l5xx_ll_usb.c']
|
||||
|
||||
if GetDepend(['RT_USING_CAN']):
|
||||
src += ['STM32L5xx_HAL_Driver/Src/STM32l5xx_hal_can.c']
|
||||
src += ['STM32L5xx_HAL_Driver/Src/stm32l5xx_hal_can.c']
|
||||
|
||||
if GetDepend(['RT_USING_HWTIMER']) or GetDepend(['RT_USING_PWM']):
|
||||
src += ['STM32L5xx_HAL_Driver/Src/STM32l5xx_hal_lptim.c']
|
||||
src += ['STM32L5xx_HAL_Driver/Src/STM32l5xx_hal_tim.c']
|
||||
src += ['STM32L5xx_HAL_Driver/Src/STM32l5xx_hal_tim_ex.c']
|
||||
src += ['STM32L5xx_HAL_Driver/Src/stm32l5xx_hal_lptim.c']
|
||||
src += ['STM32L5xx_HAL_Driver/Src/stm32l5xx_hal_tim.c']
|
||||
src += ['STM32L5xx_HAL_Driver/Src/stm32l5xx_hal_tim_ex.c']
|
||||
|
||||
if GetDepend(['RT_USING_ADC']):
|
||||
src += ['STM32L5xx_HAL_Driver/Src/STM32l5xx_hal_adc.c']
|
||||
src += ['STM32L5xx_HAL_Driver/Src/STM32l5xx_hal_adc_ex.c']
|
||||
src += ['STM32L5xx_HAL_Driver/Src/stm32l5xx_hal_adc.c']
|
||||
src += ['STM32L5xx_HAL_Driver/Src/stm32l5xx_hal_adc_ex.c']
|
||||
|
||||
if GetDepend(['RT_USING_DAC']):
|
||||
src += ['STM32L5xx_HAL_Driver/Src/STM32l5xx_hal_dac.c']
|
||||
src += ['STM32L5xx_HAL_Driver/Src/STM32l5xx_hal_dac_ex.c']
|
||||
src += ['STM32L5xx_HAL_Driver/Src/stm32l5xx_hal_dac.c']
|
||||
src += ['STM32L5xx_HAL_Driver/Src/stm32l5xx_hal_dac_ex.c']
|
||||
|
||||
if GetDepend(['RT_USING_RTC']):
|
||||
src += ['STM32L5xx_HAL_Driver/Src/STM32l5xx_hal_rtc.c']
|
||||
src += ['STM32L5xx_HAL_Driver/Src/STM32l5xx_hal_rtc_ex.c']
|
||||
src += ['STM32L5xx_HAL_Driver/Src/stm32l5xx_hal_rtc.c']
|
||||
src += ['STM32L5xx_HAL_Driver/Src/stm32l5xx_hal_rtc_ex.c']
|
||||
|
||||
if GetDepend(['RT_USING_WDT']):
|
||||
src += ['STM32L5xx_HAL_Driver/Src/STM32l5xx_hal_iwdg.c']
|
||||
src += ['STM32L5xx_HAL_Driver/Src/STM32l5xx_hal_wwdg.c']
|
||||
src += ['STM32L5xx_HAL_Driver/Src/stm32l5xx_hal_iwdg.c']
|
||||
src += ['STM32L5xx_HAL_Driver/Src/stm32l5xx_hal_wwdg.c']
|
||||
|
||||
if GetDepend(['RT_USING_SDIO']):
|
||||
src += ['STM32L5xx_HAL_Driver/Src/STM32l5xx_hal_sd.c']
|
||||
src += ['STM32L5xx_HAL_Driver/Src/STM32l5xx_hal_sd_ex.c']
|
||||
src += ['STM32L5xx_HAL_Driver/Src/STM32l5xx_ll_sdmmc.c']
|
||||
src += ['STM32L5xx_HAL_Driver/Src/stm32l5xx_hal_sd.c']
|
||||
src += ['STM32L5xx_HAL_Driver/Src/stm32l5xx_hal_sd_ex.c']
|
||||
src += ['STM32L5xx_HAL_Driver/Src/stm32l5xx_ll_sdmmc.c']
|
||||
|
||||
if GetDepend(['RT_USING_AUDIO']):
|
||||
src += ['STM32L5xx_HAL_Driver/Src/STM32l5xx_hal_sai.c']
|
||||
src += ['STM32L5xx_HAL_Driver/Src/STM32l5xx_hal_sai_ex.c']
|
||||
src += ['STM32L5xx_HAL_Driver/Src/stm32l5xx_hal_sai.c']
|
||||
src += ['STM32L5xx_HAL_Driver/Src/stm32l5xx_hal_sai_ex.c']
|
||||
|
||||
if GetDepend(['RT_USING_MTD_NOR']):
|
||||
src += ['STM32L5xx_HAL_Driver/Src/STM32l5xx_hal_nor.c']
|
||||
src += ['STM32L5xx_HAL_Driver/Src/stm32l5xx_hal_nor.c']
|
||||
|
||||
if GetDepend(['RT_USING_MTD_NAND']):
|
||||
src += ['STM32L5xx_HAL_Driver/Src/STM32l5xx_hal_nand.c']
|
||||
src += ['STM32L5xx_HAL_Driver/Src/stm32l5xx_hal_nand.c']
|
||||
|
||||
if GetDepend(['RT_USING_PM']):
|
||||
src += ['STM32L5xx_HAL_Driver/Src/STM32l5xx_hal_lptim.c']
|
||||
src += ['STM32L5xx_HAL_Driver/Src/stm32l5xx_hal_lptim.c']
|
||||
|
||||
if GetDepend(['BSP_USING_ON_CHIP_FLASH']):
|
||||
src += ['STM32L5xx_HAL_Driver/Src/STM32l5xx_hal_flash.c']
|
||||
src += ['STM32L5xx_HAL_Driver/Src/STM32l5xx_hal_flash_ex.c']
|
||||
src += ['STM32L5xx_HAL_Driver/Src/STM32l5xx_hal_flash_ramfunc.c']
|
||||
src += ['STM32L5xx_HAL_Driver/Src/stm32l5xx_hal_flash.c']
|
||||
src += ['STM32L5xx_HAL_Driver/Src/stm32l5xx_hal_flash_ex.c']
|
||||
src += ['STM32L5xx_HAL_Driver/Src/stm32l5xx_hal_flash_ramfunc.c']
|
||||
|
||||
if GetDepend(['BSP_USING_FMC']):
|
||||
src += ['STM32L5xx_HAL_Driver/Src/STM32l5xx_ll_fmc.c']
|
||||
src += ['STM32L5xx_HAL_Driver/Src/stm32l5xx_ll_fmc.c']
|
||||
|
||||
if GetDepend(['BSP_USING_GFXMMU']):
|
||||
src += ['STM32L5xx_HAL_Driver/Src/STM32l5xx_hal_gfxmmu.c']
|
||||
src += ['STM32L5xx_HAL_Driver/Src/stm32l5xx_hal_gfxmmu.c']
|
||||
|
||||
if GetDepend(['BSP_USING_DSI']):
|
||||
src += ['STM32L5xx_HAL_Driver/Src/STM32l5xx_hal_dsi.c']
|
||||
src += ['STM32L5xx_HAL_Driver/Src/STM32l5xx_hal_dma2d.c']
|
||||
src += ['STM32L5xx_HAL_Driver/Src/STM32l5xx_ll_dma2d.c']
|
||||
src += ['STM32L5xx_HAL_Driver/Src/STM32l5xx_hal_ltdc.c']
|
||||
src += ['STM32L5xx_HAL_Driver/Src/STM32l5xx_hal_ltdc_ex.c']
|
||||
src += ['STM32L5xx_HAL_Driver/Src/stm32l5xx_hal_dsi.c']
|
||||
src += ['STM32L5xx_HAL_Driver/Src/stm32l5xx_hal_dma2d.c']
|
||||
src += ['STM32L5xx_HAL_Driver/Src/stm32l5xx_ll_dma2d.c']
|
||||
src += ['STM32L5xx_HAL_Driver/Src/stm32l5xx_hal_ltdc.c']
|
||||
src += ['STM32L5xx_HAL_Driver/Src/stm32l5xx_hal_ltdc_ex.c']
|
||||
|
||||
if GetDepend(['BSP_USING_SRAM']):
|
||||
src += ['STM32L5xx_HAL_Driver/Src/STM32l5xx_hal_sram.c']
|
||||
src += ['STM32L5xx_HAL_Driver/Src/stm32l5xx_hal_sram.c']
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -43,7 +43,7 @@ if PLATFORM == 'gcc':
|
|||
OBJDUMP = PREFIX + 'objdump'
|
||||
OBJCPY = PREFIX + 'objcopy'
|
||||
|
||||
DEVICE = ' -mcpu=cortex-m33 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=hard -ffunction-sections -fdata-sections'
|
||||
DEVICE = ' -mcpu=cortex-m33 -mthumb -mfpu=fpv5-sp-d16 -mfloat-abi=hard -ffunction-sections -fdata-sections'
|
||||
CFLAGS = DEVICE + ' -Dgcc'
|
||||
AFLAGS = ' -c' + DEVICE + ' -x assembler-with-cpp -Wa,-mimplicit-it=thumb '
|
||||
LFLAGS = DEVICE + ' -Wl,--gc-sections,-Map=rt-thread.map,-cref,-u,Reset_Handler -T board/linker_scripts/link.lds'
|
||||
|
@ -104,7 +104,7 @@ elif PLATFORM == 'armclang':
|
|||
|
||||
DEVICE = ' --cpu Cortex-M33.fp '
|
||||
CFLAGS = ' --target=arm-arm-none-eabi -mcpu=cortex-m4 '
|
||||
CFLAGS += ' -mcpu=cortex-m33 -mfpu=fpv4-sp-d16 '
|
||||
CFLAGS += ' -mcpu=cortex-m33 -mfpu=fpv5-sp-d16 '
|
||||
CFLAGS += ' -mfloat-abi=hard -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
|
||||
CFLAGS += ' -gdwarf-3 -ffunction-sections '
|
||||
AFLAGS = DEVICE + ' --apcs=interwork '
|
||||
|
@ -159,7 +159,7 @@ elif PLATFORM == 'iar':
|
|||
AFLAGS += ' -w+'
|
||||
AFLAGS += ' -r'
|
||||
AFLAGS += ' --cpu Cortex-M33'
|
||||
AFLAGS += ' --fpu VFPv4_sp'
|
||||
AFLAGS += ' --fpu VFPv5_sp'
|
||||
AFLAGS += ' -S'
|
||||
|
||||
if BUILD == 'debug':
|
||||
|
|
Loading…
Reference in New Issue