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.

关于28335变量互斥的问题

本人使用f28335开发过程中遇到一个变量互斥的疑惑,非bios系统,相当于裸MCU.

各个中断见会同时访问一个变量,读和写的过程就要互斥。翻边所有现有的例程,都没看见有人对公共变量进行互斥。

不知道这种裸MCU如何进行同步互斥,希望专家能予以指点。

还有,我觉得只要那些公共变量的操作能保证原子性,也就没必要进行专门的同步互斥了。

我想请教专家,我这么理解对吗?28335上面什么样的操作能保证原子性?