你好:
在程序调试时,我将optimization level设置为1,程序运行中KICK0、KICK1寄存器写不进去值了。是否是optimization level设置为1导致?设置为0可以写入。我想优化代码,又希望KICK0、KICK1寄存器可以写入相应值,应该如何解决?
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.
你好,驱动函数里尽量不要使用优化,你可以把写寄存器的步骤单独拿出来作为一个函数。