在给寄存器赋值时如下:
EPwm1Regs.AQCTL.bit.LDAQBMODE = 10b;
想用一下常数数值的后缀表示方法,但是编译器报错,错误提示是:extra text after expected end of number
写成“10B"也不行,写成”0b10“就可以。
想知道怎样就可以用10B的时候也报错
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.
在给寄存器赋值时如下:
EPwm1Regs.AQCTL.bit.LDAQBMODE = 10b;
想用一下常数数值的后缀表示方法,但是编译器报错,错误提示是:extra text after expected end of number
写成“10B"也不行,写成”0b10“就可以。
想知道怎样就可以用10B的时候也报错