This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Hw_disable 及 Hwi_restore 使用疑问?

Other Parts Discussed in Thread: SYSBIOS

我的工程使用了sysbios,在关键的数据计算的地方(task),我只使用了hwi_disable(),就是想测试下在只使用hwi_diable()是否可以让程序中的中断不能使用。

在我工程中我开启了中断4,和timer。但是我发现我只使用了hwi_disable()并没有让中断disable。后来我又在hwi_diable()后面加了一个死循环,让这个任务不能退

出。这个时候我debug时发现中断4是可以被禁止的。这里我有一个疑问?是不是我hwi_disable()以后,系统的自带的什么任务或状态会把中断重新使能?

by:在程序中,我没有使用 Hwi_restore和 Hwi_enable函数来启动中断。

========================================================

简单来说就是在sysbios下,hwi_diable()函数好像没管用,被系统某个地方把中断重新打开了