diff options
author | bnewbold <bnewbold@robocracy.org> | 2010-07-20 23:45:49 -0400 |
---|---|---|
committer | bnewbold <bnewbold@robocracy.org> | 2010-07-20 23:45:49 -0400 |
commit | 05f137fab9f4604ca3c7e8bb415c4b29db40ae5e (patch) | |
tree | eaeaa708bceee9fe2180c6ed51d3819a0b8791e1 /libmaple | |
parent | f72898584697e29b523861775dcdf01fc758b135 (diff) | |
download | librambutan-05f137fab9f4604ca3c7e8bb415c4b29db40ae5e.tar.gz librambutan-05f137fab9f4604ca3c7e8bb415c4b29db40ae5e.zip |
sigh, simple typo
Diffstat (limited to 'libmaple')
-rw-r--r-- | libmaple/timers.c | 2 |
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. |