fix warnings in bootloader

This commit is contained in:
Rene Hopf
2017-12-23 11:55:39 +01:00
parent b943d97bb8
commit e0b3f0758d
2 changed files with 7 additions and 7 deletions

View File

@@ -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;

View File

@@ -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 */