XOOMの動作状況を聞き処理を変えてみました。 USBケーブルを抜いた際に処理を終了するようにしました。

Dependencies:   mbed

Revision:
2:a05c7cbe396f
Parent:
0:9fb6c423e32c
Child:
3:432e5675d240
--- a/ADK.h	Wed May 25 15:21:39 2011 +0000
+++ b/ADK.h	Thu May 26 19:08:55 2011 +0000
@@ -25,11 +25,15 @@
 {
     public:
     AdkUSB(int device, int configuration, int interfaceNumber);
-    int read(u8 *buff, int len, int nakLimit);
+    void setup();
+    int read(u8 *buff, int len );
     int write(u8 *buff, int len );
     void loop();
     
+    
+    
     private:
+      
     int input_ep;
     int output_ep;
     int _device;