mirror of
https://github.com/tillitis/tillitis-key1.git
synced 2024-10-01 01:45:38 -04:00
pico: change USB vendor to Tillitis
This commit is contained in:
parent
9c7022edd0
commit
994ec270ef
12
hw/boards/tp1/firmware/build.sh
Executable file
12
hw/boards/tp1/firmware/build.sh
Executable file
@ -0,0 +1,12 @@
|
||||
#!/usr/bin/bash
|
||||
set -e
|
||||
|
||||
export PICO_SDK_PATH=~/pico-sdk
|
||||
|
||||
BUILD_DIR=build
|
||||
|
||||
if [ -d "${BUILD_DIR}" ]; then rm -rf ${BUILD_DIR}; fi
|
||||
mkdir ${BUILD_DIR}
|
||||
cd ${BUILD_DIR}
|
||||
cmake ..
|
||||
make -j$(nproc)
|
@ -32,11 +32,11 @@
|
||||
* [MSB] HID | MSC | CDC [LSB]
|
||||
*/
|
||||
#define _PID_MAP(itf, n) ( (CFG_TUD_##itf) << (n) )
|
||||
#define USB_PID (0x4000 | _PID_MAP(CDC, 0) | _PID_MAP(MSC, 1) | _PID_MAP(HID, 2) | \
|
||||
_PID_MAP(MIDI, 3) | _PID_MAP(VENDOR, 4) )
|
||||
|
||||
#define USB_VID 0xCafe
|
||||
#define USB_VID 0x1209
|
||||
#define USB_PID 0x8886
|
||||
#define USB_BCD 0x0200
|
||||
|
||||
#define PROTOCOL_VERSION 0x0200
|
||||
|
||||
//--------------------------------------------------------------------+
|
||||
@ -113,9 +113,9 @@ uint8_t const * tud_descriptor_configuration_cb(uint8_t index)
|
||||
char const* string_desc_arr [] =
|
||||
{
|
||||
(const char[]) { 0x09, 0x04 }, // 0: is supported language is English (0x0409)
|
||||
"Blinkinlabs", // 1: Manufacturer
|
||||
"ICE40 programmer", // 2: Product
|
||||
"123456", // 3: Serials, should use chip ID
|
||||
"Tillitis", // 1: Manufacturer
|
||||
"TP-1", // 2: Product
|
||||
"", // 3: Serials, should use chip ID
|
||||
};
|
||||
|
||||
static const uint8_t microsoft_os_string_desc[18] = {
|
||||
|
Loading…
Reference in New Issue
Block a user