mirror of
https://github.com/arduino/Arduino.git
synced 2025-03-14 11:29:26 +01:00
[AVR][USB] fix IRQ flags clearing
This commit is contained in:
parent
830fe765b8
commit
28e10e95da
@ -733,7 +733,7 @@ static inline void USB_ClockEnable()
|
|||||||
ISR(USB_GEN_vect)
|
ISR(USB_GEN_vect)
|
||||||
{
|
{
|
||||||
u8 udint = UDINT;
|
u8 udint = UDINT;
|
||||||
UDINT = UDINT &= ~((1<<EORSTI) | (1<<SOFI)); // clear the IRQ flags for the IRQs which are handled here, except WAKEUPI and SUSPI (see below)
|
UDINT &= ~((1<<EORSTI) | (1<<SOFI)); // clear the IRQ flags for the IRQs which are handled here, except WAKEUPI and SUSPI (see below)
|
||||||
|
|
||||||
// End of Reset
|
// End of Reset
|
||||||
if (udint & (1<<EORSTI))
|
if (udint & (1<<EORSTI))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user