consoleyou 发表于 5 天前

consoleyou 发表于 2025-10-11 00:22
Rebuild started: Project: TASK_Test
Rebuild target 'Target 1'
User command #1: .\Auto_Keil.exe


tmr_isr(0) tmr_isr(1) tmr_isr(2) tmr_isr(3) tmr_isr(4) tmr_isr(11) // 定义中断服务程序

234行是这段代码

王昱顺 发表于 5 天前

consoleyou 发表于 2025-10-11 00:22
Rebuild started: Project: TASK_Test
Rebuild target 'Target 1'
User command #1: .\Auto_Keil.exe


我使用了超过31的中断号
你需要使用一个中断号拓展工具来做个补丁
https://www.stcai.com/gjrj 在这里下载

consoleyou 发表于 5 天前

王昱顺 发表于 2025-10-11 09:10
我使用了超过31的中断号
你需要使用一个中断号拓展工具来做个补丁
https://www.stcai.com/gjrj 在这里下 ...

好的,我试试,谢谢{:woshou:}

consoleyou 发表于 4 天前

我是C语言小白,不知道楼主能不能提供8H8K64U的版本,也就是8位单片机的版本学习一下?set_io.h和set_timer.h都不太会写。

王昱顺 发表于 4 天前

consoleyou 发表于 2025-10-12 12:46
我是C语言小白,不知道楼主能不能提供8H8K64U的版本,也就是8位单片机的版本学习一下?set_io.h和set_timer ...

使用stcisp直接生成1ms定时器中断,然后在中断里调用set_task_mode即可

consoleyou 发表于 3 天前

王昱顺 发表于 2025-10-12 16:41
使用stcisp直接生成1ms定时器中断,然后在中断里调用set_task_mode即可

谢谢,我琢磨琢磨
页: 1 2 3 4 5 6 [7]
查看完整版本: 【协程方式】实现【多任务调度 / 多线程】 仅需2byte的RAM 并带有详细视频讲解