From: Keith Packard Date: Mon, 4 Apr 2022 06:31:44 +0000 (-0700) Subject: lpc: Fixes for timer configuration X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=b445b2285000a56c110b5b273dda8b094976836a;p=fw%2Faltos 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 24f519c7..d47f647f 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);