forked from mirror/qmk_firmware
Merge branch 'master' into dmbs
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
/*
|
||||
LUFA Library
|
||||
Copyright (C) Dean Camera, 2015.
|
||||
Copyright (C) Dean Camera, 2016.
|
||||
|
||||
dean [at] fourwalledcubicle [dot] com
|
||||
www.lufa-lib.org
|
||||
*/
|
||||
|
||||
/*
|
||||
Copyright 2015 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
||||
Copyright 2016 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
||||
|
||||
Permission to use, copy, modify, distribute, and sell this
|
||||
software and its documentation for any purpose is hereby granted
|
||||
@@ -59,8 +59,6 @@
|
||||
// #define XCK_RESCUE_CLOCK_ENABLE
|
||||
// #define INVERTED_ISP_MISO
|
||||
|
||||
// #define LIBUSB_DRIVER_COMPAT
|
||||
// #define RESET_TOGGLES_LIBUSB_COMPAT
|
||||
// #define FIRMWARE_VERSION_MINOR 0x11
|
||||
|
||||
#endif
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
/*
|
||||
LUFA Library
|
||||
Copyright (C) Dean Camera, 2015.
|
||||
Copyright (C) Dean Camera, 2016.
|
||||
|
||||
dean [at] fourwalledcubicle [dot] com
|
||||
www.lufa-lib.org
|
||||
*/
|
||||
|
||||
/*
|
||||
Copyright 2015 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
||||
Copyright 2016 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
||||
|
||||
Permission to use, copy, modify, distribute, and sell this
|
||||
software and its documentation for any purpose is hereby granted
|
||||
@@ -67,7 +67,7 @@
|
||||
|
||||
/* USB Device Mode Driver Related Tokens: */
|
||||
// #define USE_RAM_DESCRIPTORS
|
||||
// #define USE_FLASH_DESCRIPTORS
|
||||
#define USE_FLASH_DESCRIPTORS
|
||||
// #define USE_EEPROM_DESCRIPTORS
|
||||
// #define NO_INTERNAL_SERIAL
|
||||
#define FIXED_CONTROL_ENDPOINT_SIZE 16
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
LUFA Library
|
||||
Copyright (C) Dean Camera, 2015.
|
||||
Copyright (C) Dean Camera, 2016.
|
||||
|
||||
dean [at] fourwalledcubicle [dot] com
|
||||
www.lufa-lib.org
|
||||
@@ -9,7 +9,7 @@
|
||||
/*
|
||||
Copyright 2010 David Prentice (david.prentice [at] farming [dot] uk)
|
||||
Copyright 2010 Peter Danneger
|
||||
Copyright 2015 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
||||
Copyright 2016 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
||||
|
||||
Permission to use, copy, modify, distribute, and sell this
|
||||
software and its documentation for any purpose is hereby granted
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
LUFA Library
|
||||
Copyright (C) Dean Camera, 2015.
|
||||
Copyright (C) Dean Camera, 2016.
|
||||
|
||||
dean [at] fourwalledcubicle [dot] com
|
||||
www.lufa-lib.org
|
||||
@@ -9,7 +9,7 @@
|
||||
/*
|
||||
Copyright 2010 David Prentice (david.prentice [at] farming [dot] uk)
|
||||
Copyright 2010 Peter Danneger
|
||||
Copyright 2015 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
||||
Copyright 2016 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
||||
|
||||
Permission to use, copy, modify, distribute, and sell this
|
||||
software and its documentation for any purpose is hereby granted
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
/*
|
||||
LUFA Library
|
||||
Copyright (C) Dean Camera, 2015.
|
||||
Copyright (C) Dean Camera, 2016.
|
||||
|
||||
dean [at] fourwalledcubicle [dot] com
|
||||
www.lufa-lib.org
|
||||
*/
|
||||
|
||||
/*
|
||||
Copyright 2015 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
||||
Copyright 2016 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
||||
|
||||
Permission to use, copy, modify, distribute, and sell this
|
||||
software and its documentation for any purpose is hereby granted
|
||||
@@ -198,8 +198,7 @@ const USB_Descriptor_String_t PROGMEM USART_ProductString = USB_STRING_DESCRIPTO
|
||||
*/
|
||||
uint16_t USART_GetDescriptor(const uint16_t wValue,
|
||||
const uint16_t wIndex,
|
||||
const void** const DescriptorAddress,
|
||||
uint8_t* const DescriptorMemorySpace)
|
||||
const void** const DescriptorAddress)
|
||||
{
|
||||
const uint8_t DescriptorType = (wValue >> 8);
|
||||
const uint8_t DescriptorNumber = (wValue & 0xFF);
|
||||
@@ -207,8 +206,6 @@ uint16_t USART_GetDescriptor(const uint16_t wValue,
|
||||
const void* Address = NULL;
|
||||
uint16_t Size = NO_DESCRIPTOR;
|
||||
|
||||
*DescriptorMemorySpace = MEMSPACE_FLASH;
|
||||
|
||||
switch (DescriptorType)
|
||||
{
|
||||
case DTYPE_Device:
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
/*
|
||||
LUFA Library
|
||||
Copyright (C) Dean Camera, 2015.
|
||||
Copyright (C) Dean Camera, 2016.
|
||||
|
||||
dean [at] fourwalledcubicle [dot] com
|
||||
www.lufa-lib.org
|
||||
*/
|
||||
|
||||
/*
|
||||
Copyright 2015 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
||||
Copyright 2016 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
||||
|
||||
Permission to use, copy, modify, distribute, and sell this
|
||||
software and its documentation for any purpose is hereby granted
|
||||
@@ -105,8 +105,7 @@
|
||||
/* Function Prototypes: */
|
||||
uint16_t USART_GetDescriptor(const uint16_t wValue,
|
||||
const uint16_t wIndex,
|
||||
const void** const DescriptorAddress,
|
||||
uint8_t* const DescriptorMemorySpace);
|
||||
const void** const DescriptorAddress);
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
/*
|
||||
LUFA Library
|
||||
Copyright (C) Dean Camera, 2015.
|
||||
Copyright (C) Dean Camera, 2016.
|
||||
|
||||
dean [at] fourwalledcubicle [dot] com
|
||||
www.lufa-lib.org
|
||||
*/
|
||||
|
||||
/*
|
||||
Copyright 2015 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
||||
Copyright 2016 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
||||
|
||||
Permission to use, copy, modify, distribute, and sell this
|
||||
software and its documentation for any purpose is hereby granted
|
||||
@@ -276,19 +276,17 @@ void EVENT_CDC_Device_LineEncodingChanged(USB_ClassInfo_CDC_Device_t* const CDCI
|
||||
* \param[in] wValue Descriptor type and index to retrieve
|
||||
* \param[in] wIndex Sub-index to retrieve (such as a localized string language)
|
||||
* \param[out] DescriptorAddress Address of the retrieved descriptor
|
||||
* \param[out] DescriptorMemorySpace Memory space that the descriptor is stored in
|
||||
*
|
||||
* \return Length of the retrieved descriptor in bytes, or NO_DESCRIPTOR if the descriptor was not found
|
||||
*/
|
||||
uint16_t CALLBACK_USB_GetDescriptor(const uint16_t wValue,
|
||||
const uint16_t wIndex,
|
||||
const void** const DescriptorAddress,
|
||||
uint8_t* const DescriptorMemorySpace)
|
||||
const void** const DescriptorAddress)
|
||||
{
|
||||
/* Return the correct descriptors based on the selected mode */
|
||||
if (CurrentFirmwareMode == MODE_USART_BRIDGE)
|
||||
return USART_GetDescriptor(wValue, wIndex, DescriptorAddress, DescriptorMemorySpace);
|
||||
return USART_GetDescriptor(wValue, wIndex, DescriptorAddress);
|
||||
else
|
||||
return AVRISP_GetDescriptor(wValue, wIndex, DescriptorAddress, DescriptorMemorySpace);
|
||||
return AVRISP_GetDescriptor(wValue, wIndex, DescriptorAddress);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
/*
|
||||
LUFA Library
|
||||
Copyright (C) Dean Camera, 2015.
|
||||
Copyright (C) Dean Camera, 2016.
|
||||
|
||||
dean [at] fourwalledcubicle [dot] com
|
||||
www.lufa-lib.org
|
||||
*/
|
||||
|
||||
/*
|
||||
Copyright 2015 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
||||
Copyright 2016 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
||||
|
||||
Permission to use, copy, modify, distribute, and sell this
|
||||
software and its documentation for any purpose is hereby granted
|
||||
@@ -96,9 +96,8 @@
|
||||
|
||||
uint16_t CALLBACK_USB_GetDescriptor(const uint16_t wValue,
|
||||
const uint16_t wIndex,
|
||||
const void** const DescriptorAddress,
|
||||
uint8_t* const DescriptorMemorySpace)
|
||||
ATTR_WARN_UNUSED_RESULT ATTR_NON_NULL_PTR_ARG(3) ATTR_NON_NULL_PTR_ARG(4);
|
||||
const void** const DescriptorAddress)
|
||||
ATTR_WARN_UNUSED_RESULT ATTR_NON_NULL_PTR_ARG(3);
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
@@ -79,26 +79,6 @@
|
||||
* <th><b>Description:</b></th>
|
||||
* </tr>
|
||||
* <tr>
|
||||
* <td>LIBUSB_DRIVER_COMPAT</td>
|
||||
* <td>AppConfig.h</td>
|
||||
* <td>Define to switch to a non-standard endpoint scheme, breaking compatibility with AVRStudio under Windows but making
|
||||
* the code compatible with software such as avrdude (all platforms) that use the libUSB driver.
|
||||
*
|
||||
* \note This option is incompatible with \c RESET_TOGGLES_LIBUSB_COMPAT.</td>
|
||||
* </tr>
|
||||
* <tr>
|
||||
* <td>RESET_TOGGLES_LIBUSB_COMPAT</td>
|
||||
* <td>Makefile LUFA_OPTS</td>
|
||||
* <td>Define to make the /RESET line of the AVR toggle between Jungo and libUSB driver compatibility modes. Each time the AVR is
|
||||
* reset externally via the reset pin, the compatibility mode will be toggled. The compatibility mode is preserved between
|
||||
* power cycles and is not toggled via other forms of reset such as Watchdog or Brown Out.
|
||||
*
|
||||
* When this option is enabled, all board LEDs will flash twice on startup for Jungo compatibility mode, and five times for
|
||||
* libUSB compatibility mode.
|
||||
*
|
||||
* \note This option is incompatible with \c LIBUSB_DRIVER_COMPAT.</td>
|
||||
* </tr>
|
||||
* <tr>
|
||||
* <td>FIRMWARE_VERSION_MINOR</td>
|
||||
* <td>AppConfig.h</td>
|
||||
* <td>Define to set the minor firmware revision nunber reported to the host on request. By default this will use a firmware version compatible
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#
|
||||
# LUFA Library
|
||||
# Copyright (C) Dean Camera, 2015.
|
||||
# Copyright (C) Dean Camera, 2016.
|
||||
#
|
||||
# dean [at] fourwalledcubicle [dot] com
|
||||
# www.lufa-lib.org
|
||||
|
||||
Reference in New Issue
Block a user