git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
UDP Packets are now sent and recieved correctly (server not tested)
[tpg/acess2.git]
/
Modules
/
USB
/
usb.c
diff --git
a/Modules/USB/usb.c
b/Modules/USB/usb.c
index
3ac7bf8
..
4663ce2
100644
(file)
--- a/
Modules/USB/usb.c
+++ b/
Modules/USB/usb.c
@@
-19,3
+19,15
@@
void USB_MakeToken(void *Buf, int PID, int Addr, int EndP)
tok[1] = Addr | ((EndP&1)<<7);
tok[2] = (EndP >> 1) | crc;
}
tok[1] = Addr | ((EndP&1)<<7);
tok[2] = (EndP >> 1) | crc;
}
+
+#if 0
+void USB_SendPacket(int Controller, int PID, int Dev, int Endpoint, void *Data, int Length)
+{
+ uint8_t buf[Length/*+??*/];
+ switch(Controller & 0xF00)
+ {
+ case 1:
+ UHCI_SendPacket(Controller & 0xFF);
+ }
+}
+#endif
UCC
git Repository :: git.ucc.asn.au