usb_bsp_template.c
Go to the documentation of this file.
1 
29 /* Includes ------------------------------------------------------------------*/
30 #include "usb_bsp.h"
31 
94 void USB_OTG_BSP_Init(void)
95 {
96 
97 }
105 {
106 
107 }
108 
117 void USB_OTG_BSP_DriveVBUS(uint32_t speed, uint8_t state)
118 {
119  (void)speed;
120  (void)state;
121 
122 }
123 
131 void USB_OTG_BSP_ConfigVBUS(uint32_t speed)
132 {
133  (void)speed;
134 
135 }
136 
143 void USB_OTG_BSP_TimeInit ( void )
144 {
145 
146 }
147 
154 void USB_OTG_BSP_uDelay (const uint32_t usec)
155 {
156 
157  uint32_t count = 0;
158  const uint32_t utime = (120 * usec / 7);
159  do
160  {
161  if ( ++count > utime )
162  {
163  return ;
164  }
165  }
166  while (1);
167 
168 }
169 
170 
177 void USB_OTG_BSP_mDelay (const uint32_t msec)
178 {
179 
180  USB_OTG_BSP_uDelay(msec * 1000);
181 
182 }
183 
184 
193 {
194 
195 }
196 
209 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
Specific api's relative to the used hardware platform.
void USB_OTG_BSP_EnableInterrupt(void)
USB_OTG_BSP_EnableInterrupt Enable USB Global interrupt.
void USB_OTG_BSP_mDelay(const uint32_t msec)
USB_OTG_BSP_mDelay This function provides delay time in milli sec.
void USB_OTG_BSP_TimeInit(void)
USB_OTG_BSP_TimeInit Initialises delay unit Systick timer /Timer2.
void USB_OTG_BSP_Init(void)
USB_OTG_BSP_Init Initializes BSP configurations.
void USB_OTG_BSP_ConfigVBUS(uint32_t speed)
USB_OTG_BSP_ConfigVBUS Configures the IO for the Vbus and OverCurrent.
void USB_OTG_BSP_uDelay(const uint32_t usec)
USB_OTG_BSP_uDelay This function provides delay time in micro sec.
void USB_OTG_BSP_TimerIRQ(void)
USB_OTG_BSP_TimerIRQ Time base IRQ.
void USB_OTG_BSP_DriveVBUS(uint32_t speed, uint8_t state)
BSP_Drive_VBUS Drives the Vbus signal through IO.


rosflight_firmware
Author(s): Daniel Koch , James Jackson
autogenerated on Wed Jul 3 2019 19:59:26