From 05f137fab9f4604ca3c7e8bb415c4b29db40ae5e Mon Sep 17 00:00:00 2001 From: bnewbold Date: Tue, 20 Jul 2010 23:45:49 -0400 Subject: sigh, simple typo --- libmaple/timers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libmaple') 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. -- cgit v1.2.3