Minor documentation enhancements.
[pub/USBasp.git] / Demos / Host / LowLevel / MIDIHost / MIDIHost.c
index 9c81902..7725f5d 100644 (file)
@@ -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_DATAPIPE_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_DATAPIPE_OUT);
+                       Pipe_SelectPipe(MIDI_DATA_OUT_PIPE);
                        
                        static uint8_t PrevJoystickStatus;
 
                        
                        static uint8_t PrevJoystickStatus;