A compilation of code from different sources to provide support for a Playstation 3 controller via bluetooth on the m3pi.

Dependencies:   TextLCD mbed

Fork of mbed_TANK_PS3 by Yasuhiko YAMAMOTO

Revision:
2:895f70862eb9
Parent:
0:44619612f575
--- a/USBHost.h	Sun Dec 30 05:16:28 2012 +0000
+++ b/USBHost.h	Tue Jan 01 02:10:08 2013 +0000
@@ -126,27 +126,27 @@
 
 typedef struct
 {
-    u8    bLength;
-    u8    bDescriptorType;
-    u16 bcdUSB;
-    u8 bDeviceClass;
-    u8 bDeviceSubClass;
-    u8 bDeviceProtocol;
-    u8 bMaxPacketSize;
-    u16 idVendor;
-    u16 idProduct;
-    u16 bcdDevice;    // version
-    u8 iManufacturer;
-    u8 iProduct;
-    u8 iSerialNumber;
-    u8 bNumConfigurations;
+    u8      bLength;
+    u8      bDescriptorType;
+    u16     bcdUSB;
+    u8      bDeviceClass;
+    u8      bDeviceSubClass;
+    u8      bDeviceProtocol;
+    u8      bMaxPacketSize;
+    u16     idVendor;
+    u16     idProduct;
+    u16     bcdDevice;    // version
+    u8      iManufacturer;
+    u8      iProduct;
+    u8      iSerialNumber;
+    u8      bNumConfigurations;
 } DeviceDescriptor;    // 16 bytes
 
 typedef struct
 {
     u8    bLength;
     u8    bDescriptorType;
-    u16    wTotalLength;
+    u16   wTotalLength;
     u8    bNumInterfaces;
     u8    bConfigurationValue;    // Value to use as an argument to select this configuration
     u8    iConfiguration;            // Index of String Descriptor describing this configuration
@@ -158,7 +158,7 @@
 {
     u8    bLength;
     u8    bDescriptorType;
-    u8  bInterfaceNumber;
+    u8    bInterfaceNumber;
     u8    bAlternateSetting;
     u8    bNumEndpoints;
     u8    bInterfaceClass;
@@ -173,7 +173,7 @@
     u8    bDescriptorType;
     u8    bEndpointAddress;    // Bits 0:3 endpoint, Bits 7 Direction 0 = Out, 1 = In (Ignored for Control Endpoints)
     u8    bmAttributes;        // Bits 0:1 00 = Control, 01 = Isochronous, 10 = Bulk, 11 = Interrupt
-    u16 wMaxPacketSize;
+    u16   wMaxPacketSize;
     u8    bInterval;            // Interval for polling endpoint data transfers.
 } EndpointDescriptor;