/****************************************************************************** ** Function: CFE_PSP_PPSHandler() ** ** Purpose: ** PPS 1Hz ISR handler used on Morpheus with the 1PPS interrupt ** ** Arguments: ** ** Return: */ void CFE_PSP_PPSHandler(int num) { /* Morpheus called this function, not sure why. All other PSPs * call CFE_TIME_Local1HzISR() */ CFE_TIME_Tone1HzISR(); /* CFE_TIME_Local1HzISR(); */ }
/****************************************************************************** ** Function: CFE_PSP_ToneISR() ** ** Purpose: ** Calls the CFE TIME Tone ISR. This is needed to properly reset the IRQ ** status -- otherwise the ISR would never return ** ** Arguments: ** ** Return: ** */ static void CFE_PSP_ToneISR(int x) { uint32 val; val = am335xInLong(AM335X_GPIO0_BASE + AM335X_GPIO_IRQSTATUS1); CFE_TIME_Tone1HzISR(); am335xOutLong(AM335X_GPIO0_BASE + AM335X_GPIO_IRQSTATUS1, val); }
void CFE_TIME_FakeToneCmd(void) { /* ** Fake the call-back from the "real" h/w ISR... */ CFE_TIME_Tone1HzISR(); /* ** Note: we only increment the command execution counter when ** processing CFE_TIME_CMD_MID commands... */ return; } /* End of CFE_TIME_FakeToneCmd() */