implemented timebase using TIM14 instead of TIM1

This commit is contained in:
2018-01-27 18:55:17 +01:00
parent 1159fef33b
commit 94e87c74d3
8 changed files with 154 additions and 36 deletions
+4 -4
View File
@@ -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
View File
@@ -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 */