Re: 訊息.....Error [1109] type mismatch in redeclaration of 'putrsXLCD'
|
||||
---|---|---|---|---|
資深會員
|
<PARAM_SCLASS const MEM_MODEL rom 是什麼意思?? 看不懂這個語法 ..>
那是問你要用RAM模式宣告 還是要用ROM模式宣告
發表於: 2005/8/25 17:24
|
|||
==== ^^ ^^ ====
|
||||
|
訊息.....Error [1109] type mismatch in redeclaration of 'putrsXLCD'
|
||||
---|---|---|---|---|
資深會員
|
目前使用C18的LCD內建函數來顯示LCM
把程式編譯時會出現下列的錯誤 Error [1109] type mismatch in redeclaration of 'putrsXLCD' 問題是出在.h檔 putrsXLCD 函數的原型宣告和 .C檔的不同 myXLCD.h 檔的是 void putrsXLCD(PARAM_SCLASS const MEM_MODEL rom char *); C 檔的是 void putrsXLCD(const rom char *buffer) { while(*buffer) // Write data to LCD up to null { while(BusyXLCD()); // Wait while LCD is busy WriteDataXLCD(*buffer); // Write character to LCD buffer++; // Increment buffer } return; } 請問兩個宣告mismatch , 該如何更改?? PS. 我目前是把 .C 檔的 putrsXLCD() 暫時刪掉 compiler 後就 pass 了, 且確定程式可以執行可以顯示
發表於: 2005/8/25 16:27
|
|||
|