aboutsummaryrefslogtreecommitdiffstats
path: root/Demos/Host/Incomplete/AudioInputHost
diff options
context:
space:
mode:
Diffstat (limited to 'Demos/Host/Incomplete/AudioInputHost')
-rw-r--r--Demos/Host/Incomplete/AudioInputHost/AudioInputHost.c4
-rw-r--r--Demos/Host/Incomplete/AudioInputHost/AudioInputHost.h6
-rw-r--r--Demos/Host/Incomplete/AudioInputHost/AudioInputHost.obin20140 -> 0 bytes
-rw-r--r--Demos/Host/Incomplete/AudioInputHost/ConfigDescriptor.c4
4 files changed, 7 insertions, 7 deletions
diff --git a/Demos/Host/Incomplete/AudioInputHost/AudioInputHost.c b/Demos/Host/Incomplete/AudioInputHost/AudioInputHost.c
index 7ac8f0015..8c98bcf6f 100644
--- a/Demos/Host/Incomplete/AudioInputHost/AudioInputHost.c
+++ b/Demos/Host/Incomplete/AudioInputHost/AudioInputHost.c
@@ -43,7 +43,7 @@ int main(void)
{
SetupHardware();
- puts_P(PSTR(ESC_FG_CYAN "Audio Host Demo running.\r\n" ESC_FG_WHITE));
+ puts_P(PSTR(ESC_FG_CYAN "Audio Input Host Demo running.\r\n" ESC_FG_WHITE));
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
sei();
@@ -208,7 +208,7 @@ void Audio_Task(void)
/* Sample reload timer initialization */
TIMSK0 = (1 << OCIE0A);
- OCR0A = ((F_CPU / 8 / 8000) - 1);
+ OCR0A = ((F_CPU / 8 / 48000) - 1);
TCCR0A = (1 << WGM01); // CTC mode
TCCR0B = (1 << CS01); // Fcpu/8 speed
diff --git a/Demos/Host/Incomplete/AudioInputHost/AudioInputHost.h b/Demos/Host/Incomplete/AudioInputHost/AudioInputHost.h
index 6a3b8502c..e3952329d 100644
--- a/Demos/Host/Incomplete/AudioInputHost/AudioInputHost.h
+++ b/Demos/Host/Incomplete/AudioInputHost/AudioInputHost.h
@@ -30,11 +30,11 @@
/** \file
*
- * Header file for AudioHost.c.
+ * Header file for AudioInputHost.c.
*/
-#ifndef _AUDIO_HOST_H_
-#define _AUDIO_HOST_H_
+#ifndef _AUDIO_INPUT_HOST_H_
+#define _AUDIO_INPUT_HOST_H_
/* Includes: */
#include <avr/io.h>
diff --git a/Demos/Host/Incomplete/AudioInputHost/AudioInputHost.o b/Demos/Host/Incomplete/AudioInputHost/AudioInputHost.o
deleted file mode 100644
index f8bafd3d1..000000000
--- a/Demos/Host/Incomplete/AudioInputHost/AudioInputHost.o
+++ /dev/null
Binary files differ
diff --git a/Demos/Host/Incomplete/AudioInputHost/ConfigDescriptor.c b/Demos/Host/Incomplete/AudioInputHost/ConfigDescriptor.c
index 5dcd602ac..589012aaa 100644
--- a/Demos/Host/Incomplete/AudioInputHost/ConfigDescriptor.c
+++ b/Demos/Host/Incomplete/AudioInputHost/ConfigDescriptor.c
@@ -120,7 +120,7 @@ uint8_t ProcessConfigurationDescriptor(void)
/* Retrieve the endpoint address from the endpoint descriptor */
USB_Descriptor_Endpoint_t* EndpointData = DESCRIPTOR_PCAST(CurrConfigLocation, USB_Descriptor_Endpoint_t);
- /* If the endpoint is a IN type endpoint */
+ /* Save the endpoint if it is an IN type endpoint */
if (EndpointData->EndpointAddress & ENDPOINT_DESCRIPTOR_DIR_IN)
DataINEndpoint = EndpointData;
}
@@ -129,7 +129,7 @@ uint8_t ProcessConfigurationDescriptor(void)
StreamingInterfaceAltSetting = AudioStreamingInterface->AlternateSetting;
StreamingEndpointAddress = DataINEndpoint->EndpointAddress;
- /* Configure the HID data IN pipe */
+ /* Configure the Audio data IN pipe */
Pipe_ConfigurePipe(AUDIO_DATA_IN_PIPE, EP_TYPE_ISOCHRONOUS, PIPE_TOKEN_IN,
DataINEndpoint->EndpointAddress, DataINEndpoint->EndpointSize, PIPE_BANK_DOUBLE);