void TimerA0Interrupt(void) { if (l_count > WHEELS_STOPPED) --l_count; else { // l_count is zero, turn left motor off left_motor_off(); stop_timerA0(); } return; }
/******************************************************************************* * Purpose: This function stops both wheel timers. * Passed: No arguments passed. * Locals: No locals variables used. * Returned: No values returned. * Author: Will Flores [email protected] *******************************************************************************/ void stop_wheelTimers(void) { stop_timerA0(); stop_timerB0(); return; }