summaryrefslogtreecommitdiff
path: root/analog/motor-power-avr/src/main.c
diff options
context:
space:
mode:
authorGuillaume Chevillot2008-03-13 10:34:32 +0100
committerGuillaume Chevillot2008-03-13 10:34:32 +0100
commit65baffda4311b55c9d4026d84c1c1544d0ee7aa4 (patch)
treecef12af16ced96358a4cbf163db674d8ba8a4f14 /analog/motor-power-avr/src/main.c
parent7e1e72e29349a8248901d4d4f466d1c9b556344d (diff)
- Add current limitation management (not tested yet !) :
- Add current limitation PWM generation - Add external current limitation interrupts management - Update current limitation software part - Update TODO list (try to reduce it...)
Diffstat (limited to 'analog/motor-power-avr/src/main.c')
-rw-r--r--analog/motor-power-avr/src/main.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/analog/motor-power-avr/src/main.c b/analog/motor-power-avr/src/main.c
index c5ce6581..4a9b453e 100644
--- a/analog/motor-power-avr/src/main.c
+++ b/analog/motor-power-avr/src/main.c
@@ -91,9 +91,9 @@ main (int argc, char **argv)
/* Pull-ups. */
//PORTA = 0xff;
+ uart0_init ();
init_timer_LR_ ();
init_curLim ();
- uart0_init ();
//postrack_init ();
envTest_period = 200;
@@ -137,16 +137,16 @@ main_loop (void)
{
/* Uart */
if (uart0_poll ())
- proto_accept (uart0_getc ());
+ proto_accept (uart0_getc ());
/* Counter for launching environemental tests */
if (!(envTest_cpt --)) {
- envTest_cpt = envTest_period;
+ envTest_cpt = envTest_period;
- launch_envTest ();
- curLim_temp = get_curLim_temp (temperature);
- curLim_bat= get_curLim_bat (battery);
- update_curLim ();
+ launch_envTest ();
+ curLim_temp = get_curLim_temp (temperature);
+ curLim_bat= get_curLim_bat (battery);
+ update_curLim ();
}
}