From f7aedcfbdba289952f4a46a9345938bdba7e110d Mon Sep 17 00:00:00 2001 From: Guillaume Chevillot Date: Tue, 4 Mar 2008 09:00:59 +0100 Subject: - Removed 'static' qualifier to 'main_loop' - 'led_flash' function added to detect startup (thanks to Ni) - Temporary empty vectors for right side timer (timer2) added to prevent resets (right side code is not implmented yet) --- analog/motor-power-avr/src/mp_pwm_LR_.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'analog/motor-power-avr/src/mp_pwm_LR_.h') diff --git a/analog/motor-power-avr/src/mp_pwm_LR_.h b/analog/motor-power-avr/src/mp_pwm_LR_.h index 999ecd67..85da1fec 100644 --- a/analog/motor-power-avr/src/mp_pwm_LR_.h +++ b/analog/motor-power-avr/src/mp_pwm_LR_.h @@ -102,11 +102,11 @@ // for 57.21kHz : prescaler = 0 : CSx2:0 = 0x01 // for 7.68kHz : prescaler = 8 : CSx2:0 = 0x02 #define TCCR_LR_CFG (regv (FOC0, WGM00, COM01, COM00, WGM01, CS02, CS01, CS00, \ - 0, 0, 0, 0, 0, 0, 1, 0)) + 0, 0, 0, 0, 0, 0, 1, 0)) // timer interrupts configuration #define TIMSK_LR_CFG (regv (OCIE2, TOIE2, TICIE1, OCIE1A, OCIE1B, TOIE1, OCIE0, TOIE0, \ - 1, 1, 0, 0, 0, 0, 1, 1)) + 1, 1, 0, 0, 0, 0, 1, 1)) // PWM max, min, and offset values #define PWM_MIN_LR_ 0x10 -- cgit v1.2.3