void Host_WDHWait (void)
{
while (!HOST_WdhIntr) {
;
}
HOST_WdhIntr = 0;
} |
void EINT3_IRQHandler( void )
{
static unsigned int modCounter; // <-- removing this causes the WDH interrupt to never happen
//Make sure the falling edge for p0[17] sent us here
if( LPC_GPIOINT->IO0IntStatF & (1ul << 17ul ) )
{
gMeterCounter++;
//pulse meter 1
LPC_GPIOINT->IO0IntClr |= (1ul << 17ul );//clear the interrupt flag
}
else
if( LPC_GPIOINT->IO0IntStatF & (1ul << 25ul ) )
{
//pulse meter2
LPC_GPIOINT->IO0IntClr |= (1ul << 25ul );//clear the interrupt flag
}
} |
Original Attachment has been moved to: wo-modCounter.txt.zip
Original Attachment has been moved to: w-modCounter.txt.zip