也可以修改tx_initialize_low_level.s文件中 SysTick_Handler源码,
[C] 纯文本查看 复制代码 @ /* System Tick timer interrupt handler */
.global __tx_SysTickHandler
.global SysTick_Handler
.thumb_func
__tx_SysTickHandler:
.thumb_func
SysTick_Handler:
@ VOID TimerInterruptHandler (VOID)
@ {
@
PUSH {r0, lr}
@ BL HAL_IncTick
LDR r1, =uwTick
LDR r2, [r1]
ADD r2, r2, #1 @ for 1 KHz
STR r2, [r1]
LDR r1, =_tx_thread_system_state
LDR r2, [r1]
CMP r2, #0
BNE _tx_thread_system_no_initialized
#ifdef TX_ENABLE_EXECUTION_CHANGE_NOTIFY
BL _tx_execution_isr_enter @ Call the ISR enter function
#endif
BL _tx_timer_interrupt
#ifdef TX_ENABLE_EXECUTION_CHANGE_NOTIFY
BL _tx_execution_isr_exit @ Call the ISR exit function
#endif
_tx_thread_system_no_initialized:
POP {r0, lr}
BX LR
@ }
|