Update LUFA core to be compatible with the AVR-GCC -Wswitch-default warning switch.

This commit is contained in:
Dean Camera 2012-09-09 14:00:03 +00:00
parent 0284385b4e
commit 7a51e97c3b
9 changed files with 62 additions and 26 deletions

View file

@ -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))

View file

@ -139,6 +139,8 @@
OTGIEN |= (1 << SRPE);
break;
#endif
default:
break;
}
}
@ -197,6 +199,8 @@
OTGIEN &= ~(1 << SRPE);
break;
#endif
default:
break;
}
}
@ -255,6 +259,8 @@
OTGINT &= ~(1 << SRPI);
break;
#endif
default:
break;
}
}
@ -299,9 +305,9 @@
case USB_INT_SRPI:
return (OTGIEN & (1 << SRPE));
#endif
default:
return false;
}
return false;
}
static inline bool USB_INT_HasOccurred(const uint8_t Interrupt) ATTR_ALWAYS_INLINE ATTR_WARN_UNUSED_RESULT;
@ -345,9 +351,9 @@
case USB_INT_SRPI:
return (OTGINT & (1 << SRPI));
#endif
default:
return false;
}
return false;
}
/* Includes: */