projects
/
pub
/
USBasp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Minor correction to MagStripe demo to fix build problems.
[pub/USBasp.git]
/
LUFA
/
Drivers
/
USB
/
Class
/
Device
/
Audio.c
diff --git
a/LUFA/Drivers/USB/Class/Device/Audio.c
b/LUFA/Drivers/USB/Class/Device/Audio.c
index
e398f1c
..
d117bed
100644
(file)
--- a/
LUFA/Drivers/USB/Class/Device/Audio.c
+++ b/
LUFA/Drivers/USB/Class/Device/Audio.c
@@
-33,7
+33,7
@@
\r
#include "Audio.h"
\r
\r
\r
#include "Audio.h"
\r
\r
-void Audio_Device_ProcessControlPacket(USB_ClassInfo_Audio_Device_t* AudioInterfaceInfo)
\r
+void Audio_Device_ProcessControlPacket(USB_ClassInfo_Audio_Device_t*
const
AudioInterfaceInfo)
\r
{
\r
if (!(Endpoint_IsSETUPReceived()))
\r
return;
\r
{
\r
if (!(Endpoint_IsSETUPReceived()))
\r
return;
\r
@@
-83,7
+83,7
@@
bool Audio_Device_ConfigureEndpoints(USB_ClassInfo_Audio_Device_t* AudioInterfac
return true;
\r
}
\r
\r
return true;
\r
}
\r
\r
-void Audio_Device_USBTask(USB_ClassInfo_Audio_Device_t* AudioInterfaceInfo)
\r
+void Audio_Device_USBTask(USB_ClassInfo_Audio_Device_t*
const
AudioInterfaceInfo)
\r
{
\r
\r
}
\r
{
\r
\r
}
\r
@@
-124,7
+124,7
@@
int32_t Audio_Device_ReadSample24(void)
return Sample;
\r
}
\r
\r
return Sample;
\r
}
\r
\r
-void Audio_Device_WriteSample8(int8_t Sample)
\r
+void Audio_Device_WriteSample8(
const
int8_t Sample)
\r
{
\r
Endpoint_Write_Byte(Sample);
\r
\r
{
\r
Endpoint_Write_Byte(Sample);
\r
\r
@@
-132,7
+132,7
@@
void Audio_Device_WriteSample8(int8_t Sample)
Endpoint_ClearIN();
\r
}
\r
\r
Endpoint_ClearIN();
\r
}
\r
\r
-void Audio_Device_WriteSample16(int16_t Sample)
\r
+void Audio_Device_WriteSample16(
const
int16_t Sample)
\r
{
\r
Endpoint_Write_Word_LE(Sample);
\r
\r
{
\r
Endpoint_Write_Word_LE(Sample);
\r
\r
@@
-140,7
+140,7
@@
void Audio_Device_WriteSample16(int16_t Sample)
Endpoint_ClearIN();
\r
}
\r
\r
Endpoint_ClearIN();
\r
}
\r
\r
-void Audio_Device_WriteSample24(int32_t Sample)
\r
+void Audio_Device_WriteSample24(
const
int32_t Sample)
\r
{
\r
Endpoint_Write_Byte(Sample >> 16);
\r
Endpoint_Write_Word_LE(Sample);
\r
{
\r
Endpoint_Write_Byte(Sample >> 16);
\r
Endpoint_Write_Word_LE(Sample);
\r
@@
-149,13
+149,13
@@
void Audio_Device_WriteSample24(int32_t Sample)
Endpoint_ClearIN();
\r
}
\r
\r
Endpoint_ClearIN();
\r
}
\r
\r
-bool Audio_Device_IsSampleReceived(USB_ClassInfo_Audio_Device_t* AudioInterfaceInfo)
\r
+bool Audio_Device_IsSampleReceived(USB_ClassInfo_Audio_Device_t*
const
AudioInterfaceInfo)
\r
{
\r
Endpoint_SelectEndpoint(AudioInterfaceInfo->Config.DataOUTEndpointNumber);
\r
return Endpoint_IsOUTReceived();
\r
}
\r
\r
{
\r
Endpoint_SelectEndpoint(AudioInterfaceInfo->Config.DataOUTEndpointNumber);
\r
return Endpoint_IsOUTReceived();
\r
}
\r
\r
-bool Audio_Device_IsReadyForNextSample(USB_ClassInfo_Audio_Device_t* AudioInterfaceInfo)
\r
+bool Audio_Device_IsReadyForNextSample(USB_ClassInfo_Audio_Device_t*
const
AudioInterfaceInfo)
\r
{
\r
Endpoint_SelectEndpoint(AudioInterfaceInfo->Config.DataINEndpointNumber);
\r
return Endpoint_IsINReady();
\r
{
\r
Endpoint_SelectEndpoint(AudioInterfaceInfo->Config.DataINEndpointNumber);
\r
return Endpoint_IsINReady();
\r