13 void USB_MakeToken(void *Buf, int PID, int Addr, int EndP)
16 int crc = 0; //USB_TokenCRC();
19 tok[1] = (Addr & 0x7F) | ((EndP&1)<<7);
20 tok[2] = ((EndP >> 1) & 0x7) | crc;
24 void USB_SendPacket(int Controller, int PID, int Dev, int Endpoint, void *Data, int Length)
26 uint8_t buf[Length/*+??*/];
27 switch(Controller & 0xF00)
30 UHCI_SendPacket(Controller & 0xFF);