1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-19 09:42:11 +03:00

[sam] prelimanary work on USB Device stack

This commit is contained in:
Thibaut VIARD
2012-03-29 21:11:05 +02:00
parent 29e2e30514
commit f83cd2f3e7
17 changed files with 401 additions and 427 deletions

View File

@ -230,7 +230,7 @@ int USB_Recv(u8 ep, void* d, int len)
n = len;
u8* dst = (u8*)d;
while (n--)
*dst++ = Recv8();
*dst++ = USBD_Recv8();
if (len && !FifoByteCount()) // release empty buffer
ReleaseRX();