DSE compile options

This commit is contained in:
awalol
2026-04-14 22:39:50 +08:00
parent ed4f7ac8e6
commit 1551ff6325
2 changed files with 9 additions and 0 deletions
+1
View File
@@ -56,6 +56,7 @@ target_include_directories(wdl_resampler PUBLIC
target_compile_options(wdl_resampler PRIVATE -fsigned-char)
target_compile_options(ds5-bridge PRIVATE -fsigned-char)
#target_compile_options(ds5-bridge PRIVATE -DENABLE_DSE) # 将PID和产品名称设置为DSE
target_compile_definitions(ds5-bridge PRIVATE
CYW43_LWIP=0
PICO_FLASH_ASSUME_CORE1_SAFE=1
+8
View File
@@ -46,7 +46,11 @@ static tusb_desc_device_t const desc_device =
.bMaxPacketSize0 = CFG_TUD_ENDPOINT0_SIZE,
.idVendor = 0x054C,
#ifdef ENABLE_DSE
.idProduct = 0x0DF2,
#else
.idProduct = 0x0CE6,
#endif
.bcdDevice = 0x0100,
.iManufacturer = 0x01,
@@ -500,7 +504,11 @@ static char const *string_desc_arr[] =
{
(const char[]){0x09, 0x04}, // 0: is supported language is English (0x0409)
"Sony Interactive Entertainment", // 1: Manufacturer
#ifdef ENABLE_DSE
"DualSense Edge Wireless Controller",
#else
"DualSense Wireless Controller", // 2: Product
#endif
NULL, // 3: Serials will use unique ID if possible
};