diff options
author | Keith Packard <keithp@keithp.com> | 2012-09-09 13:57:16 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2012-09-09 13:57:16 -0700 |
commit | f2933103be122414a9b1795b37003b7a2aa9f3d7 (patch) | |
tree | c9918b240ce56a652fc58938479fb2c14209ad82 | |
parent | 0339583996fc57a666f8d3007a0f4b1034039a73 (diff) |
altos/stm: Fix basic time interval to 10ms -- was 10.1ms
Counting from 0 to 100 takes 10.1ms, so count to 99 instead.
Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r-- | src/stm/ao_timer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stm/ao_timer.c b/src/stm/ao_timer.c index f561e6b5..1132f748 100644 --- a/src/stm/ao_timer.c +++ b/src/stm/ao_timer.c @@ -87,7 +87,7 @@ ao_timer_init(void) stm_rcc.apb1enr |= (1 << STM_RCC_APB1ENR_TIM6EN); stm_tim6.psc = TIMER_10kHz; - stm_tim6.arr = 100; + stm_tim6.arr = 99; stm_tim6.cnt = 0; /* Enable update interrupt */ |