Make the examples work again
[fw/sdcc] / device / lib / ds390 / lcd390.c
index e0fbaf94863321989701a13f3ad5104fa16834d5..d9d071fb8bec78701d7d36832d3a379c3c81257c 100644 (file)
@@ -51,12 +51,12 @@ xdata at 0x38000b static unsigned char lcdDrd;
 
 #define LcdWait { while (lcdIrd&0x80) ; }
 
-#else ifdef LCD_RW
+#else // ifdef LCD_RW
 
 // wait for 100us
 #define LcdWait { ClockMicroSecondsDelay(100) ; }
 
-#endif ifdef LCD_RW
+#endif // ifdef LCD_RW
 
 void LcdInit() {
   
@@ -147,7 +147,7 @@ void LcdLPutString (unsigned int collumnRow, char *string) {
 // however they will :), so to be sure
 static char lcdPrintfBuffer[LCD_COLLUMNS*4];
 
-void LcdPrintf (xdata const char *format, ...) reentrant {
+void LcdPrintf (const char *format, ...) reentrant {
   va_list arg;
 
   va_start (arg, format);
@@ -158,7 +158,7 @@ void LcdPrintf (xdata const char *format, ...) reentrant {
   va_end (arg);
 }
 
-void LcdLPrintf (unsigned int collumnRow, xdata const char *format, ...) reentrant {
+void LcdLPrintf (unsigned int collumnRow, const char *format, ...) reentrant {
   va_list arg;
 
   LcdGoto(collumnRow);