I have an interrupt set for the PORTP0 line:
void portP_ISR( void)
{
uint32_t ui32Status;
ui32Status = GPIOIntStatus( GPIO_PORTP_BASE, true);
//
// Clear all the pin interrupts that are set
//
GPIOIntClear( GPIO_PORTP_BASE, ui32Status);
rec_dwell = true; /* Set a flag to indicate the packet is done... */
}
In the main code I have:
while ( rec_dwell == false)
{}
The rec_dwell does not seem to register. I know it is seeing the interrupt.
When I change the check to:
while ( rec_dwell == false)
{
foo( 0, 0);
}
The code functions fine and jumps for the loop.
foo is:
void foo ( unsigned char data, unsigned char address)
{
}
So the question is: Why does this solve this issue?
Byron