This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Error:'PRead' undeclared (first use in this function)

 

How do i write a GCC compatible code for the beloe TI compiler code

static          __no_init DWORD  PRead;

func()
{
  ..
  if( PRead != TMPAVAILABLE )
  {
    ..
  }
  ..
}

  __no_init was giving the warning, so i modified to

static           DWORD  PRead __no_init;

where __no_init is defined in in430.h

Now its giving the below error.

Error:'PRead' undeclared (first use in this function)