From 7f4cc5da71998c17010a3e8aef83e721473ac932 Mon Sep 17 00:00:00 2001 From: Gabriel Wang Date: Mon, 3 Jan 2022 10:38:36 +0000 Subject: [PATCH] fix gcc CI project --- CI/perf_counter_template_gcc/Makefile | 2 +- CI/perf_counter_template_gcc/platform.c | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/CI/perf_counter_template_gcc/Makefile b/CI/perf_counter_template_gcc/Makefile index 4d73987..f81613b 100644 --- a/CI/perf_counter_template_gcc/Makefile +++ b/CI/perf_counter_template_gcc/Makefile @@ -145,7 +145,7 @@ LDSCRIPT = STM32F103RCTx_FLASH.ld # libraries LIBS = -lc -lm -lnosys LIBDIR = -LDFLAGS = $(MCU) -specs=nano.specs -T$(LDSCRIPT) $(LIBDIR) $(LIBS) -Wl,-Map=$(BUILD_DIR)/$(TARGET).map,--cref -Wl,--gc-sections +LDFLAGS = $(MCU) -specs=nano.specs -T$(LDSCRIPT) $(LIBDIR) $(LIBS) -Wl,-Map=$(BUILD_DIR)/$(TARGET).map,--cref -Wl,--gc-sections -Wl,--wrap=SysTick_Handler # default action: build all all: $(BUILD_DIR)/$(TARGET).elf $(BUILD_DIR)/$(TARGET).hex $(BUILD_DIR)/$(TARGET).bin diff --git a/CI/perf_counter_template_gcc/platform.c b/CI/perf_counter_template_gcc/platform.c index 9bb551e..72db91b 100644 --- a/CI/perf_counter_template_gcc/platform.c +++ b/CI/perf_counter_template_gcc/platform.c @@ -48,11 +48,6 @@ void SysTick_Handler (void) systimer_1ms_handler(); } -void __real_SysTick_Handler (void) -{ - SysTick_Handler(); -} - void delay_ms(uint32_t wMillisecond) { s_wMSCounter = wMillisecond;