The USB_Host_SendControlRequest() function no longer automatically selects the Contro...
[pub/USBasp.git] / LUFA / Drivers / USB / LowLevel / Host.h
index 5cc2154..18eebfe 100644 (file)
                         */\r
                        #define USB_Host_ResumeBus()               MACROS{ UHCON |=  (1 << SOFEN);          }MACROE \r
 \r
-                       /** Suspends the USB bus, preventing any communications from occuring between the host and attached\r
+                       /** Suspends the USB bus, preventing any communications from occurring between the host and attached\r
                         *  device until the bus has been resumed. This stops the transmission of the 1MS Start Of Frame\r
                         *  messages to the device.\r
                         */\r
                                                                      *   event.\r
                                                                      */\r
                                HOST_ENUMERROR_WaitStage        = 1, /**< One of the delays between enumeration steps failed\r
-                                                                     *   to complete successfuly, due to a timeout or other\r
+                                                                     *   to complete successfully, due to a timeout or other\r
                                                                      *   error.\r
                                                                      */\r
                                HOST_ENUMERROR_NoDeviceDetected = 2, /**< No device was detected, despite the USB data lines\r
                                                                      *   indicating the attachment of a device.\r
                                                                      */\r
                                HOST_ENUMERROR_ControlError     = 3, /**< One of the enumeration control requests failed to\r
-                                                                     *   complete successfuly.\r
+                                                                     *   complete successfully.\r
                                                                                                          */\r
                                HOST_ENUMERROR_PipeConfigError  = 4, /**< The default control pipe (address 0) failed to\r
                                                                      *   configure correctly.\r
                        #define USB_Host_VBUS_Auto_Off()        MACROS{ OTGCON |=  (1 << VBUSRQC);        }MACROE\r
                        #define USB_Host_VBUS_Manual_Off()      MACROS{ PORTE  &= ~(1 << 7);              }MACROE\r
 \r
-                       #define USB_Host_SetDeviceAddress(addr) MACROS{ UHADDR  =  (addr & 0b01111111);   }MACROE\r
+                       #define USB_Host_SetDeviceAddress(addr) MACROS{ UHADDR  =  (addr & 0x7F);         }MACROE\r
 \r
                /* Enums: */\r
                        enum USB_Host_WaitMSErrorCodes_t\r