PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : parse error before string constant



gott18
28.11.2005, 18:28
Hallo,

wieso meldet AVR-GCC mir hier dauernd
"fh_lcd.h:60: error: parse error before string constant" ?

Danke,

Thomas



#define LCD_DELAY_SEC __asm__ volatile (
"ldi R20, $53 \n\t"
"WGLOOP0: \n\t"
"ldi R21, $FB \n\t"
"WGLOOP1: ldi R22, $FF \n\t"
"WGLOOP2: dec R22 \n\t"
"brne WGLOOP2 \n\t"
"dec R21 \n\t"
"brne WGLOOP1 \n\t"
"dec R20 \n\t"
"brne WGLOOP0 \n\t"
"ldi R20, $02 \n\t"
"WGLOOP3: dec R20 \n\t"
"brne WGLOOP3 \n\t"
"nop \n\t"
::);

linux_80
28.11.2005, 22:01
Hallo,

:-k
keine Backslashes am Zeilenende ?

Edit:
Will noch diesen Link loswerden:
http://www.ibiblio.org/gferg/ldp/GCC-Inline-Assembly-HOWTO.html