60f2ab81c7c59704a0e224884896d977fb3f330b
[tpg/acess2.git] / Modules / USB / Core / usb.c
1 /*
2  * Acess 2 USB Stack
3  * USB Packet Control
4  */
5 #define DEBUG   1
6 #include <acess.h>
7 #include <vfs.h>
8 #include <drv_pci.h>
9 #include "usb.h"
10
11
12 // === CODE ===
13 int USB_int_SendSetupSetAddress(tUSBHost *Host, int Address)
14 {
15         Uint8   data[8];
16         data[0] = 0;    // bmRequestType
17         data[1] = 5;    // SET_ADDRESS
18         data[2] = Address & 0x7F;       // wValue (low)
19         data[3] = 0;    // wValue (high)
20         data[4] = 0;    // wLength
21         data[6] = 0;    // wLength
22         
23         Host->SendSETUP(Host, 0, 0, 0, data, 8);
24 }

UCC git Repository :: git.ucc.asn.au