summaryrefslogtreecommitdiff
path: root/n/accel/accel.c
diff options
context:
space:
mode:
authorburg2005-02-02 10:07:24 +0000
committerburg2005-02-02 10:07:24 +0000
commit91e813a01733b7e645220016b8a738aba64750e8 (patch)
treee28f3c902143fbaa54cf2557a9be214036d820e7 /n/accel/accel.c
parent671b2a51668af7158d3ae066699960976d08af84 (diff)
Modification de la fréquence du timer
Diffstat (limited to 'n/accel/accel.c')
-rw-r--r--n/accel/accel.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/n/accel/accel.c b/n/accel/accel.c
index 55779f6..baca9e0 100644
--- a/n/accel/accel.c
+++ b/n/accel/accel.c
@@ -28,6 +28,8 @@
*
*/
+// Define
+
#include "accel.h"
//#define DEBUG
@@ -230,7 +232,7 @@ main (void)
proto_send0('Z');
//initialisation du timer prescaler 256
- TCCR1B = _BV(ICES1) | _BV(CS12);
+ TCCR1B = _BV(ICES1) | _BV(CS11);
// Input Capture Interrupt enable & Timer 1 overflow
TIMSK = _BV(TICIE1) | _BV(TOIE1);
TCCR1B |= _BV(ICES1); //trigge sur le front montant
@@ -253,7 +255,7 @@ main (void)
TCNT1 = 0;
Gx = calculG(Tx,T1x_cal);
Gy = calculG(Ty,T1y_cal);
-
+
// Tx et Ty ont été utilisé, on peut les écrasés
calcul_rdy = 0 ;