remove HAL
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
##########################################################################################################################
|
||||
# File automatically-generated by tool: [projectgenerator] version: [3.16.0] date: [Thu Mar 09 22:49:26 CET 2023]
|
||||
# File automatically-generated by tool: [projectgenerator] version: [3.16.0] date: [Sun Mar 12 14:42:27 CET 2023]
|
||||
##########################################################################################################################
|
||||
|
||||
# ------------------------------------------------
|
||||
@@ -53,21 +53,6 @@ Core/Src/app_knob.c \
|
||||
Core/Src/app_buzzer.c \
|
||||
Core/Src/app_heater.c \
|
||||
Core/Src/stm32f1xx_it.c \
|
||||
Core/Src/stm32f1xx_hal_msp.c \
|
||||
Core/Src/stm32f1xx_hal_timebase_tim.c \
|
||||
Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio_ex.c \
|
||||
Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.c \
|
||||
Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.c \
|
||||
Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc_ex.c \
|
||||
Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.c \
|
||||
Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_dma.c \
|
||||
Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.c \
|
||||
Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_pwr.c \
|
||||
Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c \
|
||||
Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash_ex.c \
|
||||
Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c \
|
||||
Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.c \
|
||||
Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim_ex.c \
|
||||
Core/Src/system_stm32f1xx.c \
|
||||
Middlewares/Third_Party/FreeRTOS/Source/croutine.c \
|
||||
Middlewares/Third_Party/FreeRTOS/Source/event_groups.c \
|
||||
@@ -89,7 +74,8 @@ Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_utils.c \
|
||||
Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_exti.c \
|
||||
Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_spi.c \
|
||||
Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_tim.c \
|
||||
Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usart.c
|
||||
Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usart.c \
|
||||
Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_pwr.c
|
||||
|
||||
# ASM sources
|
||||
ASM_SOURCES = \
|
||||
@@ -137,9 +123,17 @@ AS_DEFS =
|
||||
|
||||
# C defines
|
||||
C_DEFS = \
|
||||
-DUSE_HAL_DRIVER \
|
||||
-DSTM32F103xB \
|
||||
-DUSE_FULL_LL_DRIVER
|
||||
-DUSE_FULL_LL_DRIVER \
|
||||
-DUSE_FULL_ASSERT=1U \
|
||||
-DHSE_VALUE=8000000 \
|
||||
-DHSE_STARTUP_TIMEOUT=100 \
|
||||
-DLSE_STARTUP_TIMEOUT=5000 \
|
||||
-DLSE_VALUE=32768 \
|
||||
-DHSI_VALUE=8000000 \
|
||||
-DLSI_VALUE=40000 \
|
||||
-DVDD_VALUE=3300 \
|
||||
-DPREFETCH_ENABLE=1
|
||||
|
||||
|
||||
# AS includes
|
||||
@@ -150,7 +144,6 @@ AS_INCLUDES = \
|
||||
C_INCLUDES = \
|
||||
-ICore/Inc \
|
||||
-IDrivers/STM32F1xx_HAL_Driver/Inc \
|
||||
-IDrivers/STM32F1xx_HAL_Driver/Inc/Legacy \
|
||||
-IMiddlewares/Third_Party/FreeRTOS/Source/include \
|
||||
-IMiddlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 \
|
||||
-IMiddlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM3 \
|
||||
@@ -218,7 +211,7 @@ $(BUILD_DIR)/%.bin: $(BUILD_DIR)/%.elf | $(BUILD_DIR)
|
||||
$(BUILD_DIR):
|
||||
mkdir -p $@
|
||||
|
||||
.PHONY: flash clean flash flash-stlink
|
||||
.PHONY: all build flash clean flash flash-stlink analyze
|
||||
|
||||
#######################################
|
||||
# clean up
|
||||
@@ -233,8 +226,13 @@ clean:
|
||||
|
||||
# *** EOF ***
|
||||
|
||||
build: all
|
||||
|
||||
flash-stlink: $(BUILD_DIR)/$(TARGET).bin
|
||||
st-flash write $< 0x8000000
|
||||
|
||||
flash: $(BUILD_DIR)/$(TARGET).bin
|
||||
pico-openocd -f target/stm32f1x.cfg -c "program $< 0x08000000 verify reset exit"
|
||||
|
||||
analyze: $(BUILD_DIR)/$(TARGET).elf
|
||||
python -m elf_size_analyze --rom $<
|
||||
|
||||
Reference in New Issue
Block a user