implemented timebase using TIM14 instead of TIM1
This commit is contained in:
+4
-4
@@ -629,10 +629,10 @@ void HAL_PCDEx_LPM_Callback(PCD_HandleTypeDef *hpcd, PCD_LPM_MsgTypeDef msg)
|
||||
* @param Delay: Delay in ms
|
||||
* @retval None
|
||||
*/
|
||||
void USBD_LL_Delay (uint32_t Delay)
|
||||
{
|
||||
HAL_Delay(Delay);
|
||||
}
|
||||
//void USBD_LL_Delay (uint32_t Delay)
|
||||
//{
|
||||
// HAL_Delay(Delay);
|
||||
//}
|
||||
|
||||
/**
|
||||
* @brief static single allocation.
|
||||
|
||||
+4
-4
@@ -109,10 +109,10 @@
|
||||
/* Memory management macros */
|
||||
#define USBD_malloc (uint32_t *)USBD_static_malloc
|
||||
#define USBD_free USBD_static_free
|
||||
#define USBD_memset /* Not used */
|
||||
#define USBD_memcpy /* Not used */
|
||||
|
||||
#define USBD_Delay HAL_Delay
|
||||
//#define USBD_memset /* Not used */
|
||||
//#define USBD_memcpy /* Not used */
|
||||
//
|
||||
//#define USBD_Delay HAL_Delay
|
||||
|
||||
/* For footprint reasons and since only one allocation is handled in the HID class
|
||||
driver, the malloc/free is changed into a static allocation method */
|
||||
|
||||
Reference in New Issue
Block a user