projects
/
pub
/
USBasp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Minor documentation enhancements.
[pub/USBasp.git]
/
Demos
/
Host
/
LowLevel
/
MIDIHost
/
MIDIHost.c
diff --git
a/Demos/Host/LowLevel/MIDIHost/MIDIHost.c
b/Demos/Host/LowLevel/MIDIHost/MIDIHost.c
index
9c81902
..
7725f5d
100644
(file)
--- a/
Demos/Host/LowLevel/MIDIHost/MIDIHost.c
+++ b/
Demos/Host/LowLevel/MIDIHost/MIDIHost.c
@@
-114,7
+114,8
@@
void EVENT_USB_Host_HostError(const uint8_t ErrorCode)
/** Event handler for the USB_DeviceEnumerationFailed event. This indicates that a problem occurred while
* enumerating an attached USB device.
*/
/** Event handler for the USB_DeviceEnumerationFailed event. This indicates that a problem occurred while
* enumerating an attached USB device.
*/
-void EVENT_USB_Host_DeviceEnumerationFailed(const uint8_t ErrorCode, const uint8_t SubErrorCode)
+void EVENT_USB_Host_DeviceEnumerationFailed(const uint8_t ErrorCode,
+ const uint8_t SubErrorCode)
{
printf_P(PSTR(ESC_FG_RED "Dev Enum Error\r\n"
" -- Error Code %d\r\n"
{
printf_P(PSTR(ESC_FG_RED "Dev Enum Error\r\n"
" -- Error Code %d\r\n"
@@
-174,7
+175,7
@@
void MIDI_Host_Task(void)
USB_HostState = HOST_STATE_Configured;
break;
case HOST_STATE_Configured:
USB_HostState = HOST_STATE_Configured;
break;
case HOST_STATE_Configured:
- Pipe_SelectPipe(MIDI_DATA
PIPE_IN
);
+ Pipe_SelectPipe(MIDI_DATA
_IN_PIPE
);
if (Pipe_IsINReceived())
{
if (Pipe_IsINReceived())
{
@@
-195,7
+196,7
@@
void MIDI_Host_Task(void)
Pipe_ClearIN();
}
Pipe_ClearIN();
}
- Pipe_SelectPipe(MIDI_DATA
PIPE_OUT
);
+ Pipe_SelectPipe(MIDI_DATA
_OUT_PIPE
);
static uint8_t PrevJoystickStatus;
static uint8_t PrevJoystickStatus;