projects
/
pub
/
USBasp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed GenericHIDHost demo report write routine incorrect for control type requests...
[pub/USBasp.git]
/
Demos
/
Device
/
AudioOutput
/
AudioOutput.c
diff --git
a/Demos/Device/AudioOutput/AudioOutput.c
b/Demos/Device/AudioOutput/AudioOutput.c
index
ffeee41
..
fcd8812
100644
(file)
--- a/
Demos/Device/AudioOutput/AudioOutput.c
+++ b/
Demos/Device/AudioOutput/AudioOutput.c
@@
-36,12
+36,6
@@
\r
#include "AudioOutput.h"
\r
\r
\r
#include "AudioOutput.h"
\r
\r
-/* Project Tags, for reading out using the ButtLoad project */
\r
-BUTTLOADTAG(ProjName, "LUFA AudioOut App");
\r
-BUTTLOADTAG(BuildTime, __TIME__);
\r
-BUTTLOADTAG(BuildDate, __DATE__);
\r
-BUTTLOADTAG(LUFAVersion, "LUFA V" LUFA_VERSION_STRING);
\r
-
\r
/* Scheduler Task List */
\r
TASK_LIST
\r
{
\r
/* Scheduler Task List */
\r
TASK_LIST
\r
{
\r
@@
-172,7
+166,7
@@
EVENT_HANDLER(USB_UnhandledControlPacket)
{
\r
uint16_t wValue = Endpoint_Read_Word_LE();
\r
\r
{
\r
uint16_t wValue = Endpoint_Read_Word_LE();
\r
\r
- Endpoint_Clear
SetupReceived
();
\r
+ Endpoint_Clear
ControlSETUP
();
\r
\r
/* Check if the host is enabling the audio interface (setting AlternateSetting to 1) */
\r
if (wValue)
\r
\r
/* Check if the host is enabling the audio interface (setting AlternateSetting to 1) */
\r
if (wValue)
\r
@@
-187,8
+181,8
@@
EVENT_HANDLER(USB_UnhandledControlPacket)
}
\r
\r
/* Acknowledge status stage */
\r
}
\r
\r
/* Acknowledge status stage */
\r
- while (!(Endpoint_Is
Setup
INReady()));
\r
- Endpoint_Clear
Setup
IN();
\r
+ while (!(Endpoint_IsINReady()));
\r
+ Endpoint_Clear
Control
IN();
\r
}
\r
\r
break;
\r
}
\r
\r
break;
\r
@@
-231,7
+225,7
@@
TASK(USB_Audio_Task)
Endpoint_SelectEndpoint(AUDIO_STREAM_EPNUM);
\r
\r
/* Check if the current endpoint can be read from (contains a packet) and that the next sample should be read */
\r
Endpoint_SelectEndpoint(AUDIO_STREAM_EPNUM);
\r
\r
/* Check if the current endpoint can be read from (contains a packet) and that the next sample should be read */
\r
- if (Endpoint_
ReadWriteAllow
ed() && (TIFR0 & (1 << OCF0A)))
\r
+ if (Endpoint_
IsOUTReceiv
ed() && (TIFR0 & (1 << OCF0A)))
\r
{
\r
/* Clear the sample reload timer */
\r
TIFR0 |= (1 << OCF0A);
\r
{
\r
/* Clear the sample reload timer */
\r
TIFR0 |= (1 << OCF0A);
\r
@@
-241,10
+235,10
@@
TASK(USB_Audio_Task)
int16_t RightSample_16Bit = (int16_t)Endpoint_Read_Word_LE();
\r
\r
/* Check to see if the bank is now empty */
\r
int16_t RightSample_16Bit = (int16_t)Endpoint_Read_Word_LE();
\r
\r
/* Check to see if the bank is now empty */
\r
- if (!(Endpoint_ReadWriteAllowed()))
\r
+ if (!(Endpoint_
Is
ReadWriteAllowed()))
\r
{
\r
/* Acknowledge the packet, clear the bank ready for the next packet */
\r
{
\r
/* Acknowledge the packet, clear the bank ready for the next packet */
\r
- Endpoint_Clear
CurrentBank
();
\r
+ Endpoint_Clear
OUT
();
\r
}
\r
\r
/* Massage signed 16-bit left and right audio samples into signed 8-bit */
\r
}
\r
\r
/* Massage signed 16-bit left and right audio samples into signed 8-bit */
\r