2 ******************************************************************************
4 * @author MCD Application Team
6 * @date 09-November-2015
7 * @brief Specific api's relative to the used hardware platform
8 ******************************************************************************
11 * <h2><center>© 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 ------------------------------------------------------------------*/
35 /** @addtogroup USB_OTG_DRIVER
40 * @brief This file is the
45 /** @defgroup USB_BSP_Exported_Defines
53 /** @defgroup USB_BSP_Exported_Types
61 /** @defgroup USB_BSP_Exported_Macros
68 /** @defgroup USB_BSP_Exported_Variables
75 /** @defgroup USB_BSP_Exported_FunctionsPrototype
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);
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 */
96 #endif /* __USB_BSP__H__ */
105 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/