1 #include <stddef.h> // Defines NULL 2 #include <stdbool.h> // Defines true 3 #include <stdlib.h> // Defines EXIT_FAILURE 4 #include "system/common/sys_module.h" // SYS function prototypes 5 6 int main ( void ) 7 { 8 /* Initialize all MPLAB Harmony modules, including application(s). */ 9 SYS_Initialize ( NULL ); 10 11 while ( true ) 12 { 13 /* Maintain state machines of all polled MPLAB Harmony modules. */ 14 SYS_Tasks ( ); 15 16 } 17 18 /* Execution should not come here during normal operation */ 19 return ( EXIT_FAILURE ); 20 }