PIC单片机中C30编译器中函数中用数组调用常数字符串问题

2019-03-25 19:40发布

关于PIC单片机不能用数组来调用字符串的问题: 函数原型 void Print_5X8(unsigned int y,unsigned int x, unsigned char ch[],unsigned int yn) {   unsigned char wm ,ii = 0;   unsigned int adder;     while(ch[ii] != '')   {     adder = (ch[ii] - 0x20) * 5;         Set_Ram_Addr(y , x);     for(wm = 0;wm < 5;wm++)     {       if(yn == 0)       {         WriteData(~Asc5X8[adder]);       }       else       {         WriteData(Asc5X8[adder]);       }       adder += 1;     }     ii += 1;     x += 5;   } } 调用形式: Print_5X8(0,10,"FTTx",1); 编译错误;pointer targets in passing argument 3 of 'Print_5X8' differ in signedness 恳请各路大神求助啊,我在c8051f060、以及MSP5419单片机的开发环境中都可以这样调用,在C30编译器就不行~   此帖出自小平头技术问答
0条回答

一周热门 更多>