change product name, include version string
This commit is contained in:
parent
a6446e67bc
commit
d23bf0a144
@ -65,6 +65,13 @@
|
||||
#define SKIP_BUTTON_CHECK_WITH_DELAY 0
|
||||
#define SKIP_BUTTON_CHECK_FAST 1
|
||||
|
||||
|
||||
#define BOOT_VERSION_MAJ 1
|
||||
#define BOOT_VERSION_MIN 0
|
||||
#define __STR_HELPER(x) #x
|
||||
#define __STR(x) __STR_HELPER(x)
|
||||
#define SOLO_PRODUCT_NAME "Solo Bootloader " __STR(BOOT_VERSION_MAJ) "." __STR(BOOT_VERSION_MIN)
|
||||
|
||||
void printing_init();
|
||||
void hw_init(void);
|
||||
|
||||
|
@ -53,19 +53,10 @@
|
||||
#define USBD_VID 0x0483
|
||||
#define USBD_PID 0xA2CA
|
||||
#define USBD_LANGID_STRING 0x409
|
||||
#ifndef SOLO_HACKER
|
||||
#define USBD_MANUFACTURER_STRING "SoloKeys"
|
||||
#define USBD_PRODUCT_FS_STRING "Solo"
|
||||
#ifndef USBD_SERIAL_NUM
|
||||
#define USBD_PRODUCT_FS_STRING SOLO_PRODUCT_NAME
|
||||
#define USBD_SERIAL_NUM "0123456789ABCDEF"
|
||||
#endif
|
||||
#else
|
||||
#define USBD_MANUFACTURER_STRING "Solo Keys"
|
||||
#define USBD_PRODUCT_FS_STRING "Solo HACKER (Unlocked)"
|
||||
#ifndef USBD_SERIAL_NUM
|
||||
#define USBD_SERIAL_NUM "0123456789ABCDEF"
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
uint8_t *USBD_HID_DeviceDescriptor(USBD_SpeedTypeDef speed, uint16_t *length);
|
||||
uint8_t *USBD_HID_LangIDStrDescriptor(USBD_SpeedTypeDef speed, uint16_t *length);
|
||||
|
@ -43,6 +43,16 @@
|
||||
// #define DISABLE_CTAPHID_PING
|
||||
// #define DISABLE_CTAPHID_WINK
|
||||
// #define DISABLE_CTAPHID_CBOR
|
||||
#define SOLO_VERSION_MAJ 1
|
||||
#define SOLO_VERSION_MIN 0
|
||||
#define __STR_HELPER(x) #x
|
||||
#define __STR(x) __STR_HELPER(x)
|
||||
|
||||
#if defined(SOLO_HACKER)
|
||||
#define SOLO_PRODUCT_NAME "Solo Hacker " __STR(SOLO_VERSION_MAJ) "." __STR(SOLO_VERSION_MIN)
|
||||
#else
|
||||
#define SOLO_PRODUCT_NAME "Solo " __STR(SOLO_VERSION_MAJ) "." __STR(SOLO_VERSION_MIN)
|
||||
#endif
|
||||
|
||||
void printing_init();
|
||||
void hw_init(void);
|
||||
|
Loading…
x
Reference in New Issue
Block a user