Hi All!
I have a problem with #defines in my application. It seems that my application don't recognizes mc9s08ac16.h #defines. My code seems like this:
#include "spihw.h" //#include <mc9s08ac16.h> is in spihw.h
Hw_Init(){
UINT8 atualiza = 1;
do{
if(atualiza)
{
atualiza = 0;
ui16OldTime = TPM1CNT;
}
if( (TPM1CNT - ui16OldTime) > TPM1_1MS)
{
atualiza = 1;
LED00 = !LED00;
}
}while(1);
}
When this code is running the ui16OldTime value is always zero and when I try watch TPM1CNT value data window shows a message: "undefined expression (unknown identifier)", but TPM1CNT is declared in mc9s08ac16.h.
Someone know what is happening with my application?
Thanks,
Matheus.