From: Keith Packard Date: Mon, 4 Apr 2022 06:31:44 +0000 (-0700) Subject: lpc: Fixes for timer configuration X-Git-Tag: 1.9.12~1^2~17^2~14 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=5740b82174c70888f6f047917574567bcbca58dc lpc: Fixes for timer configuration Missed one magic value to make the beeper configurable --- diff --git a/src/lpc/ao_beep_lpc.c b/src/lpc/ao_beep_lpc.c index 9d5fdb15..67c69157 100644 --- a/src/lpc/ao_beep_lpc.c +++ b/src/lpc/ao_beep_lpc.c @@ -55,7 +55,7 @@ ao_beep(uint8_t beep) AO_TIMER.mr[1] = beep; /* Flip output 1 on PWM match */ - AO_TIMER.emr = (LPC_CT32B_EMR_EMC_TOGGLE << LPC_CT32B_EMR_EMC1); + AO_TIMER.emr = (LPC_CT32B_EMR_EMC_TOGGLE << AO_TIMER_EMC); /* Reset on match 0 */ AO_TIMER.mcr = (1 << LPC_CT32B_MCR_MR0R);