summaryrefslogtreecommitdiff
path: root/src/ao_teleterra.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2010-10-31 00:38:39 -0700
committerKeith Packard <keithp@keithp.com>2010-10-31 00:38:39 -0700
commit3493b456399bcc0ea43d28fd4105928bd8793cff (patch)
tree869bc731152146632fc55cf9df7d4d6f125e8b68 /src/ao_teleterra.c
parent3f53e5daeca4d9257aef017594fd65b379b97a1e (diff)
teleterra: Add PWM audio system
This uses timers 3 and 4 to emit 8-bit 11025Hz audio using a 93.8kHz carrier. A simple low-pass filter to eliminate the 93.8kHz signal results in credible 8-bit audio. There is a giant sample for testing in the ao_audio code which shouldn't be included in a product. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/ao_teleterra.c')
-rw-r--r--src/ao_teleterra.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ao_teleterra.c b/src/ao_teleterra.c
index 422bd06a..c697b5df 100644
--- a/src/ao_teleterra.c
+++ b/src/ao_teleterra.c
@@ -27,7 +27,7 @@ main(void)
ao_led_init(AO_LED_RED|AO_LED_GREEN);
ao_led_on(AO_LED_RED);
ao_timer_init();
- ao_beep_init();
+ ao_audio_init();
ao_cmd_init();
ao_usb_init();
ao_serial_init();