Esempio n. 1
0
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;
}
Esempio n. 2
0
/*******************************************************************************
* 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;
}