We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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
In that case you probably didn't define HEALTH. You say you did. Who do we believe - you or the compiler?
You need to show the line of code where you think you define HEALTH. That means the actual line of code, not a mistyped version of it.
You will (ok, probably will) get useful help from this forum but only if you take the time to read the instructions on how to post, think carefully about what you need to post and turn off your caps lock.