diff --git a/CI/perf_counter_template_gcc/platform.c b/CI/perf_counter_template_gcc/platform.c index 48ba4bf..d40f2b9 100644 --- a/CI/perf_counter_template_gcc/platform.c +++ b/CI/perf_counter_template_gcc/platform.c @@ -39,6 +39,7 @@ static volatile uint32_t s_wMSCounter = 0; SysTick / Timer0 IRQ Handler *----------------------------------------------------------------------------*/ + void SysTick_Handler (void) { if (s_wMSCounter) { @@ -48,6 +49,8 @@ void SysTick_Handler (void) systimer_1ms_handler(); } +#define __real_SysTick_Handler SysTick_Handler + void delay_ms(uint32_t wMillisecond) { s_wMSCounter = wMillisecond;