Firmware: correct LED PWM initialization
This commit is contained in:
parent
fee9c9b2a1
commit
bc28fed22a
@ -135,8 +135,8 @@ void led_std() {
|
|||||||
void led_init() {
|
void led_init() {
|
||||||
/* power is already connected by default */
|
/* power is already connected by default */
|
||||||
/* set PCLK divider to 8 */
|
/* set PCLK divider to 8 */
|
||||||
BITBAND(LPC_SC->PCLKSEL1, 21) = 1;
|
BITBAND(LPC_SC->PCLKSEL0, 13) = 1;
|
||||||
BITBAND(LPC_SC->PCLKSEL1, 20) = 1;
|
BITBAND(LPC_SC->PCLKSEL0, 12) = 1;
|
||||||
LPC_PWM1->MR0 = 255;
|
LPC_PWM1->MR0 = 255;
|
||||||
BITBAND(LPC_PWM1->LER, 0) = 1;
|
BITBAND(LPC_PWM1->LER, 0) = 1;
|
||||||
BITBAND(LPC_PWM1->TCR, 0) = 1;
|
BITBAND(LPC_PWM1->TCR, 0) = 1;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user