int main(void) { tg_system_reset(); tg_application_reset(); _tg_unit_tests(); tg_application_startup(); #ifdef __STANDALONE_MODE for(;;){ tg_controller();} // this mode executes gcode blocks received via USB #endif #ifdef __MASTER_MODE for(;;){ tg_repeater();} // this mode receives on USB and repeats to RS485 }
void roll_over_and_die() { tg_system_reset(); tg_application_reset(); }
void tg_reset(void) { // mp_flush_planner(); // tg_system_reset(); tg_application_reset(); }