Merge pull request #11297 from SteveCEvans/baro_state
[betaflight.git] / src / main / vcpf4 / usbd_usr.c
blobce27e0760beb29a6489028eec6a59df536d82a99
1 /**
2 ******************************************************************************
3 * @file usbd_usr.c
4 * @author MCD Application Team
5 * @version V1.0.0
6 * @date 19-September-2011
7 * @brief This file includes the user application layer
8 ******************************************************************************
9 * @attention
11 * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
12 * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE
13 * TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY
14 * DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING
15 * FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE
16 * CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
18 * <h2><center>&copy; COPYRIGHT 2011 STMicroelectronics</center></h2>
19 ******************************************************************************
22 #include "platform.h"
24 #include "usbd_usr.h"
25 #include "usbd_ioreq.h"
27 USBD_Usr_cb_TypeDef USR_cb =
29 USBD_USR_Init,
30 USBD_USR_DeviceReset,
31 USBD_USR_DeviceConfigured,
32 USBD_USR_DeviceSuspended,
33 USBD_USR_DeviceResumed,
35 USBD_USR_DeviceConnected,
36 USBD_USR_DeviceDisconnected,
40 /**
41 * @brief USBD_USR_Init
42 * Displays the message on LCD for host lib initialization
43 * @param None
44 * @retval None
46 void USBD_USR_Init(void)
51 /**
52 * @brief USBD_USR_DeviceReset
53 * Displays the message on LCD on device Reset Event
54 * @param speed : device speed
55 * @retval None
57 void USBD_USR_DeviceReset(uint8_t speed )
59 switch (speed)
61 case USB_OTG_SPEED_HIGH:
62 break;
64 case USB_OTG_SPEED_FULL:
65 break;
66 default:
67 break;
73 /**
74 * @brief USBD_USR_DeviceConfigured
75 * Displays the message on LCD on device configuration Event
76 * @param None
77 * @retval Staus
79 void USBD_USR_DeviceConfigured (void)
84 /**
85 * @brief USBD_USR_DeviceConnected
86 * Displays the message on LCD on device connection Event
87 * @param None
88 * @retval Staus
90 void USBD_USR_DeviceConnected (void)
95 /**
96 * @brief USBD_USR_DeviceDisonnected
97 * Displays the message on LCD on device disconnection Event
98 * @param None
99 * @retval Staus
101 void USBD_USR_DeviceDisconnected (void)
106 * @brief USBD_USR_DeviceSuspended
107 * Displays the message on LCD on device suspend Event
108 * @param None
109 * @retval None
111 void USBD_USR_DeviceSuspended(void)
113 /* Users can do their application actions here for the USB-Reset */
118 * @brief USBD_USR_DeviceResumed
119 * Displays the message on LCD on device resume Event
120 * @param None
121 * @retval None
123 void USBD_USR_DeviceResumed(void)
125 /* Users can do their application actions here for the USB-Reset */