From 7ee3d5ded326d8195a9ebdb17cc487fd3c982a3e Mon Sep 17 00:00:00 2001 From: Florent Duchon Date: Tue, 3 Apr 2012 18:32:18 +0200 Subject: digital/beacon: remove unneeded files --- digital/beacon/src/beacon.h | 1 - digital/beacon/src/timer.c | 139 -------------------------------------------- digital/beacon/src/timer.h | 6 -- 3 files changed, 146 deletions(-) delete mode 100644 digital/beacon/src/beacon.h delete mode 100644 digital/beacon/src/timer.c delete mode 100644 digital/beacon/src/timer.h (limited to 'digital/beacon') diff --git a/digital/beacon/src/beacon.h b/digital/beacon/src/beacon.h deleted file mode 100644 index d3f5a12f..00000000 --- a/digital/beacon/src/beacon.h +++ /dev/null @@ -1 +0,0 @@ - diff --git a/digital/beacon/src/timer.c b/digital/beacon/src/timer.c deleted file mode 100644 index 1892c65f..00000000 --- a/digital/beacon/src/timer.c +++ /dev/null @@ -1,139 +0,0 @@ -#include -// #include -// #include -#include -#include -// #include -// #include -// #include - -/* - - -extern uint8_t usartTxBuffer[APP_USART_TX_BUFFER_SIZE]; -extern HAL_UsartDescriptor_t appUsartDescriptor; -extern AppState_t appState; -extern unsigned int counter_top_tour; -extern int security_ils;*/ - -unsigned int top_tour = 0; -unsigned int timer3_overflow = 0; -int nb_top = 0; -long last_seen_laser = 0; - -void init_timer3(void) -{ - - //Fpwm = f_IO / (prescaler * (1 + TOP)) = 7200 Hz. */ - OCR3A = 0; //Motor speed = 0 - - /* Fast PWM 10bits with TOP=0x03FF */ - TCCR3A |= (1< old_time) -// { -// diff_time = current_time-old_time; -// } -// else -// { -// diff_time = (65535 - old_time) + current_time; -// } - diff_time = current_time - old_time; - - /* Check if it's not a glitch, ie at least 1 timer3 overflow occured */ - /* If it's not a glitch and it's a rising edge, it's the reflector */ -// if((TCCR3B&0x40) && ((timer3_overflow - timer3_overflow_old) > 6)) -// { -// nb_top++; -// sprintf(usartTxBuffer,"nb top=%d\r\n\0",nb_top); -// WRITE_USART(&appUsartDescriptor,usartTxBuffer,strlen(usartTxBuffer)); -// timer3_overflow_old = timer3_overflow; -// old_time = current_time; -// } - - /* Invert the edge capture of the interrupt */ - if((TCCR3B&0x40)) - { - TCCR3B &= 0b10111111; - } - else - { - TCCR3B |= (1< 5) -// { -// security_ils = 1; -// counter_security_ils = 0; -// } -// else -// { -// counter_security_ils++; -// } -// } - } -} - - diff --git a/digital/beacon/src/timer.h b/digital/beacon/src/timer.h deleted file mode 100644 index 8973a36b..00000000 --- a/digital/beacon/src/timer.h +++ /dev/null @@ -1,6 +0,0 @@ -#ifndef _TIMER_H -#define _TIMER_H - -void init_timer3(void); - -#endif \ No newline at end of file -- cgit v1.2.3