Code:
/*ABC.h */
extern USIGN8 RX_TEST;
Code:
/* ABC.c */
#include ABC.h
VOID SYNCMessage(VOID)
{
USIGN8 frameLen;
USIGN8 rxBytes;
//USIGN8 RX_TEST=0;
if(SYNC_PIN_IS_HIGH())
{
IndSync();
}
else
{
if(RxActive)
{
//reset frame buffer
USIGN8 i = 0;
for(;i<0x3B;i++)
{
INcomingPacket.frame[i-1] = 0x00;
}
USIGN8 RX_TEST=1; //i want to put it here
}
}
Code:
/*main.c*/
#include ABC.h
//USIGN8 RX_TEST;
VOID main(VOID)
{
if(RX_TEST==1)
{
//perform function
}
}
Hello Guys,
I am pasting a brief codesnipt of what i was trying to do.