aboutsummaryrefslogtreecommitdiff
path: root/src/peripherals/timer.ts
diff options
context:
space:
mode:
authorUri Shaked2020-05-04 21:59:43 +0300
committerUri Shaked2020-05-04 21:59:43 +0300
commitd9dc3c8a6161f3696bdddbbde9e4ee408ece425a (patch)
tree569a73c27c0fcd4363bd4af79655321453a8ebb3 /src/peripherals/timer.ts
parentchore: release 0.8.4 (diff)
downloadavr8js-d9dc3c8a6161f3696bdddbbde9e4ee408ece425a.tar.gz
avr8js-d9dc3c8a6161f3696bdddbbde9e4ee408ece425a.tar.bz2
avr8js-d9dc3c8a6161f3696bdddbbde9e4ee408ece425a.zip
fix(timer): stop Timer 2 when all CS bits are 0
close #44
Diffstat (limited to '')
-rw-r--r--src/peripherals/timer.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/peripherals/timer.ts b/src/peripherals/timer.ts
index 7cae2ac..4e75fb1 100644
--- a/src/peripherals/timer.ts
+++ b/src/peripherals/timer.ts
@@ -115,7 +115,7 @@ export const timer2Config: AVRTimerConfig = {
TCCRC: 0, // not available
TIMSK: 0x70,
dividers: {
- 0: 1,
+ 0: 0,
1: 1,
2: 8,
3: 32,