Help with codevision compiler
Posted: Mon Oct 06, 2008 4:17 pm
I'm a new user of codevision and i'm working on my first code. when i compile i get this error:
Error: C:\cvavreval\bin\blink2\blink.c(37): missing '('
this where the error is located PORTA=0x00;
this is my code
#include <90s8515.h>
#include <stdio.h>
#include <delay.h>
int main(void)
{
DDRB=0xff;
while (1)
{
for (int i=1;i<=128;i=i*2)
{
PORTB = i;
delay_us(30000);
}
for (int i=128;i>1;i-=i/2)
{
PORTB = i;
delay_us(30000);
}
}
return 1;
}
Error: C:\cvavreval\bin\blink2\blink.c(37): missing '('
this where the error is located PORTA=0x00;
this is my code
#include <90s8515.h>
#include <stdio.h>
#include <delay.h>
int main(void)
{
DDRB=0xff;
while (1)
{
for (int i=1;i<=128;i=i*2)
{
PORTB = i;
delay_us(30000);
}
for (int i=128;i>1;i-=i/2)
{
PORTB = i;
delay_us(30000);
}
}
return 1;
}