diff --git a/ch32v003fun/ch32v003fun.c b/ch32v003fun/ch32v003fun.c index 9f1b4b8165720e8b59342fca8b876c6ad019471c..3db230e278ae919ad2949855dda25c9299b9711a 100644 --- a/ch32v003fun/ch32v003fun.c +++ b/ch32v003fun/ch32v003fun.c @@ -720,6 +720,7 @@ void InterruptVectorDefault() { asm volatile( "\n\ .align 2\n\ + .option push;\n\ .option norvc;\n\ j handle_reset\n\ .word 0\n\ @@ -760,7 +761,8 @@ void InterruptVectorDefault() .word TIM1_UP_IRQHandler /* TIM1 Update */ \n\ .word TIM1_TRG_COM_IRQHandler /* TIM1 Trigger and Commutation */ \n\ .word TIM1_CC_IRQHandler /* TIM1 Capture Compare */ \n\ - .word TIM2_IRQHandler /* TIM2 */ \n"); + .word TIM2_IRQHandler /* TIM2 */ \n\ + .option pop;\n"); } void handle_reset()