// ***************************************************************************** // SysTickIntHandler // Called By the SysTick Interrupt // ***************************************************************************** void SysTickIntHandler(void) { // Keep track of time! Time_Task(); #ifdef SOLDERBRIDGES_ENABLED SolderBridge_Task(); ExtGpio_Task(); #endif #ifdef SERIAL_ENABLED Serial_Task(); #endif #ifdef SPLASHPIXEL_ENABLED SP_Task(); #endif ColourModeTick(); // Service the Ethernet and TCP Stack Ethernet_Task(); // Measure any analogue inputs AdcTask(); #ifdef LOGIC_ENABLED // The Logic task handles all of the if 'this' then 'that' functionality LogicTask(); #endif }
int main(void) { SetupHardware(); sei(); for (;;) { if (CURRENT_MODE == MODE_SERIAL) { Serial_Task(); } else { MIDI_Task(); } USB_USBTask(); } }