CN - Altered these files so that they have CRLF line endings.
This commit is contained in:
+3503
-3503
File diff suppressed because it is too large
Load Diff
@@ -1,236 +1,236 @@
|
|||||||
/**
|
/**
|
||||||
******************************************************************************
|
******************************************************************************
|
||||||
* @file usbd_desc.c
|
* @file usbd_desc.c
|
||||||
* @author MCD Application Team
|
* @author MCD Application Team
|
||||||
* @version V1.1.0
|
* @version V1.1.0
|
||||||
* @date 19-March-2012
|
* @date 19-March-2012
|
||||||
* @brief This file provides the USBD descriptors and string formating method.
|
* @brief This file provides the USBD descriptors and string formating method.
|
||||||
******************************************************************************
|
******************************************************************************
|
||||||
* @attention
|
* @attention
|
||||||
*
|
*
|
||||||
* <h2><center>© COPYRIGHT 2012 STMicroelectronics</center></h2>
|
* <h2><center>© COPYRIGHT 2012 STMicroelectronics</center></h2>
|
||||||
*
|
*
|
||||||
* Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
|
* Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
|
||||||
* You may not use this file except in compliance with the License.
|
* You may not use this file except in compliance with the License.
|
||||||
* You may obtain a copy of the License at:
|
* You may obtain a copy of the License at:
|
||||||
*
|
*
|
||||||
* http://www.st.com/software_license_agreement_liberty_v2
|
* http://www.st.com/software_license_agreement_liberty_v2
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*
|
*
|
||||||
******************************************************************************
|
******************************************************************************
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Includes ------------------------------------------------------------------*/
|
/* Includes ------------------------------------------------------------------*/
|
||||||
#include "usbd_core.h"
|
#include "usbd_core.h"
|
||||||
#include "usbd_desc.h"
|
#include "usbd_desc.h"
|
||||||
#include "usbd_req.h"
|
#include "usbd_req.h"
|
||||||
#include "usbd_conf.h"
|
#include "usbd_conf.h"
|
||||||
#include "usb_regs.h"
|
#include "usb_regs.h"
|
||||||
#include "board_taranis.h"
|
#include "board_taranis.h"
|
||||||
|
|
||||||
/** @addtogroup STM32_USB_OTG_DEVICE_LIBRARY
|
/** @addtogroup STM32_USB_OTG_DEVICE_LIBRARY
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
/** @defgroup USBD_DESC
|
/** @defgroup USBD_DESC
|
||||||
* @brief USBD descriptors module
|
* @brief USBD descriptors module
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/** @defgroup USBD_DESC_Private_TypesDefinitions
|
/** @defgroup USBD_DESC_Private_TypesDefinitions
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
/**
|
/**
|
||||||
* @}
|
* @}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
/** @defgroup USBD_DESC_Private_Defines
|
/** @defgroup USBD_DESC_Private_Defines
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define USBD_VID 0x0483
|
#define USBD_VID 0x0483
|
||||||
|
|
||||||
#define USBD_LANGID_STRING 0x409
|
#define USBD_LANGID_STRING 0x409
|
||||||
#define USBD_MANUFACTURER_STRING "FrSky"
|
#define USBD_MANUFACTURER_STRING "FrSky"
|
||||||
#define USBD_SERIALNUMBER_FS_STRING "00000000001B"
|
#define USBD_SERIALNUMBER_FS_STRING "00000000001B"
|
||||||
|
|
||||||
|
|
||||||
#if defined(BOOT)
|
#if defined(BOOT)
|
||||||
#define USBD_PID 0x5720
|
#define USBD_PID 0x5720
|
||||||
#define USBD_PRODUCT_FS_STRING "FrSky Taranis Bootloader"
|
#define USBD_PRODUCT_FS_STRING "FrSky Taranis Bootloader"
|
||||||
#define USBD_CONFIGURATION_FS_STRING "MSC Config"
|
#define USBD_CONFIGURATION_FS_STRING "MSC Config"
|
||||||
#define USBD_INTERFACE_FS_STRING "MSC Interface"
|
#define USBD_INTERFACE_FS_STRING "MSC Interface"
|
||||||
#else
|
#else
|
||||||
#if defined(USB_JOYSTICK)
|
#if defined(USB_JOYSTICK)
|
||||||
#define USBD_PID 0x5710
|
#define USBD_PID 0x5710
|
||||||
#define USBD_PRODUCT_FS_STRING "FrSky Taranis Joystick"
|
#define USBD_PRODUCT_FS_STRING "FrSky Taranis Joystick"
|
||||||
#define USBD_CONFIGURATION_FS_STRING "HID Config"
|
#define USBD_CONFIGURATION_FS_STRING "HID Config"
|
||||||
#define USBD_INTERFACE_FS_STRING "HID Interface"
|
#define USBD_INTERFACE_FS_STRING "HID Interface"
|
||||||
#elif defined(USB_MASS_STORAGE)
|
#elif defined(USB_MASS_STORAGE)
|
||||||
#define USBD_PID 0x5720
|
#define USBD_PID 0x5720
|
||||||
#define USBD_PRODUCT_FS_STRING "FrSky Taranis Mass Storage"
|
#define USBD_PRODUCT_FS_STRING "FrSky Taranis Mass Storage"
|
||||||
#define USBD_CONFIGURATION_FS_STRING "MSC Config"
|
#define USBD_CONFIGURATION_FS_STRING "MSC Config"
|
||||||
#define USBD_INTERFACE_FS_STRING "MSC Interface"
|
#define USBD_INTERFACE_FS_STRING "MSC Interface"
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
USBD_DEVICE USR_desc =
|
USBD_DEVICE USR_desc =
|
||||||
{
|
{
|
||||||
USBD_USR_DeviceDescriptor,
|
USBD_USR_DeviceDescriptor,
|
||||||
USBD_USR_LangIDStrDescriptor,
|
USBD_USR_LangIDStrDescriptor,
|
||||||
USBD_USR_ManufacturerStrDescriptor,
|
USBD_USR_ManufacturerStrDescriptor,
|
||||||
USBD_USR_ProductStrDescriptor,
|
USBD_USR_ProductStrDescriptor,
|
||||||
USBD_USR_SerialStrDescriptor,
|
USBD_USR_SerialStrDescriptor,
|
||||||
USBD_USR_ConfigStrDescriptor,
|
USBD_USR_ConfigStrDescriptor,
|
||||||
USBD_USR_InterfaceStrDescriptor,
|
USBD_USR_InterfaceStrDescriptor,
|
||||||
};
|
};
|
||||||
|
|
||||||
/* USB Standard Device Descriptor */
|
/* USB Standard Device Descriptor */
|
||||||
__ALIGN_BEGIN uint8_t USBD_DeviceDesc[USB_SIZ_DEVICE_DESC] __ALIGN_END =
|
__ALIGN_BEGIN uint8_t USBD_DeviceDesc[USB_SIZ_DEVICE_DESC] __ALIGN_END =
|
||||||
{
|
{
|
||||||
0x12, /*bLength */
|
0x12, /*bLength */
|
||||||
USB_DEVICE_DESCRIPTOR_TYPE, /*bDescriptorType*/
|
USB_DEVICE_DESCRIPTOR_TYPE, /*bDescriptorType*/
|
||||||
0x00, /*bcdUSB */
|
0x00, /*bcdUSB */
|
||||||
0x02,
|
0x02,
|
||||||
0x00, /*bDeviceClass*/
|
0x00, /*bDeviceClass*/
|
||||||
0x00, /*bDeviceSubClass*/
|
0x00, /*bDeviceSubClass*/
|
||||||
0x00, /*bDeviceProtocol*/
|
0x00, /*bDeviceProtocol*/
|
||||||
USB_OTG_MAX_EP0_SIZE, /*bMaxPacketSize*/
|
USB_OTG_MAX_EP0_SIZE, /*bMaxPacketSize*/
|
||||||
LOBYTE(USBD_VID), /*idVendor*/
|
LOBYTE(USBD_VID), /*idVendor*/
|
||||||
HIBYTE(USBD_VID), /*idVendor*/
|
HIBYTE(USBD_VID), /*idVendor*/
|
||||||
LOBYTE(USBD_PID), /*idVendor*/
|
LOBYTE(USBD_PID), /*idVendor*/
|
||||||
HIBYTE(USBD_PID), /*idVendor*/
|
HIBYTE(USBD_PID), /*idVendor*/
|
||||||
0x00, /*bcdDevice rel. 2.00*/
|
0x00, /*bcdDevice rel. 2.00*/
|
||||||
0x02,
|
0x02,
|
||||||
USBD_IDX_MFC_STR, /*Index of manufacturer string*/
|
USBD_IDX_MFC_STR, /*Index of manufacturer string*/
|
||||||
USBD_IDX_PRODUCT_STR, /*Index of product string*/
|
USBD_IDX_PRODUCT_STR, /*Index of product string*/
|
||||||
USBD_IDX_SERIAL_STR, /*Index of serial number string*/
|
USBD_IDX_SERIAL_STR, /*Index of serial number string*/
|
||||||
USBD_CFG_MAX_NUM /*bNumConfigurations*/
|
USBD_CFG_MAX_NUM /*bNumConfigurations*/
|
||||||
} ; /* USB_DeviceDescriptor */
|
} ; /* USB_DeviceDescriptor */
|
||||||
|
|
||||||
/* USB Standard Device Descriptor */
|
/* USB Standard Device Descriptor */
|
||||||
__ALIGN_BEGIN uint8_t USBD_DeviceQualifierDesc[USB_LEN_DEV_QUALIFIER_DESC] __ALIGN_END =
|
__ALIGN_BEGIN uint8_t USBD_DeviceQualifierDesc[USB_LEN_DEV_QUALIFIER_DESC] __ALIGN_END =
|
||||||
{
|
{
|
||||||
USB_LEN_DEV_QUALIFIER_DESC,
|
USB_LEN_DEV_QUALIFIER_DESC,
|
||||||
USB_DESC_TYPE_DEVICE_QUALIFIER,
|
USB_DESC_TYPE_DEVICE_QUALIFIER,
|
||||||
0x00,
|
0x00,
|
||||||
0x02,
|
0x02,
|
||||||
0x00,
|
0x00,
|
||||||
0x00,
|
0x00,
|
||||||
0x00,
|
0x00,
|
||||||
0x40,
|
0x40,
|
||||||
0x01,
|
0x01,
|
||||||
0x00,
|
0x00,
|
||||||
};
|
};
|
||||||
|
|
||||||
/* USB Standard Device Descriptor */
|
/* USB Standard Device Descriptor */
|
||||||
__ALIGN_BEGIN uint8_t USBD_LangIDDesc[USB_SIZ_STRING_LANGID] __ALIGN_END =
|
__ALIGN_BEGIN uint8_t USBD_LangIDDesc[USB_SIZ_STRING_LANGID] __ALIGN_END =
|
||||||
{
|
{
|
||||||
USB_SIZ_STRING_LANGID,
|
USB_SIZ_STRING_LANGID,
|
||||||
USB_DESC_TYPE_STRING,
|
USB_DESC_TYPE_STRING,
|
||||||
LOBYTE(USBD_LANGID_STRING),
|
LOBYTE(USBD_LANGID_STRING),
|
||||||
HIBYTE(USBD_LANGID_STRING),
|
HIBYTE(USBD_LANGID_STRING),
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* @brief USBD_USR_DeviceDescriptor
|
* @brief USBD_USR_DeviceDescriptor
|
||||||
* return the device descriptor
|
* return the device descriptor
|
||||||
* @param speed : current device speed
|
* @param speed : current device speed
|
||||||
* @param length : pointer to data length variable
|
* @param length : pointer to data length variable
|
||||||
* @retval pointer to descriptor buffer
|
* @retval pointer to descriptor buffer
|
||||||
*/
|
*/
|
||||||
uint8_t * USBD_USR_DeviceDescriptor( uint8_t speed , uint16_t *length)
|
uint8_t * USBD_USR_DeviceDescriptor( uint8_t speed , uint16_t *length)
|
||||||
{
|
{
|
||||||
*length = sizeof(USBD_DeviceDesc);
|
*length = sizeof(USBD_DeviceDesc);
|
||||||
return USBD_DeviceDesc;
|
return USBD_DeviceDesc;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief USBD_USR_LangIDStrDescriptor
|
* @brief USBD_USR_LangIDStrDescriptor
|
||||||
* return the LangID string descriptor
|
* return the LangID string descriptor
|
||||||
* @param speed : current device speed
|
* @param speed : current device speed
|
||||||
* @param length : pointer to data length variable
|
* @param length : pointer to data length variable
|
||||||
* @retval pointer to descriptor buffer
|
* @retval pointer to descriptor buffer
|
||||||
*/
|
*/
|
||||||
uint8_t * USBD_USR_LangIDStrDescriptor( uint8_t speed , uint16_t *length)
|
uint8_t * USBD_USR_LangIDStrDescriptor( uint8_t speed , uint16_t *length)
|
||||||
{
|
{
|
||||||
*length = sizeof(USBD_LangIDDesc);
|
*length = sizeof(USBD_LangIDDesc);
|
||||||
return USBD_LangIDDesc;
|
return USBD_LangIDDesc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief USBD_USR_ProductStrDescriptor
|
* @brief USBD_USR_ProductStrDescriptor
|
||||||
* return the product string descriptor
|
* return the product string descriptor
|
||||||
* @param speed : current device speed
|
* @param speed : current device speed
|
||||||
* @param length : pointer to data length variable
|
* @param length : pointer to data length variable
|
||||||
* @retval pointer to descriptor buffer
|
* @retval pointer to descriptor buffer
|
||||||
*/
|
*/
|
||||||
uint8_t * USBD_USR_ProductStrDescriptor( uint8_t speed , uint16_t *length)
|
uint8_t * USBD_USR_ProductStrDescriptor( uint8_t speed , uint16_t *length)
|
||||||
{
|
{
|
||||||
USBD_GetString ((uint8_t*)USBD_PRODUCT_FS_STRING, USBD_StrDesc, length);
|
USBD_GetString ((uint8_t*)USBD_PRODUCT_FS_STRING, USBD_StrDesc, length);
|
||||||
return USBD_StrDesc;
|
return USBD_StrDesc;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief USBD_USR_ManufacturerStrDescriptor
|
* @brief USBD_USR_ManufacturerStrDescriptor
|
||||||
* return the manufacturer string descriptor
|
* return the manufacturer string descriptor
|
||||||
* @param speed : current device speed
|
* @param speed : current device speed
|
||||||
* @param length : pointer to data length variable
|
* @param length : pointer to data length variable
|
||||||
* @retval pointer to descriptor buffer
|
* @retval pointer to descriptor buffer
|
||||||
*/
|
*/
|
||||||
uint8_t * USBD_USR_ManufacturerStrDescriptor( uint8_t speed , uint16_t *length)
|
uint8_t * USBD_USR_ManufacturerStrDescriptor( uint8_t speed , uint16_t *length)
|
||||||
{
|
{
|
||||||
USBD_GetString ((uint8_t*)USBD_MANUFACTURER_STRING, USBD_StrDesc, length);
|
USBD_GetString ((uint8_t*)USBD_MANUFACTURER_STRING, USBD_StrDesc, length);
|
||||||
return USBD_StrDesc;
|
return USBD_StrDesc;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief USBD_USR_SerialStrDescriptor
|
* @brief USBD_USR_SerialStrDescriptor
|
||||||
* return the serial number string descriptor
|
* return the serial number string descriptor
|
||||||
* @param speed : current device speed
|
* @param speed : current device speed
|
||||||
* @param length : pointer to data length variable
|
* @param length : pointer to data length variable
|
||||||
* @retval pointer to descriptor buffer
|
* @retval pointer to descriptor buffer
|
||||||
*/
|
*/
|
||||||
uint8_t * USBD_USR_SerialStrDescriptor( uint8_t speed , uint16_t *length)
|
uint8_t * USBD_USR_SerialStrDescriptor( uint8_t speed , uint16_t *length)
|
||||||
{
|
{
|
||||||
USBD_GetString ((uint8_t*)USBD_SERIALNUMBER_FS_STRING, USBD_StrDesc, length);
|
USBD_GetString ((uint8_t*)USBD_SERIALNUMBER_FS_STRING, USBD_StrDesc, length);
|
||||||
return USBD_StrDesc;
|
return USBD_StrDesc;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief USBD_USR_ConfigStrDescriptor
|
* @brief USBD_USR_ConfigStrDescriptor
|
||||||
* return the configuration string descriptor
|
* return the configuration string descriptor
|
||||||
* @param speed : current device speed
|
* @param speed : current device speed
|
||||||
* @param length : pointer to data length variable
|
* @param length : pointer to data length variable
|
||||||
* @retval pointer to descriptor buffer
|
* @retval pointer to descriptor buffer
|
||||||
*/
|
*/
|
||||||
uint8_t * USBD_USR_ConfigStrDescriptor( uint8_t speed , uint16_t *length)
|
uint8_t * USBD_USR_ConfigStrDescriptor( uint8_t speed , uint16_t *length)
|
||||||
{
|
{
|
||||||
USBD_GetString ((uint8_t *)USBD_CONFIGURATION_FS_STRING, USBD_StrDesc, length);
|
USBD_GetString ((uint8_t *)USBD_CONFIGURATION_FS_STRING, USBD_StrDesc, length);
|
||||||
return USBD_StrDesc;
|
return USBD_StrDesc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief USBD_USR_InterfaceStrDescriptor
|
* @brief USBD_USR_InterfaceStrDescriptor
|
||||||
* return the interface string descriptor
|
* return the interface string descriptor
|
||||||
* @param speed : current device speed
|
* @param speed : current device speed
|
||||||
* @param length : pointer to data length variable
|
* @param length : pointer to data length variable
|
||||||
* @retval pointer to descriptor buffer
|
* @retval pointer to descriptor buffer
|
||||||
*/
|
*/
|
||||||
uint8_t * USBD_USR_InterfaceStrDescriptor( uint8_t speed , uint16_t *length)
|
uint8_t * USBD_USR_InterfaceStrDescriptor( uint8_t speed , uint16_t *length)
|
||||||
{
|
{
|
||||||
USBD_GetString ((uint8_t*)USBD_INTERFACE_FS_STRING, USBD_StrDesc, length);
|
USBD_GetString ((uint8_t*)USBD_INTERFACE_FS_STRING, USBD_StrDesc, length);
|
||||||
return USBD_StrDesc;
|
return USBD_StrDesc;
|
||||||
}
|
}
|
||||||
|
|
||||||
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
|
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
|
||||||
|
|
||||||
|
|||||||
@@ -1,128 +1,128 @@
|
|||||||
/**
|
/**
|
||||||
******************************************************************************
|
******************************************************************************
|
||||||
* @file usbd_usr.c
|
* @file usbd_usr.c
|
||||||
* @author MCD Application Team
|
* @author MCD Application Team
|
||||||
* @version V1.1.0
|
* @version V1.1.0
|
||||||
* @date 19-March-2012
|
* @date 19-March-2012
|
||||||
* @brief This file includes the user application layer
|
* @brief This file includes the user application layer
|
||||||
******************************************************************************
|
******************************************************************************
|
||||||
* @attention
|
* @attention
|
||||||
*
|
*
|
||||||
* <h2><center>© COPYRIGHT 2012 STMicroelectronics</center></h2>
|
* <h2><center>© COPYRIGHT 2012 STMicroelectronics</center></h2>
|
||||||
*
|
*
|
||||||
* Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
|
* Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
|
||||||
* You may not use this file except in compliance with the License.
|
* You may not use this file except in compliance with the License.
|
||||||
* You may obtain a copy of the License at:
|
* You may obtain a copy of the License at:
|
||||||
*
|
*
|
||||||
* http://www.st.com/software_license_agreement_liberty_v2
|
* http://www.st.com/software_license_agreement_liberty_v2
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*
|
*
|
||||||
******************************************************************************
|
******************************************************************************
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Includes ------------------------------------------------------------------*/
|
/* Includes ------------------------------------------------------------------*/
|
||||||
#include "../../opentx.h"
|
#include "../../opentx.h"
|
||||||
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#include "usbd_usr.h"
|
#include "usbd_usr.h"
|
||||||
|
|
||||||
/* Points to the DEVICE_PROP structure of current device */
|
/* Points to the DEVICE_PROP structure of current device */
|
||||||
/* The purpose of this register is to speed up the execution */
|
/* The purpose of this register is to speed up the execution */
|
||||||
|
|
||||||
|
|
||||||
USBD_Usr_cb_TypeDef USR_cb =
|
USBD_Usr_cb_TypeDef USR_cb =
|
||||||
{
|
{
|
||||||
USBD_USR_Init,
|
USBD_USR_Init,
|
||||||
USBD_USR_DeviceReset,
|
USBD_USR_DeviceReset,
|
||||||
USBD_USR_DeviceConfigured,
|
USBD_USR_DeviceConfigured,
|
||||||
USBD_USR_DeviceSuspended,
|
USBD_USR_DeviceSuspended,
|
||||||
USBD_USR_DeviceResumed,
|
USBD_USR_DeviceResumed,
|
||||||
|
|
||||||
USBD_USR_DeviceConnected,
|
USBD_USR_DeviceConnected,
|
||||||
USBD_USR_DeviceDisconnected,
|
USBD_USR_DeviceDisconnected,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Whatever the user application needs to do when USB is initialised
|
* @brief Whatever the user application needs to do when USB is initialised
|
||||||
* @param None
|
* @param None
|
||||||
* @retval None
|
* @retval None
|
||||||
*/
|
*/
|
||||||
void USBD_USR_Init(void)
|
void USBD_USR_Init(void)
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Displays the message on LCD on device reset event
|
* @brief Displays the message on LCD on device reset event
|
||||||
* @param speed : device speed
|
* @param speed : device speed
|
||||||
* @retval None
|
* @retval None
|
||||||
*/
|
*/
|
||||||
void USBD_USR_DeviceReset (uint8_t speed)
|
void USBD_USR_DeviceReset (uint8_t speed)
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Displays the message on LCD on device config event
|
* @brief Displays the message on LCD on device config event
|
||||||
* @param None
|
* @param None
|
||||||
* @retval Staus
|
* @retval Staus
|
||||||
*/
|
*/
|
||||||
void USBD_USR_DeviceConfigured (void)
|
void USBD_USR_DeviceConfigured (void)
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* @brief Displays the message on LCD on device suspend event
|
* @brief Displays the message on LCD on device suspend event
|
||||||
* @param None
|
* @param None
|
||||||
* @retval None
|
* @retval None
|
||||||
*/
|
*/
|
||||||
void USBD_USR_DeviceSuspended(void)
|
void USBD_USR_DeviceSuspended(void)
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Displays the message on LCD on device resume event
|
* @brief Displays the message on LCD on device resume event
|
||||||
* @param None
|
* @param None
|
||||||
* @retval None
|
* @retval None
|
||||||
*/
|
*/
|
||||||
void USBD_USR_DeviceResumed(void)
|
void USBD_USR_DeviceResumed(void)
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief USBD_USR_DeviceConnected
|
* @brief USBD_USR_DeviceConnected
|
||||||
* Displays the message on LCD on device connection Event
|
* Displays the message on LCD on device connection Event
|
||||||
* @param None
|
* @param None
|
||||||
* @retval Staus
|
* @retval Staus
|
||||||
*/
|
*/
|
||||||
void USBD_USR_DeviceConnected (void)
|
void USBD_USR_DeviceConnected (void)
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief USBD_USR_DeviceDisonnected
|
* @brief USBD_USR_DeviceDisonnected
|
||||||
* Displays the message on LCD on device disconnection Event
|
* Displays the message on LCD on device disconnection Event
|
||||||
* @param None
|
* @param None
|
||||||
* @retval Staus
|
* @retval Staus
|
||||||
*/
|
*/
|
||||||
void USBD_USR_DeviceDisconnected (void)
|
void USBD_USR_DeviceDisconnected (void)
|
||||||
{
|
{
|
||||||
#if !defined(BOOT) && defined(USB_MASS_STORAGE)
|
#if !defined(BOOT) && defined(USB_MASS_STORAGE)
|
||||||
NVIC_SystemReset();
|
NVIC_SystemReset();
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
|
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
|
||||||
|
|||||||
Reference in New Issue
Block a user