aboutsummaryrefslogtreecommitdiffstats
path: root/libmaple/timers.c
diff options
context:
space:
mode:
authorbnewbold <bnewbold@robocracy.org>2010-07-20 23:45:49 -0400
committerbnewbold <bnewbold@robocracy.org>2010-07-20 23:45:49 -0400
commit05f137fab9f4604ca3c7e8bb415c4b29db40ae5e (patch)
treeeaeaa708bceee9fe2180c6ed51d3819a0b8791e1 /libmaple/timers.c
parentf72898584697e29b523861775dcdf01fc758b135 (diff)
downloadlibrambutan-05f137fab9f4604ca3c7e8bb415c4b29db40ae5e.tar.gz
librambutan-05f137fab9f4604ca3c7e8bb415c4b29db40ae5e.zip
sigh, simple typo
Diffstat (limited to 'libmaple/timers.c')
-rw-r--r--libmaple/timers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libmaple/timers.c b/libmaple/timers.c
index 68fda08..da85680 100644
--- a/libmaple/timers.c
+++ b/libmaple/timers.c
@@ -128,7 +128,7 @@ void timer_init(uint8 timer_num, uint16 prescale) {
* we'll worry about that later. */
timer->CCR1 = 0x8FFF; // PWM start value
timer->CCMR1 |= 0x68; // PWM mode 1, enable preload register.
- timer->CCER |= 0x002; // enable ch
+ timer->CCER |= 0x001; // enable ch
timer->CCR2 = 0x8FFF; // PWM start value
timer->CCMR1 |= (0x68 << 8);// PWM mode 1, enable preload register.