diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2012-05-27 19:12:07 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2012-05-27 19:12:07 +0000 |
commit | 2ff1370221d3650a6bc0523c93c2f0d37508f408 (patch) | |
tree | b1d7f7a2a7dbebaf76e43e0f977d227d0cabf95a /Demos/Host/ClassDriver/AudioOutputHost/AudioOutputHost.c | |
parent | b017b41e91f7eb7bb83d1466b45c24e01ac2e309 (diff) | |
parent | 1e42f7bd46fbef1e67f50741e4fe1a5ea3a70869 (diff) | |
download | lufa-2ff1370221d3650a6bc0523c93c2f0d37508f408.tar.gz lufa-2ff1370221d3650a6bc0523c93c2f0d37508f408.tar.bz2 lufa-2ff1370221d3650a6bc0523c93c2f0d37508f408.zip |
Merge in AppConfigHeaders branch to trunk, altering all projects and demos to use configuration headers for application and LUFA compile time settings, rather than defines in the project makefiles.
Diffstat (limited to 'Demos/Host/ClassDriver/AudioOutputHost/AudioOutputHost.c')
-rw-r--r-- | Demos/Host/ClassDriver/AudioOutputHost/AudioOutputHost.c | 3 |
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 |