任务调度
开启任务调度器
vTaskStartScheduler()
![image-20240322012049252](https://img2024.cnblogs.com/blog/2387811/202403/2387811-20240324185403554-1751809608.png)
xPortStartScheduler()
![image-20240322012104397](https://img2024.cnblogs.com/blog/2387811/202403/2387811-20240324185403906-162114175.png)
启动第一个任务
![image-20240322012124255](https://img2024.cnblogs.com/blog/2387811/202403/2387811-20240324185404200-767595991.png)
prvStartFirstTask ()
![image-20240322012147754](https://img2024.cnblogs.com/blog/2387811/202403/2387811-20240324185404471-1418303526.png)
![image-20240322012200029](https://img2024.cnblogs.com/blog/2387811/202403/2387811-20240324185404744-558126271.png)
vPortSVCHandler ()
![image-20240322012231228](https://img2024.cnblogs.com/blog/2387811/202403/2387811-20240324185405027-491438237.png)
![image-20240322173058046](https://img2024.cnblogs.com/blog/2387811/202403/2387811-20240324185405304-1132260436.png)
出栈/压栈汇编指令详解
![image-20240322012247290](https://img2024.cnblogs.com/blog/2387811/202403/2387811-20240324185405595-48981605.png)
任务切换
![image-20240322012301907](https://img2024.cnblogs.com/blog/2387811/202403/2387811-20240324185405903-1078757247.png)
![image-20240322233410235](https://img2024.cnblogs.com/blog/2387811/202403/2387811-20240324185406209-503296391.png)
PendSV中断是如何触发的?
![image-20240322012355324](https://img2024.cnblogs.com/blog/2387811/202403/2387811-20240324185406506-2066567769.png)
查找最高优先级任务
![image-20240322012412015](https://img2024.cnblogs.com/blog/2387811/202403/2387811-20240324185406804-1808516362.png)
前导置零指令
![image-20240322012428652](https://img2024.cnblogs.com/blog/2387811/202403/2387811-20240324185407038-1765634833.png)
获取最高优先级任务的任务控制块
![image-20240322012450857](https://img2024.cnblogs.com/blog/2387811/202403/2387811-20240324185407310-952045292.png)
PendSV中断是如何触发的?
![image-20240322012600916](https://img2024.cnblogs.com/blog/2387811/202403/2387811-20240324185407603-567557253.png)
PendSV的任务切换操作(出栈,即恢复现场)
![image-20240322012629906](https://img2024.cnblogs.com/blog/2387811/202403/2387811-20240324185407857-288630202.png)
PendSV的任务切换操作(入栈,即保存现场)
![image-20240322145238528](https://img2024.cnblogs.com/blog/2387811/202403/2387811-20240324185408177-585747950.png)
posted @
2024-03-24 18:54
爱吃冰激凌的黄某某
阅读(
7)
评论()
编辑
收藏
举报