摘要: 1 systick中断处理函数 对于单片机而言,定时器的时钟节拍由systick提供,所以我们在此先记录一下systick中断处理函数; 在systick中断处理函数中对时钟节拍进行自加加,调用rt_timer_check( )对定时器进行扫描; //board.c 使能systick定时器;系统晶 阅读全文
posted @ 2023-06-19 13:29 caesura_k 阅读(237) 评论(0) 推荐(0) 编辑
摘要: 1 线程调度 rt_schedule rtthread中的线程切换是通过rt_schedule( )线程调度来实现的; rt_schedule( )线程调度 通过 rt_thread_ready_priority_group 搭配 rt_thread_priority_table 进行调度; 1.1 阅读全文
posted @ 2023-06-19 13:28 caesura_k 阅读(163) 评论(4) 推荐(0) 编辑