Skip to content

Commit

Permalink
Sync with upstream (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
fauxpark committed Jun 12, 2022
1 parent d6df70b commit ce567c9
Show file tree
Hide file tree
Showing 96 changed files with 9,773 additions and 7,974 deletions.
215 changes: 118 additions & 97 deletions Bootloaders/CDC/doxyfile

Large diffs are not rendered by default.

215 changes: 118 additions & 97 deletions Bootloaders/DFU/doxyfile

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions Bootloaders/HID/HostLoaderApp/hid_bootloader_cli.c
Original file line number Diff line number Diff line change
Expand Up @@ -1118,6 +1118,8 @@ static const struct {

// Add duplicates that match friendly Teensy Names
// Match board names in boards.txt
{"TEENSY", 15872, 128},
{"TEENSYPP", 64512, 256},
{"TEENSY2", 32256, 128},
{"TEENSY2PP", 130048, 256},
{"TEENSYLC", 63488, 512},
Expand Down
215 changes: 118 additions & 97 deletions Bootloaders/HID/doxyfile

Large diffs are not rendered by default.

215 changes: 118 additions & 97 deletions Bootloaders/MassStorage/doxyfile

Large diffs are not rendered by default.

215 changes: 118 additions & 97 deletions Bootloaders/Printer/doxyfile

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion BuildTests/BoardDriverTest/BoardDeviceMap.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ BOARD_SPARKFUN8U2 = AVR8 : atmega8u2 :
BOARD_STK525 = AVR8 : at90usb647 :
BOARD_STK526 = AVR8 : at90usb162 :
BOARD_TEENSY = AVR8 : at90usb162 :
BOARD_TEENSY2 = AVR8 : at90usb646 :
BOARD_TEENSYPP = AVR8 : at90usb646 :
BOARD_TEENSY2 = AVR8 : atmega32u4 :
BOARD_TEENSY2PP = AVR8 : at90usb1286 :
BOARD_TUL = AVR8 : atmega32u4 :
BOARD_UDIP = AVR8 : atmega32u2 :
BOARD_UNO = AVR8 : atmega8u2 :
Expand Down
215 changes: 118 additions & 97 deletions Demos/Device/ClassDriver/AudioInput/doxyfile

Large diffs are not rendered by default.

215 changes: 118 additions & 97 deletions Demos/Device/ClassDriver/AudioOutput/doxyfile

Large diffs are not rendered by default.

215 changes: 118 additions & 97 deletions Demos/Device/ClassDriver/CCID/doxyfile

Large diffs are not rendered by default.

215 changes: 118 additions & 97 deletions Demos/Device/ClassDriver/DualMIDI/doxyfile

Large diffs are not rendered by default.

215 changes: 118 additions & 97 deletions Demos/Device/ClassDriver/DualVirtualSerial/doxyfile

Large diffs are not rendered by default.

215 changes: 118 additions & 97 deletions Demos/Device/ClassDriver/GenericHID/doxyfile

Large diffs are not rendered by default.

215 changes: 118 additions & 97 deletions Demos/Device/ClassDriver/Joystick/doxyfile

Large diffs are not rendered by default.

215 changes: 118 additions & 97 deletions Demos/Device/ClassDriver/Keyboard/doxyfile

Large diffs are not rendered by default.

215 changes: 118 additions & 97 deletions Demos/Device/ClassDriver/KeyboardMouse/doxyfile

Large diffs are not rendered by default.

215 changes: 118 additions & 97 deletions Demos/Device/ClassDriver/KeyboardMouseMultiReport/doxyfile

Large diffs are not rendered by default.

215 changes: 118 additions & 97 deletions Demos/Device/ClassDriver/MIDI/doxyfile

Large diffs are not rendered by default.

215 changes: 118 additions & 97 deletions Demos/Device/ClassDriver/MassStorage/doxyfile

Large diffs are not rendered by default.

215 changes: 118 additions & 97 deletions Demos/Device/ClassDriver/MassStorageKeyboard/doxyfile

Large diffs are not rendered by default.

215 changes: 118 additions & 97 deletions Demos/Device/ClassDriver/Mouse/doxyfile

Large diffs are not rendered by default.

215 changes: 118 additions & 97 deletions Demos/Device/ClassDriver/RNDISEthernet/doxyfile

Large diffs are not rendered by default.

215 changes: 118 additions & 97 deletions Demos/Device/ClassDriver/VirtualSerial/doxyfile

Large diffs are not rendered by default.

215 changes: 118 additions & 97 deletions Demos/Device/ClassDriver/VirtualSerialMassStorage/doxyfile

Large diffs are not rendered by default.

215 changes: 118 additions & 97 deletions Demos/Device/ClassDriver/VirtualSerialMouse/doxyfile

Large diffs are not rendered by default.

215 changes: 118 additions & 97 deletions Demos/Device/LowLevel/AudioInput/doxyfile

Large diffs are not rendered by default.

215 changes: 118 additions & 97 deletions Demos/Device/LowLevel/AudioOutput/doxyfile

Large diffs are not rendered by default.

215 changes: 118 additions & 97 deletions Demos/Device/LowLevel/BulkVendor/doxyfile

Large diffs are not rendered by default.

215 changes: 118 additions & 97 deletions Demos/Device/LowLevel/CCID/doxyfile

Large diffs are not rendered by default.

215 changes: 118 additions & 97 deletions Demos/Device/LowLevel/DualVirtualSerial/doxyfile

Large diffs are not rendered by default.

215 changes: 118 additions & 97 deletions Demos/Device/LowLevel/GenericHID/doxyfile

Large diffs are not rendered by default.

215 changes: 118 additions & 97 deletions Demos/Device/LowLevel/Joystick/doxyfile

Large diffs are not rendered by default.

215 changes: 118 additions & 97 deletions Demos/Device/LowLevel/Keyboard/doxyfile

Large diffs are not rendered by default.

215 changes: 118 additions & 97 deletions Demos/Device/LowLevel/KeyboardMouse/doxyfile

Large diffs are not rendered by default.

215 changes: 118 additions & 97 deletions Demos/Device/LowLevel/MIDI/doxyfile

Large diffs are not rendered by default.

215 changes: 118 additions & 97 deletions Demos/Device/LowLevel/MassStorage/doxyfile

Large diffs are not rendered by default.

215 changes: 118 additions & 97 deletions Demos/Device/LowLevel/Mouse/doxyfile

Large diffs are not rendered by default.

215 changes: 118 additions & 97 deletions Demos/Device/LowLevel/RNDISEthernet/doxyfile

Large diffs are not rendered by default.

215 changes: 118 additions & 97 deletions Demos/Device/LowLevel/VirtualSerial/doxyfile

Large diffs are not rendered by default.

215 changes: 118 additions & 97 deletions Demos/DualRole/ClassDriver/MouseHostDevice/doxyfile

Large diffs are not rendered by default.

215 changes: 118 additions & 97 deletions Demos/Host/ClassDriver/AndroidAccessoryHost/doxyfile

Large diffs are not rendered by default.

215 changes: 118 additions & 97 deletions Demos/Host/ClassDriver/AudioInputHost/doxyfile

Large diffs are not rendered by default.

215 changes: 118 additions & 97 deletions Demos/Host/ClassDriver/AudioOutputHost/doxyfile

Large diffs are not rendered by default.

215 changes: 118 additions & 97 deletions Demos/Host/ClassDriver/JoystickHostWithParser/doxyfile

Large diffs are not rendered by default.

215 changes: 118 additions & 97 deletions Demos/Host/ClassDriver/KeyboardHost/doxyfile

Large diffs are not rendered by default.

215 changes: 118 additions & 97 deletions Demos/Host/ClassDriver/KeyboardHostWithParser/doxyfile

Large diffs are not rendered by default.

215 changes: 118 additions & 97 deletions Demos/Host/ClassDriver/MIDIHost/doxyfile

Large diffs are not rendered by default.

215 changes: 118 additions & 97 deletions Demos/Host/ClassDriver/MassStorageHost/doxyfile

Large diffs are not rendered by default.

215 changes: 118 additions & 97 deletions Demos/Host/ClassDriver/MouseHost/doxyfile

Large diffs are not rendered by default.

215 changes: 118 additions & 97 deletions Demos/Host/ClassDriver/MouseHostWithParser/doxyfile

Large diffs are not rendered by default.

215 changes: 118 additions & 97 deletions Demos/Host/ClassDriver/PrinterHost/doxyfile

Large diffs are not rendered by default.

215 changes: 118 additions & 97 deletions Demos/Host/ClassDriver/RNDISEthernetHost/doxyfile

Large diffs are not rendered by default.

215 changes: 118 additions & 97 deletions Demos/Host/ClassDriver/StillImageHost/doxyfile

Large diffs are not rendered by default.

215 changes: 118 additions & 97 deletions Demos/Host/ClassDriver/VirtualSerialHost/doxyfile

Large diffs are not rendered by default.

215 changes: 118 additions & 97 deletions Demos/Host/LowLevel/AndroidAccessoryHost/doxyfile

Large diffs are not rendered by default.

215 changes: 118 additions & 97 deletions Demos/Host/LowLevel/AudioInputHost/doxyfile

Large diffs are not rendered by default.

215 changes: 118 additions & 97 deletions Demos/Host/LowLevel/AudioOutputHost/doxyfile

Large diffs are not rendered by default.

215 changes: 118 additions & 97 deletions Demos/Host/LowLevel/GenericHIDHost/doxyfile

Large diffs are not rendered by default.

215 changes: 118 additions & 97 deletions Demos/Host/LowLevel/JoystickHostWithParser/doxyfile

Large diffs are not rendered by default.

215 changes: 118 additions & 97 deletions Demos/Host/LowLevel/KeyboardHost/doxyfile

Large diffs are not rendered by default.

215 changes: 118 additions & 97 deletions Demos/Host/LowLevel/KeyboardHostWithParser/doxyfile

Large diffs are not rendered by default.

215 changes: 118 additions & 97 deletions Demos/Host/LowLevel/MIDIHost/doxyfile

Large diffs are not rendered by default.

215 changes: 118 additions & 97 deletions Demos/Host/LowLevel/MassStorageHost/doxyfile

Large diffs are not rendered by default.

215 changes: 118 additions & 97 deletions Demos/Host/LowLevel/MouseHost/doxyfile

Large diffs are not rendered by default.

215 changes: 118 additions & 97 deletions Demos/Host/LowLevel/MouseHostWithParser/doxyfile

Large diffs are not rendered by default.

215 changes: 118 additions & 97 deletions Demos/Host/LowLevel/PrinterHost/doxyfile

Large diffs are not rendered by default.

215 changes: 118 additions & 97 deletions Demos/Host/LowLevel/RNDISEthernetHost/doxyfile

Large diffs are not rendered by default.

215 changes: 118 additions & 97 deletions Demos/Host/LowLevel/StillImageHost/doxyfile

Large diffs are not rendered by default.

215 changes: 118 additions & 97 deletions Demos/Host/LowLevel/VirtualSerialHost/doxyfile

Large diffs are not rendered by default.

10 changes: 8 additions & 2 deletions LUFA/Common/BoardTypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -246,8 +246,14 @@
/** Selects the Atmel Xplained-MINI specific board drivers, including the driver for the board LEDs. */
#define BOARD_XPLAINED_MINI 60

/** Selects the QMK specific board drivres, including the driver for the board LEDs. */
#define BOARD_QMK 61
/** Selects the Teensy version 1.x ++ specific board drivers, including the driver for the board LEDs. */
#define BOARD_TEENSYPP 61

/** Selects the Teensy version 2.x ++ specific board drivers, including the driver for the board LEDs. */
#define BOARD_TEENSY2PP 62

/** Selects the QMK specific board drivers, including the driver for the board LEDs. */
#define BOARD_QMK 63

#if !defined(__DOXYGEN__)
#define BOARD_ BOARD_NONE
Expand Down
2 changes: 2 additions & 0 deletions LUFA/DoxygenPages/ChangeLog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@
* - Core:
* - RNDIS_Device_ReadPacket() now takes in an explicit destination buffer length, rather than assuming it is ETHERNET_MAX_FRAME_SIZE in length.
* - RNDIS_Host_ReadPacket() now takes in an explicit destination buffer length, rather than assuming it is ETHERNET_MAX_FRAME_SIZE in length.
* - New board definitions have been added for the Teensy 1.0++ and Teensy 2.0++ board variants (thanks to Osamu Aoki)
* - Library Applications:
* - The hand-rolled TCP/IP stack has been removed from the LowLevel and ClassDriver RNDIS examples, as it is incomplete and should be replaced
* with a proper network stack anyway.
* - AVRISP MKII Clone now checks the device EEPROM for magic values to determine if the stored settings are valid (thanks to Sergey Vlasov)
*
* \section Sec_ChangeLog210130 Version 210130
* <b>New:</b>
Expand Down
1 change: 1 addition & 0 deletions LUFA/DoxygenPages/LUFAPoweredProjects.txt
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@
* \li USB MIDI to DMX controller: http://github.com/hanshuebner/miDiMX
* \li USB Mood Light: https://github.com/hsbp/usb_moodlight
* \li USB powered Geiger Counter: http://uhrheber.wordpress.com/2011/04/28/a-usb-powered-geiger-counter-for-the-z2-and-other-computers/
* \li USB Userport, a USB HID GPIO interface: https://github.com/Zapfenkiller/USB-Userport
* \li Userial, a USB to Serial converter with SPI, I2C and other protocols: http://www.tty1.net/userial/
* \li Wii Classic Controller to USB converter: https://github.com/crazyiop/wii-classic-2-usb
* \li Wireless MIDI Guitar system: http://www.ise.pw.edu.pl/~wzab/wireless_guitar_system/
Expand Down
18 changes: 16 additions & 2 deletions LUFA/Drivers/Board/AVR8/TEENSY/Board.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,18 +36,32 @@
* dispatch header located in LUFA/Drivers/Board/Board.h.
*/

/** \ingroup Group_BoardInfo
* \defgroup Group_BoardInfo_TEENSY2PP TEENSY2PP
* \brief Board specific information header for the PJRC Teensy 2++ boards.
*
* See \ref Group_BoardInfo_TEENSY for more details.
*/

/** \ingroup Group_BoardInfo
* \defgroup Group_BoardInfo_TEENSY2 TEENSY2
* \brief Board specific information header for the PJRC Teensy 2 boards.
*
* See \ref Group_BoardInfo_TEENSY for more details.
*/

/** \ingroup Group_BoardInfo
* \defgroup Group_BoardInfo_TEENSYPP TEENSYPP
* \brief Board specific information header for the PJRC Teensy 1++ boards.
*
* See \ref Group_BoardInfo_TEENSY for more details.
*/

/** \ingroup Group_BoardInfo
* \defgroup Group_BoardInfo_TEENSY TEENSY
* \brief Board specific information header for the PJRC Teensy 1.x/2.x boards.
* \brief Board specific information header for the PJRC Teensy 1 boards.
*
* Board specific information header for the PJRC Teensy boards (http://www.pjrc.com/teensy/index.html).
* Board specific information header for the PJRC Teensy 1, 1++, 2, 2++ boards (http://www.pjrc.com/teensy/index.html).
*
* @{
*/
Expand Down
36 changes: 28 additions & 8 deletions LUFA/Drivers/Board/AVR8/TEENSY/LEDs.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,28 +36,48 @@
* dispatch header located in LUFA/Drivers/Board/LEDs.h.
*/

/** \ingroup Group_LEDs
* \defgroup Group_LEDs_TEENSY2PP TEENSY2PP
* \brief Board specific LED driver header for the PJRC Teensy 2 ++ boards.
*
* See \ref Group_LEDs_TEENSY for more details.
*/

/** \ingroup Group_LEDs
* \defgroup Group_LEDs_TEENSY2 TEENSY2
* \brief Board specific LED driver header for the PJRC Teensy 2 boards.
*
* See \ref Group_LEDs_TEENSY for more details.
*/

/** \ingroup Group_LEDs
* \defgroup Group_LEDs_TEENSYPP TEENSYPP
* \brief Board specific LED driver header for the PJRC Teensy 1 ++ boards.
*
* See \ref Group_LEDs_TEENSY for more details.
*/

/** \ingroup Group_LEDs
* \defgroup Group_LEDs_TEENSY TEENSY
* \brief Board specific LED driver header for the PJRC Teensy 1.x/2.x boards.
*
* \note For version 2 ++ Teensy boards, compile with <code>BOARD = TEENSY2PP</code>.
*
* \note For version 2 Teensy boards, compile with <code>BOARD = TEENSY2</code>.
*
* \note For version 1 ++ Teensy boards, compile with <code>BOARD = TEENSYPP</code>.
*
* \note For version 1 Teensy boards, compile with <code>BOARD = TEENSY</code>.
*
* Board specific LED driver header for the PJRC Teensy boards (http://www.pjrc.com/teensy/index.html).
*
* <b>TEENSY</b>:
* <b>TEENSY</b>, <b>TEENSYPP</b>:
* <table>
* <tr><th>Name</th><th>Color</th><th>Info</th><th>Active Level</th><th>Port Pin</th></tr>
* <tr><td>LEDS_LED1</td><td>Green</td><td>General Indicator</td><td>High</td><td>PORTD.6</td></tr>
* </table>
*
* <b>TEENSY2</b>:
* <b>TEENSY2</b>, <b>TEENSY2PP</b>:
* <table>
* <tr><th>Name</th><th>Color</th><th>Info</th><th>Active Level</th><th>Port Pin</th></tr>
* <tr><td>LEDS_LED1</td><td>Green</td><td>General Indicator</td><td>Low</td><td>PORTD.6</td></tr>
Expand Down Expand Up @@ -99,7 +119,7 @@
{
DDRD |= LEDS_ALL_LEDS;

#if (BOARD == BOARD_TEENSY2)
#if (BOARD == BOARD_TEENSY2) || (BOARD == BOARD_TEENSY2PP)
PORTD &= ~LEDS_ALL_LEDS;
#else
PORTD |= LEDS_ALL_LEDS;
Expand All @@ -114,7 +134,7 @@

static inline void LEDs_TurnOnLEDs(const uint8_t LEDMask)
{
#if (BOARD == BOARD_TEENSY2)
#if (BOARD == BOARD_TEENSY2) || (BOARD == BOARD_TEENSY2PP)
PORTD |= LEDMask;
#else
PORTD &= ~LEDMask;
Expand All @@ -123,7 +143,7 @@

static inline void LEDs_TurnOffLEDs(const uint8_t LEDMask)
{
#if (BOARD == BOARD_TEENSY2)
#if (BOARD == BOARD_TEENSY2) || (BOARD == BOARD_TEENSY2PP)
PORTD &= ~LEDMask;
#else
PORTD |= LEDMask;
Expand All @@ -132,7 +152,7 @@

static inline void LEDs_SetAllLEDs(const uint8_t LEDMask)
{
#if (BOARD == BOARD_TEENSY2)
#if (BOARD == BOARD_TEENSY2) || (BOARD == BOARD_TEENSY2PP)
PORTD = ((PORTD & ~LEDS_ALL_LEDS) | LEDMask);
#else
PORTD = ((PORTD | LEDS_ALL_LEDS) & ~LEDMask);
Expand All @@ -142,7 +162,7 @@
static inline void LEDs_ChangeLEDs(const uint8_t LEDMask,
const uint8_t ActiveMask)
{
#if (BOARD == BOARD_TEENSY2)
#if (BOARD == BOARD_TEENSY2) || (BOARD == BOARD_TEENSY2PP)
PORTD = ((PORTD & ~LEDMask) | ActiveMask);
#else
PORTD = ((PORTD | LEDMask) & ~ActiveMask);
Expand All @@ -157,7 +177,7 @@
static inline uint8_t LEDs_GetLEDs(void) ATTR_WARN_UNUSED_RESULT;
static inline uint8_t LEDs_GetLEDs(void)
{
#if (BOARD == BOARD_TEENSY2)
#if (BOARD == BOARD_TEENSY2) || (BOARD == BOARD_TEENSY2PP)
return (PORTD & LEDS_ALL_LEDS);
#else
return (~PORTD & LEDS_ALL_LEDS);
Expand Down
3 changes: 2 additions & 1 deletion LUFA/Drivers/Board/Board.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@
#include "AVR8/BUMBLEB/Board.h"
#elif (BOARD == BOARD_EVK527)
#include "AVR8/EVK527/Board.h"
#elif ((BOARD == BOARD_TEENSY) || (BOARD == BOARD_TEENSY2))
#elif ((BOARD == BOARD_TEENSY) || (BOARD == BOARD_TEENSYPP)) || \
((BOARD == BOARD_TEENSY2) || (BOARD == BOARD_TEENSY2PP))
#include "AVR8/TEENSY/Board.h"
#elif ((BOARD == BOARD_QMK))
#include "AVR8/QMK/Board.h"
Expand Down
3 changes: 2 additions & 1 deletion LUFA/Drivers/Board/LEDs.h
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,8 @@
#include "AVR8/BUMBLEB/LEDs.h"
#elif (BOARD == BOARD_EVK527)
#include "AVR8/EVK527/LEDs.h"
#elif ((BOARD == BOARD_TEENSY) || (BOARD == BOARD_TEENSY2))
#elif ((BOARD == BOARD_TEENSY) || (BOARD == BOARD_TEENSYPP)) || \
((BOARD == BOARD_TEENSY2) || (BOARD == BOARD_TEENSY2PP))
#include "AVR8/TEENSY/LEDs.h"
#elif ((BOARD == BOARD_QMK))
#include "AVR8/QMK/LEDs.h"
Expand Down
2 changes: 1 addition & 1 deletion LUFA/Drivers/USB/Class/Device/RNDISClassDevice.c
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ void RNDIS_Device_ProcessControlRequest(USB_ClassInfo_RNDIS_Device_t* const RNDI
case RNDIS_REQ_SendEncapsulatedCommand:
if (USB_ControlRequest.bmRequestType == (REQDIR_HOSTTODEVICE | REQTYPE_CLASS | REQREC_INTERFACE))
{
if (USB_ControlRequest.wLength >= sizeof(RNDISInterfaceInfo->Config.MessageBuffer))
if (USB_ControlRequest.wLength > RNDISInterfaceInfo->Config.MessageBufferLength)
break;

Endpoint_ClearSETUP();
Expand Down
4 changes: 2 additions & 2 deletions LUFA/Version.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@
#define LUFA_VERSION_RELEASE_TYPE_FULL 2
/**@}*/

/** Indicates the version number of the library, as an integer. \note This value is only updates in non-development releases. */
/** Indicates the version number of the library, as an integer. \note This value is only updated in non-development releases. */
#define LUFA_VERSION_INTEGER 0x210130

/** Indicates the version number of the library, as a string. \note This value is only updates in non-development releases. */
/** Indicates the version number of the library, as a string. \note This value is only updated in non-development releases. */
#define LUFA_VERSION_STRING "210130"

/** Indicates the release type of the library. */
Expand Down
Loading

0 comments on commit ce567c9

Please sign in to comment.