Gast
#1367381
Hallo
Ich hab heute meine ersten Schritte in C18 getätigt. Momentan versuche
ich ein simples Programm zu compilieren, aber C18 bringt dauert die
Meldung Syntax error. Der Fehler müsste in der Zeile "char i;" sein. Hab
aber keine Ahnung warum...
#include "p18f452.h"
#include "delays.h"
#include "stdio.h"
#include "math.h"
#pragma config OSC = HS //CPU=20 MHz
#pragma config PWRT = ON
#pragma config BOR = OFF
#pragma config WDT = OFF //Watchdog Timer
#pragma config LVP = OFF //Low Voltage ICSP
#pragma code
void main(void)
{
PORTD = 0;
TRISD = 0;
char i;
i = 10;
while(1)
{
}
}