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

#define "val.h"

hai,

I had written a code in following way

#include <REGX55.H>
#include <math.h>
#include "DEFINE_H.h"
void delay(unsigned int);

main()

{
while(1)
{ HEALTH = ~HEALTH;
delay(65535);
delay(65535);
} }

void delay(unsigned int count)
{ while(count) count--;
}

In DEFINE_H.h i had declared the HEALTH = p3_4 ;

BUT WHEN COMPILING THE PROJECT IT IS SAYING THAT HEALTH IS UNDEFINED IDENTIFIER. BUT I HAD DEFINED IN THE DEFINE_H HEADER FILE AND I HAD INCLUDED HEADER FILE IN A MAIN.C

0