Support SBUS2 FASSTest 12 channel short frame time
[inav.git] / src / main / vcpf4 / usbd_usr.c
blob24c5f17c206b573e84d0cea8d68ee9278d1d94ad
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 "usbd_usr.h"
23 #include "usbd_ioreq.h"
25 USBD_Usr_cb_TypeDef USR_cb =
27 USBD_USR_Init,
28 USBD_USR_DeviceReset,
29 USBD_USR_DeviceConfigured,
30 USBD_USR_DeviceSuspended,
31 USBD_USR_DeviceResumed,
33 USBD_USR_DeviceConnected,
34 USBD_USR_DeviceDisconnected,
38 /**
39 * @brief USBD_USR_Init
40 * Displays the message on LCD for host lib initialization
41 * @param None
42 * @retval None
44 void USBD_USR_Init(void)
49 /**
50 * @brief USBD_USR_DeviceReset
51 * Displays the message on LCD on device Reset Event
52 * @param speed : device speed
53 * @retval None
55 void USBD_USR_DeviceReset(uint8_t speed )
57 switch (speed)
59 case USB_OTG_SPEED_HIGH:
60 break;
62 case USB_OTG_SPEED_FULL:
63 break;
64 default:
65 break;
71 /**
72 * @brief USBD_USR_DeviceConfigured
73 * Displays the message on LCD on device configuration Event
74 * @param None
75 * @retval Staus
77 void USBD_USR_DeviceConfigured (void)
82 /**
83 * @brief USBD_USR_DeviceConnected
84 * Displays the message on LCD on device connection Event
85 * @param None
86 * @retval Staus
88 void USBD_USR_DeviceConnected (void)
93 /**
94 * @brief USBD_USR_DeviceDisonnected
95 * Displays the message on LCD on device disconnection Event
96 * @param None
97 * @retval Staus
99 void USBD_USR_DeviceDisconnected (void)
104 * @brief USBD_USR_DeviceSuspended
105 * Displays the message on LCD on device suspend Event
106 * @param None
107 * @retval None
109 void USBD_USR_DeviceSuspended(void)
111 /* Users can do their application actions here for the USB-Reset */
116 * @brief USBD_USR_DeviceResumed
117 * Displays the message on LCD on device resume Event
118 * @param None
119 * @retval None
121 void USBD_USR_DeviceResumed(void)
123 /* Users can do their application actions here for the USB-Reset */