diff options
author | Drashna Jaelre <drashna@live.com> | 2019-07-03 07:36:03 -0700 |
---|---|---|
committer | Drashna Jaelre <drashna@live.com> | 2019-07-03 07:55:32 -0700 |
commit | a5e62ff2517e4add49ec67c1844b93e38144ea31 (patch) | |
tree | d5e7391286399f96b97d5ad196c01ecb32728395 /Bootloaders/DFU/Descriptors.c | |
parent | 110622eaa2787cc54818083d4243653b088e5b5a (diff) | |
download | lufa-a5e62ff2517e4add49ec67c1844b93e38144ea31.tar.gz lufa-a5e62ff2517e4add49ec67c1844b93e38144ea31.tar.bz2 lufa-a5e62ff2517e4add49ec67c1844b93e38144ea31.zip |
QMK Lufa Bootloader Generation (qmk#2009)
This re-implements the code changes into QMK's LUFA repo
Diffstat (limited to 'Bootloaders/DFU/Descriptors.c')
-rw-r--r-- | Bootloaders/DFU/Descriptors.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/Bootloaders/DFU/Descriptors.c b/Bootloaders/DFU/Descriptors.c index 37c36dcc3..dcad11d6c 100644 --- a/Bootloaders/DFU/Descriptors.c +++ b/Bootloaders/DFU/Descriptors.c @@ -36,6 +36,14 @@ */ #include "Descriptors.h" +#include "Keyboard.h" + + #ifndef MANUFACTURER + #define MANUFACTURER QMK +#endif +#ifndef PRODUCT + #define PRODUCT Keyboard +#endif /** Device descriptor structure. This descriptor, located in SRAM memory, describes the overall * device characteristics, including the supported USB version, control endpoint size and the @@ -125,13 +133,13 @@ const USB_Descriptor_String_t LanguageString = USB_STRING_DESCRIPTOR_ARRAY(LANGU * form, and is read out upon request by the host when the appropriate string ID is requested, listed in the Device * Descriptor. */ -const USB_Descriptor_String_t ManufacturerString = USB_STRING_DESCRIPTOR(L"QMK"); +const USB_Descriptor_String_t ManufacturerString = USB_STRING_DESCRIPTOR(LSTR(MANUFACTURER)); /** Product descriptor string. This is a Unicode string containing the product's details in human readable form, * and is read out upon request by the host when the appropriate string ID is requested, listed in the Device * Descriptor. */ -const USB_Descriptor_String_t ProductString = USB_STRING_DESCRIPTOR(L"KB"); +const USB_Descriptor_String_t ProductString = USB_STRING_DESCRIPTOR(LSTR(PRODUCT)); /** This function is called by the library when in device mode, and must be overridden (see library "USB Descriptors" * documentation) by the application code so that the address and size of a requested descriptor can be given |