Update LUFA core to be compatible with the AVR-GCC -Wswitch-default warning switch.
This commit is contained in:
parent
0284385b4e
commit
7a51e97c3b
9 changed files with 62 additions and 26 deletions
|
@ -180,6 +180,9 @@ void USB_Host_ProcessNextHostState(void)
|
|||
|
||||
EVENT_USB_Host_DeviceEnumerationComplete();
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
if ((ErrorCode != HOST_ENUMERROR_NoError) && (USB_HostState != HOST_STATE_Unattached))
|
||||
|
|
|
@ -134,6 +134,8 @@
|
|||
AVR32_USBB.USBCON.vberre = true;
|
||||
break;
|
||||
#endif
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -187,6 +189,8 @@
|
|||
AVR32_USBB.USBCON.vberre = false;
|
||||
break;
|
||||
#endif
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -252,6 +256,8 @@
|
|||
(void)AVR32_USBB.USBSTACLR;
|
||||
break;
|
||||
#endif
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -292,9 +298,9 @@
|
|||
case USB_INT_VBERRI:
|
||||
return AVR32_USBB.USBCON.vberre;
|
||||
#endif
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
static inline bool USB_INT_HasOccurred(const uint8_t Interrupt) ATTR_ALWAYS_INLINE ATTR_WARN_UNUSED_RESULT;
|
||||
|
@ -334,9 +340,9 @@
|
|||
case USB_INT_VBERRI:
|
||||
return AVR32_USBB.USBSTA.vberri;
|
||||
#endif
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
/* Includes: */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue