Fixed hardware race condition that could cause failed device enumerations for AVR8 and UC3 architectures (thanks to Mike Beyhs).
Fixed incorrect Minimus board LED definitions (thanks to Joonas Lahtinen). Fixed incorrect LED masks for received data display in the Device GenericHID demos (thanks to Denys Berkovskyy).
This commit is contained in:
parent
7d037c7db8
commit
2608fd1dd4
9 changed files with 40 additions and 28 deletions
|
|
@ -124,9 +124,9 @@ void USB_Device_ProcessControlRequest(void)
|
|||
|
||||
static void USB_Device_SetAddress(void)
|
||||
{
|
||||
uint8_t DeviceAddress = (USB_ControlRequest.wValue & 0x7F);
|
||||
uint_reg_t CurrentGlobalInt = GetGlobalInterruptMask();
|
||||
GlobalInterruptDisable();
|
||||
uint8_t DeviceAddress = (USB_ControlRequest.wValue & 0x7F);
|
||||
|
||||
USB_Device_SetDeviceAddress(DeviceAddress);
|
||||
|
||||
Endpoint_ClearSETUP();
|
||||
|
||||
|
|
@ -134,10 +134,9 @@ static void USB_Device_SetAddress(void)
|
|||
|
||||
while (!(Endpoint_IsINReady()));
|
||||
|
||||
USB_Device_SetDeviceAddress(DeviceAddress);
|
||||
USB_DeviceState = (DeviceAddress) ? DEVICE_STATE_Addressed : DEVICE_STATE_Default;
|
||||
USB_Device_EnableDeviceAddress();
|
||||
|
||||
SetGlobalInterruptMask(CurrentGlobalInt);
|
||||
USB_DeviceState = (DeviceAddress) ? DEVICE_STATE_Addressed : DEVICE_STATE_Default;
|
||||
}
|
||||
|
||||
static void USB_Device_SetConfiguration(void)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue