projects
/
pub
/
USBasp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
df14c97
)
Add error message for debugging purposes to the low level AudioInputHost and AudioOut...
author
Dean Camera
<dean@fourwalledcubicle.com>
Fri, 14 Sep 2012 15:19:43 +0000
(15:19 +0000)
committer
Dean Camera
<dean@fourwalledcubicle.com>
Fri, 14 Sep 2012 15:19:43 +0000
(15:19 +0000)
Demos/Host/LowLevel/AudioInputHost/AudioInputHost.c
patch
|
blob
|
blame
|
history
Demos/Host/LowLevel/AudioOutputHost/AudioOutputHost.c
patch
|
blob
|
blame
|
history
LUFA/DoxygenPages/LUFAPoweredProjects.txt
patch
|
blob
|
blame
|
history
diff --git
a/Demos/Host/LowLevel/AudioInputHost/AudioInputHost.c
b/Demos/Host/LowLevel/AudioInputHost/AudioInputHost.c
index
a7332fb
..
2fb7c82
100644
(file)
--- a/
Demos/Host/LowLevel/AudioInputHost/AudioInputHost.c
+++ b/
Demos/Host/LowLevel/AudioInputHost/AudioInputHost.c
@@
-152,6
+152,9
@@
void EVENT_USB_Host_DeviceEnumerationComplete(void)
/* Set the sample rate on the streaming interface endpoint */
if ((ErrorCode = USB_Host_SendControlRequest(&SampleRate)) != HOST_SENDCONTROL_Successful)
{
/* Set the sample rate on the streaming interface endpoint */
if ((ErrorCode = USB_Host_SendControlRequest(&SampleRate)) != HOST_SENDCONTROL_Successful)
{
+ printf_P(PSTR(ESC_FG_RED "Could not set requested Audio sample rate.\r\n"
+ " -- Error Code: %d\r\n" ESC_FG_WHITE), ErrorCode);
+
LEDs_SetAllLEDs(LEDMASK_USB_ERROR);
USB_Host_SetDeviceConfiguration(0);
return;
LEDs_SetAllLEDs(LEDMASK_USB_ERROR);
USB_Host_SetDeviceConfiguration(0);
return;
diff --git
a/Demos/Host/LowLevel/AudioOutputHost/AudioOutputHost.c
b/Demos/Host/LowLevel/AudioOutputHost/AudioOutputHost.c
index
eddd38f
..
2b89807
100644
(file)
--- a/
Demos/Host/LowLevel/AudioOutputHost/AudioOutputHost.c
+++ b/
Demos/Host/LowLevel/AudioOutputHost/AudioOutputHost.c
@@
-158,6
+158,9
@@
void EVENT_USB_Host_DeviceEnumerationComplete(void)
/* Set the sample rate on the streaming interface endpoint */
if ((ErrorCode = USB_Host_SendControlRequest(&SampleRate)) != HOST_SENDCONTROL_Successful)
{
/* Set the sample rate on the streaming interface endpoint */
if ((ErrorCode = USB_Host_SendControlRequest(&SampleRate)) != HOST_SENDCONTROL_Successful)
{
+ printf_P(PSTR(ESC_FG_RED "Could not set requested Audio sample rate.\r\n"
+ " -- Error Code: %d\r\n" ESC_FG_WHITE), ErrorCode);
+
LEDs_SetAllLEDs(LEDMASK_USB_ERROR);
USB_Host_SetDeviceConfiguration(0);
return;
LEDs_SetAllLEDs(LEDMASK_USB_ERROR);
USB_Host_SetDeviceConfiguration(0);
return;
diff --git
a/LUFA/DoxygenPages/LUFAPoweredProjects.txt
b/LUFA/DoxygenPages/LUFAPoweredProjects.txt
index
a5a5e3a
..
fec59c1
100644
(file)
--- a/
LUFA/DoxygenPages/LUFAPoweredProjects.txt
+++ b/
LUFA/DoxygenPages/LUFAPoweredProjects.txt
@@
-93,6
+93,7
@@
* \li NeroJTAG, a JTAG dongle: https://github.com/makestuff/neroJtag
* \li NES Controller USB modification: https://github.com/nfd/nes_adapter
* \li Nikon wireless camera remote control (Norwegian): http://hekta.org/~hpe1119/
* \li NeroJTAG, a JTAG dongle: https://github.com/makestuff/neroJtag
* \li NES Controller USB modification: https://github.com/nfd/nes_adapter
* \li Nikon wireless camera remote control (Norwegian): http://hekta.org/~hpe1119/
+ * \li Numpad keyboard: http://tuomasnylund.fi/drupal6/content/usb-cherry-mx-numpad
* \li Opendous-JTAG, an open source ARM JTAG debugger: http://code.google.com/p/opendous-jtag/
* \li Openkubus, an open source hardware-based authentication dongle: http://code.google.com/p/openkubus/
* \li Orbee, a USB connected RGB Orb for notifications: http://www.franksworkshop.com.au/Electronics/Orbee/Orbee.htm
* \li Opendous-JTAG, an open source ARM JTAG debugger: http://code.google.com/p/opendous-jtag/
* \li Openkubus, an open source hardware-based authentication dongle: http://code.google.com/p/openkubus/
* \li Orbee, a USB connected RGB Orb for notifications: http://www.franksworkshop.com.au/Electronics/Orbee/Orbee.htm