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