first release for keyboard

Dependencies:   FATFileSystem2

Dependents:   N64_Output_KB

Fork of F401RE-USBHost by Norimasa Okamoto

Revision:
18:61554f238584
Parent:
13:8774c07f12a5
--- a/USBHostC270/BaseUvc.cpp	Mon Jun 23 20:48:53 2014 +0900
+++ b/USBHostC270/BaseUvc.cpp	Tue Jul 01 18:33:31 2014 +0900
@@ -3,18 +3,16 @@
 #include "USBHost.h"
 #include "BaseUvc.h"
 
-void BaseUvc::poll()
-{
+void BaseUvc::poll() {
     uint8_t buf[ep_iso_in->getSize()];
     int result = host->isochronousReadNB(ep_iso_in, buf, sizeof(buf));
     if (result >= 0) {
-        uint16_t frame = 0;
+        const uint16_t frame = 0;
         onResult(frame, buf, ep_iso_in->getLengthTransferred());
     }
 }
 
-USB_TYPE BaseUvc::Control(int req, int cs, int index, uint8_t* buf, int size)
-{
+USB_TYPE BaseUvc::Control(int req, int cs, int index, uint8_t* buf, int size) {
     if (req == SET_CUR) {    
         return host->controlWrite(dev,
                     USB_HOST_TO_DEVICE | USB_REQUEST_TYPE_CLASS | USB_RECIPIENT_INTERFACE, 
@@ -25,8 +23,7 @@
                 req, cs<<8, index, buf, size);
 }
 
-USB_TYPE BaseUvc::setInterfaceAlternate(uint8_t intf, uint8_t alt)
-{
+USB_TYPE BaseUvc::setInterfaceAlternate(uint8_t intf, uint8_t alt) {
     return host->controlWrite(dev, USB_HOST_TO_DEVICE | USB_RECIPIENT_INTERFACE,
                                    SET_INTERFACE, alt, intf, NULL, 0);
 }