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.

[参考译文] MSP430G2553:缺少显式类型("int"假定)错误

Guru**** 2558250 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/788058/msp430g2553-explicit-type-is-missing-int-assumed-error

大家好

、send_data_Byte (unsigned char dattt){//错误位于此处 

for (j=0;j<8;j++){
pwmstart();
pwmstop();
if (dattt & 0x01){
__delay_cycles (1687);
datat=datt>>1;
}
否则
{__delay_cycles
(562);
datat=datt>>1;
}
pwmstop()
;
}


  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    您好、Sunil、

    如果在 send_data_Byte()函数第30行之前放置'void',它可能会有所帮助。

    克劳斯