mirror of
https://github.com/rene-dev/stmbl.git
synced 2026-02-05 18:01:21 +08:00
fix warnings in bootloader
This commit is contained in:
@@ -122,9 +122,8 @@ int main(void) {
|
||||
MX_CRC_Init();
|
||||
MX_RTC_Init();
|
||||
|
||||
GPIO_InitTypeDef GPIO_InitStruct;
|
||||
|
||||
#ifdef USB_DISCONNECT_PIN
|
||||
GPIO_InitTypeDef GPIO_InitStruct;
|
||||
GPIO_InitStruct.Pin = USB_DISCONNECT_PIN;
|
||||
GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
|
||||
GPIO_InitStruct.Pull = GPIO_NOPULL;
|
||||
@@ -134,6 +133,7 @@ int main(void) {
|
||||
#endif
|
||||
|
||||
#ifdef USB_CONNECT_PIN
|
||||
GPIO_InitTypeDef GPIO_InitStruct;
|
||||
GPIO_InitStruct.Pin = USB_CONNECT_PIN;
|
||||
GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
|
||||
GPIO_InitStruct.Pull = GPIO_NOPULL;
|
||||
|
||||
@@ -68,12 +68,12 @@
|
||||
*/
|
||||
#define USBD_VID 1155
|
||||
#define USBD_LANGID_STRING 1033
|
||||
#define USBD_MANUFACTURER_STRING "STMicroelectronics"
|
||||
#define USBD_MANUFACTURER_STRING (uint8_t *)"STMicroelectronics"
|
||||
#define USBD_PID_FS 57105
|
||||
#define USBD_PRODUCT_STRING_FS "STM32 DownLoad Firmware Update"
|
||||
#define USBD_SERIALNUMBER_STRING_FS "00000000001A"
|
||||
#define USBD_CONFIGURATION_STRING_FS "DFU Config"
|
||||
#define USBD_INTERFACE_STRING_FS "DFU Interface"
|
||||
#define USBD_PRODUCT_STRING_FS (uint8_t *)"STM32 DownLoad Firmware Update"
|
||||
#define USBD_SERIALNUMBER_STRING_FS (uint8_t *)"00000000001A"
|
||||
#define USBD_CONFIGURATION_STRING_FS (uint8_t *)"DFU Config"
|
||||
#define USBD_INTERFACE_STRING_FS (uint8_t *)"DFU Interface"
|
||||
|
||||
/* USER CODE BEGIN 0 */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user