From 931ca42a6efc88b31cd09cebc7c74b907dd5913d Mon Sep 17 00:00:00 2001 From: Dean Camera Date: Sat, 12 Jun 2010 07:03:22 +0000 Subject: Minor fixes to demos to add in some missing comments, printf() formatting. Make incomplete Bluetooth demo indicate connections visually via the board LEDs. --- Demos/Device/ClassDriver/AudioInput/AudioInput.c | 1 + Demos/Device/ClassDriver/AudioOutput/AudioOutput.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'Demos/Device/ClassDriver') diff --git a/Demos/Device/ClassDriver/AudioInput/AudioInput.c b/Demos/Device/ClassDriver/AudioInput/AudioInput.c index dd0028a55..32caffcce 100644 --- a/Demos/Device/ClassDriver/AudioInput/AudioInput.c +++ b/Demos/Device/ClassDriver/AudioInput/AudioInput.c @@ -98,6 +98,7 @@ void ProcessNextSample(void) /* Check if the sample reload timer period has elapsed, and that the USB bus is ready for a new sample */ if ((TIFR0 & (1 << OCF0A)) && Audio_Device_IsReadyForNextSample(&Microphone_Audio_Interface)) { + /* Clear the sample reload timer compare flag, ready for the next interval */ TIFR0 |= (1 << OCF0A); /* Audio sample is ADC value scaled to fit the entire range */ diff --git a/Demos/Device/ClassDriver/AudioOutput/AudioOutput.c b/Demos/Device/ClassDriver/AudioOutput/AudioOutput.c index 622e423c6..9d2232ccb 100644 --- a/Demos/Device/ClassDriver/AudioOutput/AudioOutput.c +++ b/Demos/Device/ClassDriver/AudioOutput/AudioOutput.c @@ -93,7 +93,7 @@ void ProcessNextSample(void) /* Check if the sample reload timer period has elapsed, and that the USB bus is ready for a new sample */ if ((TIFR0 & (1 << OCF0A)) && Audio_Device_IsSampleReceived(&Speaker_Audio_Interface)) { - /* Clear the sample reload timer */ + /* Clear the sample reload timer compare flag, ready for the next interval */ TIFR0 |= (1 << OCF0A); /* Retrieve the signed 16-bit left and right audio samples, convert to 8-bit */ -- cgit v1.2.3