8000 Serial attach interrupt by gicking · Pull Request #95 · arduino/ArduinoCore-sam · GitHub
[go: up one dir, main page]

Skip to content

Serial attach interrupt #95

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
fixes #103 Misleadingly 'else' clause
  • Loading branch information
Fabian Schuette authored and cmaglie committed Sep 17, 2020
commit 790ff2c852bf159787a9966bddee4d9f55352d15
16 changes: 12 additions & 4 deletions cores/arduino/USB/USBCore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -684,9 +684,13 @@ static void USB_ISR(void)
// Send the endpoint status
// Check if the endpoint if currently halted
if( isEndpointHalt == 1 )
UDD_Send8(EP0, 1); // TODO
{
UDD_Send8(EP0, 1); // TODO
}
else
UDD_Send8(EP0, 0); // TODO
{
UDD_Send8(EP0, 0); // TODO
}
UDD_Send8(EP0, 0);
}
}
Expand All @@ -697,9 +701,13 @@ static void USB_ISR(void)
{
// Enable remote wake-up and send a ZLP
if( isRemoteWakeUpEnabled == 1 )
UDD_Send8(EP0, 1);
{
UDD_Send8(EP0, 1);
}
else
UDD_Send8(EP0, 0);
{
UDD_Send8(EP0, 0);
}
UDD_Send8(EP0, 0);
}
else // if( setup.wValueL == 0) // ENDPOINTHALT
Expand Down
0