summaryrefslogtreecommitdiff
path: root/n/asserv/src/timer.c
diff options
context:
space:
mode:
Diffstat (limited to 'n/asserv/src/timer.c')
-rw-r--r--n/asserv/src/timer.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/n/asserv/src/timer.c b/n/asserv/src/timer.c
index 42b9a68..b6ee1f1 100644
--- a/n/asserv/src/timer.c
+++ b/n/asserv/src/timer.c
@@ -43,12 +43,12 @@ timer_read (void);
static inline void
timer_init (void)
{
- /* 256 prescaler. */
+ /* 64 prescaler. */
TCCR0 = regv (FOC0, WGM00, COM01, COM0, WGM01, CS02, CS01, CS00,
- 0, 0, 0, 0, 0, 1, 1, 0);
+ 0, 0, 0, 0, 0, 1, 0, 0);
/* Fov = F_io / (prescaler * (TOP + 1))
* TOP = 0xff
- * Tov = 1 / Fov = 4.44 ms */
+ * Tov = 1 / Fov = 1.111 ms */
}
/** Test if a overflow occured and reset the flag. */