1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-19 14:25:20 +03:00

[4.5.2] FIX: Modify STM32F405 UID Address for MSC Enumeration (#13769) (#13827)

Modify STM32F405 UID Address for MSC Enumeration (#13769)

Update usbd_msc_desc.c

Co-authored-by: ainosukii <95574594+ainosukii@users.noreply.github.com>
This commit is contained in:
Mark Haslinghuis 2024-08-19 00:27:42 +02:00 committed by GitHub
parent 63b0aa18d5
commit 4a67af735d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -33,9 +33,15 @@
#include "usb_regs.h"
#include "platform.h"
#if defined (STM32F4)
#define DEVICE_ID1 (0x1FFF7A10)
#define DEVICE_ID2 (0x1FFF7A14)
#define DEVICE_ID3 (0x1FFF7A18)
#else
#define DEVICE_ID1 (0x1FFFF7E8)
#define DEVICE_ID2 (0x1FFFF7EA)
#define DEVICE_ID3 (0x1FFFF7EC)
#endif
#define USB_SIZ_STRING_SERIAL 0x1A
/** @addtogroup STM32_USB_OTG_DEVICE_LIBRARY