code refactoring

This commit is contained in:
Thomas Klaehn
2021-01-08 11:58:59 +01:00
parent 3c65600e31
commit 38095715e9
57 changed files with 238 additions and 58077 deletions

View File

@@ -9,25 +9,13 @@ CC_SOURCES = \
Core/main.cc \
platform/stm32g0xx/Gpio.cc \
platform/stm32g0xx/Uart.cc \
platform/stm32g0xx/IndependentWatchdog.cc
platform/stm32g0xx/IndependentWatchdog.cc \
platform/stm32g0xx/low_level_interrupt.cc
C_SOURCES = \
platform/stm32g0xx/stm32g0xx_it.c \
platform/stm32g0xx/stm32g0xx_hal_msp.c \
platform/stm32g0xx/system_stm32g0xx.c \
platform/stm32g0xx/syscalls.c \
platform/stm32g0xx/sysmem.c \
Core/print.c \
Legacy/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_rcc.c \
Legacy/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal.c \
Legacy/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_cortex.c \
Legacy/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_rcc_ex.c \
Legacy/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_pwr.c \
Legacy/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_pwr_ex.c \
Legacy/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_iwdg.c \
Legacy/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_uart_ex.c \
Legacy/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_uart.c \
Legacy/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_gpio.c
ASM_SOURCES = \
platform/stm32g0xx/startup_stm32g071rbtx.s
@@ -46,14 +34,11 @@ CPU = -mcpu=cortex-m0plus
MCU = $(CPU) -mthumb $(FPU) $(FLOAT-ABI)
C_DEFS = \
-DUSE_HAL_DRIVER \
-DSTM32G071xx
C_INCLUDES = \
-I. \
-ICore \
-ILegacy/STM32G0xx_HAL_Driver/Inc \
-ILegacy/STM32G0xx_HAL_Driver/Inc/Legacy \
-Iarch/CMSIS/Device/ST/STM32G0xx/Include \
-Iarch/CMSIS/Include \
-Iplatform/stm32g0xx