Index: firmware/App/Tasks/TaskGeneral.c =================================================================== diff -u -ra7bf3ca23ea37a61000379facae628a31b3ecc59 -r439894cb0508e69af3ece09ae57a62feac09e3f2 --- firmware/App/Tasks/TaskGeneral.c (.../TaskGeneral.c) (revision a7bf3ca23ea37a61000379facae628a31b3ecc59) +++ firmware/App/Tasks/TaskGeneral.c (.../TaskGeneral.c) (revision 439894cb0508e69af3ece09ae57a62feac09e3f2) @@ -27,6 +27,13 @@ #include "SystemCommMessages.h" #include "WatchdogMgmt.h" #include "TaskGeneral.h" + +#ifdef TASK_TIMING_OUTPUT_ENABLED + #include "mibspi.h" + #define TASK_TIMING_TEST_PIN_SPI1_PORT_MASK 0x00000020 // (CS5 - re-purposed as output GPIO) + #define SET_TASK_ON() { mibspiREG3->PC3 |= TASK_TIMING_TEST_PIN_SPI1_PORT_MASK; } + #define SET_TASK_OFF() { mibspiREG3->PC3 &= ~TASK_TIMING_TEST_PIN_SPI1_PORT_MASK; } +#endif /************************************************************************* * @brief taskGeneral @@ -41,6 +48,10 @@ *************************************************************************/ void taskGeneral( void ) { +#ifdef TASK_TIMING_OUTPUT_ENABLED +// SET_TASK_ON(); +#endif + // check in with watchdog manager checkInWithWatchdogMgmt( TASK_GENERAL ); // do this first to keep timing consistent with watchdog management @@ -90,7 +101,8 @@ // manage data to be transmitted to other sub-systems execSystemCommTx(); - // toggle GPIO to indicate general task has executed -// gioToggleBit( gioPORTB, 1 ); +#ifdef TASK_TIMING_OUTPUT_ENABLED +// SET_TASK_OFF(); +#endif }