Merge pull request #2892 from yangjie11/dev_cut_fix

[bsp][stm32/libraries]修复在关闭GPIO device drivers时的报错
This commit is contained in:
Bernard Xiong 2019-07-25 00:57:58 +08:00 committed by GitHub
commit 688ad7dc63
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 13 additions and 29 deletions

View File

@ -23,11 +23,9 @@ STM32F0xx_HAL_Driver/Src/stm32f0xx_ll_gpio.c
STM32F0xx_HAL_Driver/Src/stm32f0xx_ll_pwr.c
STM32F0xx_HAL_Driver/Src/stm32f0xx_ll_rcc.c
STM32F0xx_HAL_Driver/Src/stm32f0xx_ll_utils.c
STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c
""")
if GetDepend(['RT_USING_PIN']):
src += ['STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c']
if GetDepend(['RT_USING_SERIAL']):
src += ['STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_uart.c']
src += ['STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_uart_ex.c']

View File

@ -17,10 +17,10 @@ STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc_ex.c
STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.c
STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cec.c
STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_sram.c
STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.c
""")
if GetDepend(['RT_USING_PIN']):
src += ['STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.c']
src += ['STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio_ex.c']
if GetDepend(['RT_USING_SERIAL']):

View File

@ -15,10 +15,8 @@ STM32F2xx_HAL_Driver/Src/stm32f2xx_hal_rcc.c
STM32F2xx_HAL_Driver/Src/stm32f2xx_hal_rcc_ex.c
STM32F2xx_HAL_Driver/Src/stm32f2xx_hal.c
STM32F2xx_HAL_Driver/Src/stm32f2xx_hal_sram.c
STM32F2xx_HAL_Driver/Src/stm32f2xx_hal_gpio.c
""")
if GetDepend(['RT_USING_PIN']):
src += ['STM32F2xx_HAL_Driver/Src/stm32f2xx_hal_gpio.c']
if GetDepend(['RT_USING_SERIAL']):
src += ['STM32F2xx_HAL_Driver/Src/stm32f2xx_hal_uart.c']

View File

@ -21,10 +21,8 @@ STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c
STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc.c
STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc_ex.c
STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rng.c
STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_gpio.c
''')
if GetDepend(['RT_USING_PIN']):
src += ['STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_gpio.c']
if GetDepend(['RT_USING_SERIAL']):
src += ['STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.c']

View File

@ -23,11 +23,9 @@ STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_rcc.c
STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_rcc_ex.c
STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_rng.c
STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_sram.c
STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_gpio.c
''')
if GetDepend(['RT_USING_PIN']):
src += ['STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_gpio.c']
if GetDepend(['RT_USING_SERIAL']):
src += ['STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_uart.c']
src += ['STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_uart_ex.c']

View File

@ -18,11 +18,9 @@ STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_pwr.c
STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_pwr_ex.c
STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_cortex.c
STM32G0xx_HAL_Driver/Src/stm32g0xx_hal.c
STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_gpio.c
""")
if GetDepend(['RT_USING_PIN']):
src += ['STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_gpio.c']
if GetDepend(['RT_USING_SERIAL']):
src += ['STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_uart.c']
src += ['STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_uart_ex.c']

View File

@ -25,11 +25,9 @@ STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.c
STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.c
STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rng.c
STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sram.c
STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.c
''')
if GetDepend(['RT_USING_PIN']):
src += ['STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.c']
if GetDepend(['RT_USING_SERIAL']):
src += ['STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c']
src += ['STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_usart.c']

View File

@ -21,11 +21,9 @@ STM32L0xx_HAL_Driver/Src/stm32l0xx_hal_pwr_ex.c
STM32L0xx_HAL_Driver/Src/stm32l0xx_hal_rcc.c
STM32L0xx_HAL_Driver/Src/stm32l0xx_hal_rcc_ex.c
STM32L0xx_HAL_Driver/Src/stm32l0xx_hal_rng.c
STM32L0xx_HAL_Driver/Src/stm32l0xx_hal_gpio.c
''')
if GetDepend(['RT_USING_PIN']):
src += ['STM32L0xx_HAL_Driver/Src/stm32l0xx_hal_gpio.c']
if GetDepend(['RT_USING_SERIAL']):
src += ['STM32L0xx_HAL_Driver/Src/stm32l0xx_hal_uart.c']
src += ['STM32L0xx_HAL_Driver/Src/stm32l0xx_hal_uart_ex.c']

View File

@ -23,11 +23,9 @@ STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_pwr_ex.c
STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_rcc.c
STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_rcc_ex.c
STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_rng.c
STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_gpio.c
''')
if GetDepend(['RT_USING_PIN']):
src += ['STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_gpio.c']
if GetDepend(['RT_USING_SERIAL']):
src += ['STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_uart.c']
src += ['STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_uart_ex.c']