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.
void Test(int Byte);
void Test(int Byte)
{
int i=0;
if(Byte ==0x55) //调用函数调用该函数,Byte默认0?????
{
i++;
}
}
/**
* main.c
*/
int main(void)
{
int SendByte=0x55;
WDTCTL = WDTPW | WDTHOLD; // stop watchdog timer
while(1)
{
SendByte++; //SendByte 定义成全局变量是FET430UIF调试工具进行在线调试单步执行能执行到该步,但是定义成局部变量不能执行该步骤???????
Test(SendByte); //自己写的调用函数也没有办法调用,意见传参数失败
}
//return 0;
}
不清楚是什么原因?
是啊,这个我把断点打在调用函数上,以及调用函数中的IF判断条件上就打不下去,总是感觉CCS 不是很好用笨鸟 说:你的Test(SendByte),这个参数刚开始就不是0x55了,肯定一下子也不执行了。