请教个RTX ARM的问题

[复制链接]
1930|1
手机看帖
扫描二维码
随时随地手机跟帖
gangdou|  楼主 | 2011-12-2 15:47 | 显示全部楼层 |阅读模式
最近学习MDK 自带的RTOS,有个疑惑:
Forced Interrupts to force a timer interrupt when isr_ functions are used. If an isr_ function is called, the kernel forces the timer interrupt immediately after the interrupt ends. The forced timer interrupt activates the task scheduler. It is possible that a task has become ready. If this task has a higher priority than the currently running task, a task switch must occur.
这段话是说 在中断中调用了isr_ 开头的函数后,退出这个中断后会强制一个定时中断?

这个强制的定时中断是tick中断吗? 然后进行任务切换?

我想不通的是:如果强制tick中断了,那不是时间片不准了?用户定时器时间也不准了?

刚开始看资料,望高手提点一下。

相关帖子

zj314995534| | 2012-12-19 15:28 | 显示全部楼层
是的,因为你调用isr_的结果是你RTX系统的定时器被停下了,所以中断中处理函数需简洁,计算任务交由内核去完成。

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

138

主题

167

帖子

1

粉丝