summaryrefslogtreecommitdiff
path: root/analog/motor-power-avr/src/mp_pwm_LR_.h
diff options
context:
space:
mode:
authorGuillaume Chevillot2008-03-04 09:00:59 +0100
committerGuillaume Chevillot2008-03-04 09:00:59 +0100
commitf7aedcfbdba289952f4a46a9345938bdba7e110d (patch)
tree92251b9ed089ac5946c120216b2efa02204336b7 /analog/motor-power-avr/src/mp_pwm_LR_.h
parente8cdb481e64750e3d123d0f44be3ebbc8fead066 (diff)
- 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)
Diffstat (limited to 'analog/motor-power-avr/src/mp_pwm_LR_.h')
-rw-r--r--analog/motor-power-avr/src/mp_pwm_LR_.h4
1 files changed, 2 insertions, 2 deletions
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