This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Build errors

Hello everyone,
I just installed A51 keil and have made a small test program and get build errors.
I'm sure i have not configured the settings properly so please help me out.

My device which i have selected is 'generic 8052'. @ 12MHz
My program:

#include <reg52.h>

sbit switch_pin P1^2;

sbit led_pin P1^3;

void main(void)
{ bit x;

switch_pin = 1;

while(1)
{ x = switch_pin; //read
led_pin = x; //write }
}
Errors:
led.c(13): error:c202:'switch_pin': undefined identifier
led.c(14): error:c202:'led_pin': undefined identifier

0