mirror of
https://github.com/raphnet/gc_n64_usb-v3
synced 2024-11-16 06:05:00 -05:00
c7e8dc7ad4
Store the device string in 8 bit and in program memory. Also reduce the size of a few variables.
22 lines
402 B
C
22 lines
402 B
C
#ifndef _usbstrings_h__
|
|
#define _usbstrings_h__
|
|
|
|
#include <avr/pgmspace.h>
|
|
|
|
extern const wchar_t *g_usb_strings[];
|
|
|
|
/* Sample: "Dual Gamecube to USB v3.4" (25) */
|
|
#define PRODUCT_STRING_MAXCHARS 32
|
|
|
|
#define NUM_USB_STRINGS 3
|
|
|
|
/* Array indexes (i.e. zero-based0 */
|
|
#define USB_STRING_SERIAL_IDX 2
|
|
|
|
/**
|
|
* \param str Must be in PROGMEM
|
|
*/
|
|
void usbstrings_changeProductString_P(const char *str);
|
|
|
|
#endif
|