Merge pull request #8 from mondalaci/extract-interface-numbers
authorDean Camera <dean@fourwalledcubicle.com>
Sun, 6 Oct 2013 20:22:23 +0000 (13:22 -0700)
committerDean Camera <dean@fourwalledcubicle.com>
Sun, 6 Oct 2013 20:22:23 +0000 (13:22 -0700)
Extract interface numbers into enums.

Bootloaders/CDC/BootloaderCDC.c
LUFA/Build/lufa_build.mk
LUFA/Build/lufa_cppcheck.mk
LUFA/Drivers/USB/Class/Device/HIDClassDevice.h
LUFA/Drivers/USB/Class/Host/HIDClassHost.h

index 74e4066..5f1047e 100644 (file)
@@ -236,9 +236,9 @@ void EVENT_USB_Device_ControlRequest(void)
 
 #if !defined(NO_BLOCK_SUPPORT)
 /** Reads or writes a block of EEPROM or FLASH memory to or from the appropriate CDC data endpoint, depending
- *  on the AVR910 protocol command issued.
+ *  on the AVR109 protocol command issued.
  *
- *  \param[in] Command  Single character AVR910 protocol command indicating what memory operation to perform
+ *  \param[in] Command  Single character AVR109 protocol command indicating what memory operation to perform
  */
 static void ReadWriteMemoryBlock(const uint8_t Command)
 {
@@ -402,7 +402,7 @@ static void WriteNextResponseByte(const uint8_t Response)
        Endpoint_Write_8(Response);
 }
 
-/** Task to read in AVR910 commands from the CDC data OUT endpoint, process them, perform the required actions
+/** Task to read in AVR109 commands from the CDC data OUT endpoint, process them, perform the required actions
  *  and send the appropriate response back to the host.
  */
 static void CDC_Task(void)
index 8284010..a1a130e 100644 (file)
@@ -31,9 +31,9 @@ LUFA_BUILD_PROVIDED_MACROS +=
 #    bin                       - Build application BIN binary object file
 #    hex                       - Build application HEX object file
 #    lss                       - Build application LSS assembly listing file
-#    clean                     - Remove all project intermediatary and binary
+#    clean                     - Remove all project intermediary and binary
 #                                output files
-#    mostlyclean               - Remove intermediatary output files, but
+#    mostlyclean               - Remove intermediary output files, but
 #                                preserve binaries
 #    <filename>.s              - Compile C/C++ source file into an assembly file
 #                                for manual code inspection
index 017b852..faf6697 100644 (file)
@@ -11,15 +11,16 @@ LUFA_BUILD_TARGETS         += cppcheck cppcheck-config
 LUFA_BUILD_MANDATORY_VARS  += SRC
 LUFA_BUILD_OPTIONAL_VARS   += CPPCHECK_INCLUDES CPPCHECK_EXCLUDES CPPCHECK_MSG_TEMPLATE CPPCHECK_ENABLE \
                               CPPCHECK_SUPPRESS CPPCHECK_FAIL_ON_WARNING CPPCHECK_QUIET CPPCHECK_FLAGS
-LUFA_BUILD_PROVIDED_VARS   += 
-LUFA_BUILD_PROVIDED_MACROS += 
+LUFA_BUILD_PROVIDED_VARS   +=
+LUFA_BUILD_PROVIDED_MACROS +=
 
 # -----------------------------------------------------------------------------
 #                LUFA CPPCheck Buildsystem Makefile Module.
 # -----------------------------------------------------------------------------
 # DESCRIPTION:
 #   Provides a set of targets to scan a project with the free "cppcheck" static
-#   analysis tool, to check for code errors at runtime (see http://cppcheck.sourceforge.net).
+#   analysis tool, to check for code errors at runtime
+#   (see http://cppcheck.sourceforge.net).
 # -----------------------------------------------------------------------------
 # TARGETS:
 #
@@ -68,7 +69,7 @@ CPPCHECK_ENABLE              ?= all
 CPPCHECK_SUPPRESS            ?= variableScope missingInclude
 CPPCHECK_FAIL_ON_WARNING     ?= Y
 CPPCHECK_QUIET               ?= Y
-CPPCHECK_FLAGS               ?= 
+CPPCHECK_FLAGS               ?=
 
 # Sanity check user supplied values
 $(foreach MANDATORY_VAR, $(LUFA_BUILD_MANDATORY_VARS), $(call ERROR_IF_UNSET, $(MANDATORY_VAR)))
index 2915c91..b5fe3a1 100644 (file)
                                                                      *  stored by the driver, for comparison purposes to detect report changes that
                                                                      *  must be sent immediately to the host. This should point to a buffer big enough
                                                                      *  to hold the largest HID input report sent from the HID interface. If this is set
-                                                                                                 *  to \c NULL, it is up to the user to force transfers when needed in the
-                                                                                                 *  \ref CALLBACK_HID_Device_CreateHIDReport() callback function.
-                                                                                                 *
-                                                                                                 *  \note Due to the single buffer, the internal driver can only correctly compare
-                                                                                                 *        subsequent reports with identical report IDs. In multiple report devices,
-                                                                                                 *        this buffer should be set to \c NULL and the decision to send reports made
-                                                                                                 *        by the user application instead.
+                                                                     *  to \c NULL, it is up to the user to force transfers when needed in the
+                                                                     *  \ref CALLBACK_HID_Device_CreateHIDReport() callback function.
+                                                                     *
+                                                                     *  \note Due to the single buffer, the internal driver can only correctly compare
+                                                                     *        subsequent reports with identical report IDs. In multiple report devices,
+                                                                     *        this buffer should be set to \c NULL and the decision to send reports made
+                                                                     *        by the user application instead.
                                                                      */
                                        uint8_t  PrevReportINBufferSize; /**< Size in bytes of the given input report buffer. This is used to create a
                                                                          *  second buffer of the same size within the driver so that subsequent reports
index 965ac36..2e560e7 100644 (file)
@@ -93,7 +93,7 @@
                                        #if !defined(HID_HOST_BOOT_PROTOCOL_ONLY)
                                        HID_ReportInfo_t* HIDParserData; /**< HID parser data to store the parsed HID report data, when boot protocol
                                                                          *   is not used.
-                                                                                                         *
+                                                                         *
                                                                          *  \note When the \c HID_HOST_BOOT_PROTOCOL_ONLY compile time token is defined,
                                                                          *        this field is unavailable.
                                                                          */
 
                                        uint8_t LargestReportSize; /**< Largest report the device will send, in bytes. */
                                } State; /**< State data for the USB class interface within the device. All elements in this section
-                                                 *   <b>may</b> be set to initial values, but may also be ignored to default to sane values when
-                                                 *   the interface is enumerated.
-                                                 */
+                                         *   <b>may</b> be set to initial values, but may also be ignored to default to sane values when
+                                         *   the interface is enumerated.
+                                         */
                        } USB_ClassInfo_HID_Host_t;
 
                /* Enums: */