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.

想在一个程序中使用timer和systick 的中断,想让systick优先于timer中断,如何设计?

Other Parts Discussed in Thread: EK-TM4C123GXL

另外systick中断时,想避免timer也中断应该如何做。想让程序主要运行在timer中,主程序仅循环处理一些量,如果timer执行时,systick中断,执行systick中断,timer再中断呢,总觉着这样会乱套,有什么写法可以避免这种情况。如果在timer中断时停timer定时器中断,systick中断后再停systick定时器中断,systick结束后打开systick定时器中断,回到timer中断,timer中断完成前打开timer定时器中断,这样做是否可以???