define __real_SysTick_Handler to SysTick_Handler

This commit is contained in:
lyon 2022-01-03 17:28:56 +08:00
parent 2ad7ab27be
commit 79bac21e33

View File

@ -39,6 +39,7 @@ static volatile uint32_t s_wMSCounter = 0;
SysTick / Timer0 IRQ Handler SysTick / Timer0 IRQ Handler
*----------------------------------------------------------------------------*/ *----------------------------------------------------------------------------*/
void SysTick_Handler (void) void SysTick_Handler (void)
{ {
if (s_wMSCounter) { if (s_wMSCounter) {
@ -48,6 +49,8 @@ void SysTick_Handler (void)
systimer_1ms_handler(); systimer_1ms_handler();
} }
#define __real_SysTick_Handler SysTick_Handler
void delay_ms(uint32_t wMillisecond) void delay_ms(uint32_t wMillisecond)
{ {
s_wMSCounter = wMillisecond; s_wMSCounter = wMillisecond;