From 5fcd83aecf74dd92ad6447bac15a1cefcc13cacf Mon Sep 17 00:00:00 2001 From: bugobliterator Date: Mon, 15 Apr 2024 16:05:07 +0800 Subject: [PATCH] AP_HAL_ChibiOS: add default USB ids for CubeNode --- .../AP_HAL_ChibiOS/hwdef/CubePilot-CANMod/hwdef-bl.dat | 6 ++++++ libraries/AP_HAL_ChibiOS/hwdef/CubePilot-CANMod/hwdef.dat | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/libraries/AP_HAL_ChibiOS/hwdef/CubePilot-CANMod/hwdef-bl.dat b/libraries/AP_HAL_ChibiOS/hwdef/CubePilot-CANMod/hwdef-bl.dat index e6f44056271bb7..31138015a1e438 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/CubePilot-CANMod/hwdef-bl.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/CubePilot-CANMod/hwdef-bl.dat @@ -1,5 +1,11 @@ # hw definition file for processing by chibios_hwdef.py +# USB setup +USB_VENDOR 0x2DAE # ONLY FOR USE BY CubePilot! NOBODY ELSE +USB_PRODUCT 0x2010 +USB_STRING_MANUFACTURER "CubePilot" +USB_STRING_PRODUCT "CubeNode" + # MCU class and specific type MCU STM32H7xx STM32H757xx define CORE_CM7 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/CubePilot-CANMod/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/CubePilot-CANMod/hwdef.dat index 4637d12cc777c4..16ab284393f38a 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/CubePilot-CANMod/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/CubePilot-CANMod/hwdef.dat @@ -4,6 +4,11 @@ # MCU class and specific type MCU STM32H7xx STM32H757xx +# USB setup +USB_VENDOR 0x2DAE # ONLY FOR USE BY CubePilot! NOBODY ELSE +USB_PRODUCT 0x2000 +USB_STRING_MANUFACTURER "CubePilot" +USB_STRING_PRODUCT "CubeNode" define CORE_CM7 define SMPS_PWR