From bc28fed22a6057e20919856812445f4252e17c37 Mon Sep 17 00:00:00 2001 From: Maximilian Rehkopf Date: Sat, 8 Oct 2011 19:21:24 +0200 Subject: [PATCH] Firmware: correct LED PWM initialization --- src/led.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/led.c b/src/led.c index 2a8a1c6..d3da43b 100644 --- a/src/led.c +++ b/src/led.c @@ -135,8 +135,8 @@ void led_std() { void led_init() { /* power is already connected by default */ /* set PCLK divider to 8 */ - BITBAND(LPC_SC->PCLKSEL1, 21) = 1; - BITBAND(LPC_SC->PCLKSEL1, 20) = 1; + BITBAND(LPC_SC->PCLKSEL0, 13) = 1; + BITBAND(LPC_SC->PCLKSEL0, 12) = 1; LPC_PWM1->MR0 = 255; BITBAND(LPC_PWM1->LER, 0) = 1; BITBAND(LPC_PWM1->TCR, 0) = 1;