aboutsummaryrefslogtreecommitdiffstats
path: root/Demos/Host/ClassDriver/AudioOutputHost/AudioOutputHost.c
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2012-05-13 21:01:23 +0000
committerDean Camera <dean@fourwalledcubicle.com>2012-05-13 21:01:23 +0000
commite9e6730d4999bea6e0eaefc2fce062ef090388b8 (patch)
tree5daf1ada1335d2781e144548b55d8253adff0c05 /Demos/Host/ClassDriver/AudioOutputHost/AudioOutputHost.c
parentae6a51492948d621907d3e62c03c2854e6fcc19c (diff)
downloadlufa-e9e6730d4999bea6e0eaefc2fce062ef090388b8.tar.gz
lufa-e9e6730d4999bea6e0eaefc2fce062ef090388b8.tar.bz2
lufa-e9e6730d4999bea6e0eaefc2fce062ef090388b8.zip
AppConfigHeaders: Move out the last of the demo/app configurations into new AppConfig.h header files.
Diffstat (limited to 'Demos/Host/ClassDriver/AudioOutputHost/AudioOutputHost.c')
-rw-r--r--Demos/Host/ClassDriver/AudioOutputHost/AudioOutputHost.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Demos/Host/ClassDriver/AudioOutputHost/AudioOutputHost.c b/Demos/Host/ClassDriver/AudioOutputHost/AudioOutputHost.c
index 833be1b2c..5f00568f5 100644
--- a/Demos/Host/ClassDriver/AudioOutputHost/AudioOutputHost.c
+++ b/Demos/Host/ClassDriver/AudioOutputHost/AudioOutputHost.c
@@ -128,6 +128,9 @@ void SetupHardware(void)
/* Create a stdio stream for the serial port for stdin and stdout */
Serial_CreateStream(NULL);
+
+ /* Start the ADC conversion in free running mode */
+ ADC_StartReading(ADC_REFERENCE_AVCC | ADC_RIGHT_ADJUSTED | ADC_GET_CHANNEL_MASK(MIC_IN_ADC_CHANNEL));
}
/** Event handler for the USB_DeviceAttached event. This indicates that a device has been attached to the host, and