[feat] enable interrupt

This commit is contained in:
zhji 2024-11-15 08:53:29 +08:00
parent 0e83ba9240
commit d59a96bd51

View File

@ -37,6 +37,11 @@ Reset_Handler:
blo 1b
2:
bl SystemInit
/* set vtor and enable interrupt */
ldr r0, =0xE000ED08
ldr r1, =0
str r1, [r0]
cpsie i
bl main
b .
.size Reset_Handler, .-Reset_Handler
@ -66,7 +71,7 @@ g_pfnVectors:
.word DebugMon_Handler
.word 0
.word PendSV_Handler
.word SysTick_Handler
.word HAL_IncTick //SysTick_Handler
/* External Interrupts */
.word WWDG_IRQHandler /* Window WatchDog */