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.
对于Instaspin-foc中的gpio驱动头文件gpio.h中的宏定义,有点不明白,如题:
复用寄存器占2BIT,为什么要还要<<0,这样有什么作用?
你好。
左移0位对结果并没有什么影响。
只是这样的写法方便程序阅读,左移0就表示被操作的寄存器位在0位。