summaryrefslogtreecommitdiff
path: root/digital/beacon
diff options
context:
space:
mode:
authorFlorent Duchon2012-05-11 00:07:59 +0200
committerFlorent Duchon2012-05-11 00:16:45 +0200
commit4bc6d05242de6b32aa615a725541f767373d5307 (patch)
tree6b15446541fe84cef49c2500213ac6a658a0a060 /digital/beacon
parent1a7bb5745976381686a21ad614ed059a5a5fdf6f (diff)
digital/beacon: remove uneeded wheel_start_stop_task
Diffstat (limited to 'digital/beacon')
-rw-r--r--digital/beacon/src/debug_avr.c29
1 files changed, 0 insertions, 29 deletions
diff --git a/digital/beacon/src/debug_avr.c b/digital/beacon/src/debug_avr.c
index b91ef08d..b195a4f2 100644
--- a/digital/beacon/src/debug_avr.c
+++ b/digital/beacon/src/debug_avr.c
@@ -129,10 +129,6 @@ void usartRXCallback(uint16_t bytesToRead)
case 'q':
calibration_set_laser_flag(SET);
break;
- case 'w':
-// wheel_start_stop_task();
-// uprintf("TCNT3 = %d\r\n",TCNT3);
- TIMSK3 &= ~(1<<OCIE3B);
case 'r':
reset_avr();
break;
@@ -192,31 +188,6 @@ void debug_start_stop_task(void)
debug_task_running = 0;
}
}
-void wheel_task(void)
-{
- TCNT3++;
-}
-
-void wheel_start_stop_task(void)
-{
- static bool wheel_task_running = 0;
- if(wheel_task_running == 0)
- {
- led_on(2);
- wheelTimer.interval = WHEEL_TASK_PERIOD;
- wheelTimer.mode = TIMER_REPEAT_MODE;
- wheelTimer.callback = wheel_task;
- HAL_StartAppTimer(&wheelTimer);
- wheel_task_running = 1;
- }
- else
- {
- led_off(2);
- HAL_StopAppTimer(&wheelTimer);
- TCNT3=0;
- wheel_task_running = 0;
- }
-}
/* Debug task callback */
void debug_task(void)