int main(void) { main_init(); while(1) { if (sys_time_check_and_ack_timer(0)) main_periodic_task(); main_event_task(); } return 0; }
int main( void ) { main_init(); while(1) { if (sys_time_periodic()) { main_periodic_task(); } main_event_task(); } return 0; }
int main(void) { main_init(); servos[0] = 1; servos[1] = 2; servos[2] = 3; servos[3] = 4; while(1) { if (sys_time_periodic()) main_periodic_task(); main_event_task(); } return 0; }
int main(void) { main_init(); tx_data[0] = 0; tx_data[1] = 0; tx_data[2] = 0; tx_data[3] = 0; tx_data[4] = 0; tx_data[5] = 0; tx_data[6] = 0; tx_data[7] = 0; new_can_data = false; while (1) { if (sys_time_check_and_ack_timer(0)) { main_periodic_task(); } main_event_task(); } return 0; }