Fix missing C++ linkage command in ArchitectureSpecific.h.
authorDean Camera <dean@fourwalledcubicle.com>
Wed, 21 Sep 2011 23:40:05 +0000 (23:40 +0000)
committerDean Camera <dean@fourwalledcubicle.com>
Wed, 21 Sep 2011 23:40:05 +0000 (23:40 +0000)
Fix missing closing brace in an Endpoint function for the UC3 targets.

Demos/Device/ClassDriver/Keyboard/Keyboard.c
LUFA/Common/ArchitectureSpecific.h
LUFA/Drivers/USB/Core/UC3/Endpoint_UC3.h
LUFA/ManPages/LUFAPoweredProjects.txt

index 302f451..efa6ad0 100644 (file)
@@ -139,8 +139,11 @@ void EVENT_USB_Device_StartOfFrame(void)
  *
  *  \return Boolean true to force the sending of the report, false to let the library determine if it needs to be sent
  */
  *
  *  \return Boolean true to force the sending of the report, false to let the library determine if it needs to be sent
  */
-bool CALLBACK_HID_Device_CreateHIDReport(USB_ClassInfo_HID_Device_t* const HIDInterfaceInfo, uint8_t* const ReportID,
-                                         const uint8_t ReportType, void* ReportData, uint16_t* const ReportSize)
+bool CALLBACK_HID_Device_CreateHIDReport(USB_ClassInfo_HID_Device_t* const HIDInterfaceInfo,
+                                         uint8_t* const ReportID,
+                                         const uint8_t ReportType,
+                                         void* ReportData,
+                                         uint16_t* const ReportSize)
 {
        USB_KeyboardReport_Data_t* KeyboardReport = (USB_KeyboardReport_Data_t*)ReportData;
 
 {
        USB_KeyboardReport_Data_t* KeyboardReport = (USB_KeyboardReport_Data_t*)ReportData;
 
index 3920cb9..502723f 100644 (file)
                        #error Do not include this file directly. Include LUFA/Common/Common.h instead to gain this functionality.\r
                #endif\r
                \r
                        #error Do not include this file directly. Include LUFA/Common/Common.h instead to gain this functionality.\r
                #endif\r
                \r
+       /* Enable C linkage for C++ Compilers: */\r
+               #if defined(__cplusplus)\r
+                       extern "C" {\r
+               #endif\r
+\r
        /* Public Interface - May be used in end-application: */\r
                /* Macros: */\r
                        #if (ARCH == ARCH_AVR8) || defined(__DOXYGEN__)\r
        /* Public Interface - May be used in end-application: */\r
                /* Macros: */\r
                        #if (ARCH == ARCH_AVR8) || defined(__DOXYGEN__)\r
index eefd9cf..d38df8b 100644 (file)
                                                                               ((uint32_t)Type      << AVR32_USBB_EPTYPE_OFFSET) | 
                                                                               ((uint32_t)(Direction ? AVR32_USBB_UECFG0_EPDIR_MASK : 0) |
                                                                               ((uint32_t)Banks     << AVR32_USBB_EPBK_OFFSET)   |
                                                                               ((uint32_t)Type      << AVR32_USBB_EPTYPE_OFFSET) | 
                                                                               ((uint32_t)(Direction ? AVR32_USBB_UECFG0_EPDIR_MASK : 0) |
                                                                               ((uint32_t)Banks     << AVR32_USBB_EPBK_OFFSET)   |
-                                                                              Endpoint_BytesToEPSizeMask(Size)));
+                                                                              Endpoint_BytesToEPSizeMask(Size))));
                        }
 
                        /** Indicates the number of bytes currently stored in the current endpoint's selected bank.
                        }
 
                        /** Indicates the number of bytes currently stored in the current endpoint's selected bank.
index a46e2c6..2a5ff2a 100644 (file)
@@ -37,6 +37,7 @@
  *
  *  - Accelerometer Game Joystick: http://www.crictor.co.il/he/episodes/joystick/
  *  - Arcade Controller: http://fletchtronics.net/arcade-controller-made-petunia
  *
  *  - Accelerometer Game Joystick: http://www.crictor.co.il/he/episodes/joystick/
  *  - Arcade Controller: http://fletchtronics.net/arcade-controller-made-petunia
+ *  - Arcade Joystick: http://jamie.lentin.co.uk/embedded/arcade-joystick/
  *  - AVR USB Modem, a 3G Wireless Modem host: http://code.google.com/p/avrusbmodem/
  *  - Bicycle POV: http://www.code.google.com/p/bicycleledpov/
  *  - Bluetooth Explorerbot: http://code.google.com/p/bluetooth-explorerbot/
  *  - AVR USB Modem, a 3G Wireless Modem host: http://code.google.com/p/avrusbmodem/
  *  - Bicycle POV: http://www.code.google.com/p/bicycleledpov/
  *  - Bluetooth Explorerbot: http://code.google.com/p/bluetooth-explorerbot/
@@ -85,6 +86,7 @@
  *  - SDR1, a Software Defined Radio firmware: https://code.google.com/p/sdr-mk1/
  *  - SEGA Megadrive/Genesis Development Cartridge: http://www.makestuff.eu/wordpress/?page_id=398
  *  - Serial Line bus analyser: http://www.pjrc.com/teensy/projects/SerialAnalyzer.html
  *  - SDR1, a Software Defined Radio firmware: https://code.google.com/p/sdr-mk1/
  *  - SEGA Megadrive/Genesis Development Cartridge: http://www.makestuff.eu/wordpress/?page_id=398
  *  - Serial Line bus analyser: http://www.pjrc.com/teensy/projects/SerialAnalyzer.html
+ *  - Smartcard Detective: https://code.google.com/p/smartcarddetective/
  *  - SmartportVHD Apple II Mass Storage adapter: http://pcedric3.free.fr/SmartportVHD/
  *  - Single LED Matrix Display: http://guysoft.wordpress.com/2009/10/08/bumble-b/
  *  - Stripe Snoop, a Magnetic Card reader: http://www.ossguy.com/ss_usb/
  *  - SmartportVHD Apple II Mass Storage adapter: http://pcedric3.free.fr/SmartportVHD/
  *  - Single LED Matrix Display: http://guysoft.wordpress.com/2009/10/08/bumble-b/
  *  - Stripe Snoop, a Magnetic Card reader: http://www.ossguy.com/ss_usb/