altos/lpc: Fix beeper driver
authorKeith Packard <keithp@keithp.com>
Mon, 20 May 2013 03:19:15 +0000 (20:19 -0700)
committerKeith Packard <keithp@keithp.com>
Mon, 20 May 2013 03:39:19 +0000 (20:39 -0700)
commit07d261c08214837b5d5cac4d2be43e51a0c47868
tree144e86a0af4ea8008f2527a150394ac65a972ed9
parent3fe11b277dd7268eb445d120c8f9537f95148891
altos/lpc: Fix beeper driver

Set prescale limit, not current prescale value (pr instead of pc).
Flip output 1 on PWM match (set emc toggle for channel 1).
Don't hold counter in reset (turn off CRST bit).

Signed-off-by: Keith Packard <keithp@keithp.com>
src/lpc/ao_beep_lpc.c
src/lpc/lpc.h