pico: change USB vendor to Tillitis

This commit is contained in:
Matt Mets 2023-03-08 16:11:10 +01:00 committed by Michael Cardell Widerkrantz
parent 9c7022edd0
commit 994ec270ef
No known key found for this signature in database
GPG Key ID: D3DB3DDF57E704E5
2 changed files with 18 additions and 6 deletions

12
hw/boards/tp1/firmware/build.sh Executable file
View 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)

View File

@ -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] = {