Commit 708a1c61 authored by Dean Camera's avatar Dean Camera
Browse files

Fixed INTERRUPT_CONTROL_ENDPOINT compile time option preventing other...

Fixed INTERRUPT_CONTROL_ENDPOINT compile time option preventing other interrupts from occuring while the control endpoint request is being processed, causing possible lockups if a USB interrupt occurs during a transfer.
parent e652cfac
...@@ -235,7 +235,10 @@ ISR(USB_COM_vect, ISR_BLOCK) ...@@ -235,7 +235,10 @@ ISR(USB_COM_vect, ISR_BLOCK)
{ {
uint8_t PrevSelectedEndpoint = Endpoint_GetCurrentEndpoint(); uint8_t PrevSelectedEndpoint = Endpoint_GetCurrentEndpoint();
USB_INT_Disable(USB_INT_RXSTPI);
sei();
USB_USBTask(); USB_USBTask();
USB_INT_Enable(USB_INT_RXSTPI);
USB_INT_Clear(USB_INT_RXSTPI); USB_INT_Clear(USB_INT_RXSTPI);
......
...@@ -43,6 +43,7 @@ ...@@ -43,6 +43,7 @@
/* Includes: */ /* Includes: */
#include <avr/io.h> #include <avr/io.h>
#include <avr/interrupt.h>
#include <stdbool.h> #include <stdbool.h>
#include "../../../Common/Common.h" #include "../../../Common/Common.h"
......
...@@ -60,6 +60,8 @@ ...@@ -60,6 +60,8 @@
* - Fixed Set Configuration requests not being stalled until the host has set the device's address * - Fixed Set Configuration requests not being stalled until the host has set the device's address
* - Fixed Host mode HID class driver not sending the correct report type when HID_Host_SendReportByID() was called and the * - Fixed Host mode HID class driver not sending the correct report type when HID_Host_SendReportByID() was called and the
* HID_HOST_BOOT_PROTOCOL_ONLY compile time option is set * HID_HOST_BOOT_PROTOCOL_ONLY compile time option is set
* - Fixed INTERRUPT_CONTROL_ENDPOINT compile time option preventing other interrupts from occuring while the control endpoint
* request is being processed, causing possible lockups if a USB interrupt occurs during a transfer
* *
* \section Sec_ChangeLog100219 Version 100219 * \section Sec_ChangeLog100219 Version 100219
* *
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment