diff options
author | Christian Pointner <equinox@spreadspace.org> | 2013-02-01 01:13:39 +0000 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2013-02-01 01:13:39 +0000 |
commit | 93ba3defd76ff3dba5194eb4b6798eee8b70fdfb (patch) | |
tree | 6c185908c1b8afb1830db39a653ef6c6bafcb6c6 /lib/lufa-descriptor-rndis.c | |
parent | added inital version of usb ethernet example (diff) |
Manufacturer and Product name now changeable by Makefile
git-svn-id: https://svn.spreadspace.org/avr/trunk@110 aa12f405-d877-488e-9caf-2d797e2a1cc7
Diffstat (limited to 'lib/lufa-descriptor-rndis.c')
-rw-r--r-- | lib/lufa-descriptor-rndis.c | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/lib/lufa-descriptor-rndis.c b/lib/lufa-descriptor-rndis.c index a75bfd5..28ea637 100644 --- a/lib/lufa-descriptor-rndis.c +++ b/lib/lufa-descriptor-rndis.c @@ -191,9 +191,12 @@ const USB_Descriptor_String_t PROGMEM LanguageString = */
const USB_Descriptor_String_t PROGMEM ManufacturerString =
{
- .Header = {.Size = USB_STRING_LEN(11), .Type = DTYPE_String},
-
- .UnicodeString = L"Dean Camera"
+ .Header = {.Size = USB_STRING_LEN(11), .Type = DTYPE_String},
+#ifndef USB_MANUFACTURER
+ .UnicodeString = L"Dean Camera"
+#else
+ .UnicodeString = USB_MANUFACTURER
+#endif
};
/** Product descriptor string. This is a Unicode string containing the product's details in human readable form,
@@ -202,9 +205,12 @@ const USB_Descriptor_String_t PROGMEM ManufacturerString = */
const USB_Descriptor_String_t PROGMEM ProductString =
{
- .Header = {.Size = USB_STRING_LEN(19), .Type = DTYPE_String},
-
- .UnicodeString = L"LUFA RNDIS CDC Demo"
+ .Header = {.Size = USB_STRING_LEN(23), .Type = DTYPE_String},
+#ifndef USB_PRODUCT
+ .UnicodeString = L"LUFA USB-RS232 Adapter"
+#else
+ .UnicodeString = USB_PRODUCT
+#endif
};
/** This function is called by the library when in device mode, and must be overridden (see library "USB Descriptors"
|