[ThreadX] 安富莱tx_initialize_low_level.s文件进一步简化
硬汉在论坛发布的ThreadX教学中修正了tx_initialize_low_level.s文件,通过对其学习,发现修正好的.s文件中保留了一些多余的变量和函数定义,大概是没删除干净。
1. 多余Import,后续未引用
2.未删除干净
之前已经在修正时把启动文件中的多余中断向量表删除掉,所以剩余的一些Handler句柄应该是躲过一劫的“遗老遗少”。2.1
__tx_BadHandler //HardFault_Handler
__tx_SVCallHandler //SVC_Handler
__tx_IntHandler //interrupt处理(stm32的中断处理是以中断向量表的形式,而不是一个句柄)
2.2
__tx_NMIHandler //NMI_Handler
__tx_DBGHandler //DebugMon_Handler
3.未删除干净
_tx_execution_isr_enter
_tx_execution_isr_exit
两个函数分别在 _tx_thread_context_save.s和_tx_thread_context_restore.s中出现,但这两个函数均注明
/* This function is only needed for legacy applications and it should */
/* not be called in any new development on a Cortex-M.
所以可以认为对于STM32的开发无用