fix gcc CI project

This commit is contained in:
Gabriel Wang 2022-01-03 10:38:36 +00:00
parent d149531146
commit 7f4cc5da71
2 changed files with 1 additions and 6 deletions

View File

@ -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

View File

@ -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;