git.ucc.asn.au
/
tpg
/
acess2.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Attempting to fix an intermittent TSS bug
[tpg/acess2.git]
/
Modules
/
USB
/
usb.c
1
/*
2
* Acess 2 USB Stack
3
* USB Packet Control
4
*/
5
#define DEBUG 1
6
#include <common.h>
7
#include <vfs.h>
8
#include <drv_pci.h>
9
#include "usb.h"
10
11
12
// === CODE ===
13
void USB_MakeToken(void *Buf, int PID, int Addr, int EndP)
14
{
15
Uint8 *tok = Buf;
16
int crc = 0; //USB_TokenCRC();
17
18
tok[0] = PID;
19
tok[1] = Addr | ((EndP&1)<<7);
20
tok[2] = (EndP >> 1) | crc;
21
}
UCC
git Repository :: git.ucc.asn.au