2

由于此函数中的此错误,我的代码将无法编译任何人都可以帮忙

void SetDCPWM(unsigned int dutycycle) {

unsigned int local_dutycycle;
local_dutycycle = dutycycle;

CCPR1L = (dutycycle >>2);

CCP1CONbits.DC1B = local_dutycycle & 0x0003;

return; }

我收到此错误

Error   [255] C:\KEVIN-WORK\WORK\SM511602\SM511601 TEK572A Syspeo RS232 receiver.c; 352.18 not a member of the struct/union ""

Error   [182] C:\KEVIN-WORK\WORK\SM511602\SM511601 TEK572A Syspeo RS232 receiver.c; 352.44 illegal conversion between types
unsigned int -> volatile union S30
4

0 回答 0