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
Review your manuals for defining port pins. HEALTH = p3_4 ;? Is this line valid? Bradford