[GYRO] Refactor gyro driver for dual-gyro support
[inav.git] / lib / main / STM32_USB_OTG_Driver / inc / usb_bsp.h
blob158ee7efd3df613e513560f997ea1e2a89468bf3
1 /**
2 ******************************************************************************
3 * @file usb_bsp.h
4 * @author MCD Application Team
5 * @version V2.2.0
6 * @date 09-November-2015
7 * @brief Specific api's relative to the used hardware platform
8 ******************************************************************************
9 * @attention
11 * <h2><center>&copy; COPYRIGHT 2015 STMicroelectronics</center></h2>
13 * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
14 * You may not use this file except in compliance with the License.
15 * You may obtain a copy of the License at:
17 * http://www.st.com/software_license_agreement_liberty_v2
19 * Unless required by applicable law or agreed to in writing, software
20 * distributed under the License is distributed on an "AS IS" BASIS,
21 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22 * See the License for the specific language governing permissions and
23 * limitations under the License.
25 ******************************************************************************
28 /* Define to prevent recursive inclusion -------------------------------------*/
29 #ifndef __USB_BSP__H__
30 #define __USB_BSP__H__
32 /* Includes ------------------------------------------------------------------*/
33 #include "usb_core.h"
35 /** @addtogroup USB_OTG_DRIVER
36 * @{
39 /** @defgroup USB_BSP
40 * @brief This file is the
41 * @{
42 */
45 /** @defgroup USB_BSP_Exported_Defines
46 * @{
47 */
48 /**
49 * @}
50 */
53 /** @defgroup USB_BSP_Exported_Types
54 * @{
55 */
56 /**
57 * @}
58 */
61 /** @defgroup USB_BSP_Exported_Macros
62 * @{
63 */
64 /**
65 * @}
66 */
68 /** @defgroup USB_BSP_Exported_Variables
69 * @{
70 */
71 /**
72 * @}
73 */
75 /** @defgroup USB_BSP_Exported_FunctionsPrototype
76 * @{
77 */
78 void BSP_Init(void);
80 void USB_OTG_BSP_Init (USB_OTG_CORE_HANDLE *pdev);
81 void USB_OTG_BSP_uDelay (const uint32_t usec);
82 void USB_OTG_BSP_mDelay (const uint32_t msec);
83 void USB_OTG_BSP_EnableInterrupt (USB_OTG_CORE_HANDLE *pdev);
84 void USB_OTG_BSP_TimerIRQ (void);
85 #ifdef USE_HOST_MODE
86 void USB_OTG_BSP_ConfigVBUS(USB_OTG_CORE_HANDLE *pdev);
87 void USB_OTG_BSP_DriveVBUS(USB_OTG_CORE_HANDLE *pdev,uint8_t state);
88 void USB_OTG_BSP_Resume(USB_OTG_CORE_HANDLE *pdev) ;
89 void USB_OTG_BSP_Suspend(USB_OTG_CORE_HANDLE *pdev);
91 #endif /* USE_HOST_MODE */
92 /**
93 * @}
94 */
96 #endif /* __USB_BSP__H__ */
98 /**
99 * @}
103 * @}
105 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/