Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion Libraries/PY32F002B_LL_Driver/Inc/py32f002b_ll_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,20 @@ __STATIC_INLINE void LL_InitTick(uint32_t HCLKFrequency, uint32_t Ticks)
SysTick_CTRL_ENABLE_Msk; /* Enable the Systick Timer */
}

void LL_Init1msTick(uint32_t HCLKFrequency);
/**
* @brief This function configures the Cortex-M SysTick source to have 1ms time base.
* @note When a RTOS is used, it is recommended to avoid changing the Systick
* configuration by calling this function, for a delay use rather osDelay RTOS service.
* @param HCLKFrequency HCLK frequency in Hz
* @note HCLK frequency can be calculated thanks to RCC helper macro or function @ref LL_RCC_GetSystemClocksFreq
* @retval None
*/
__STATIC_INLINE void LL_Init1msTick(uint32_t HCLKFrequency)
{
/* Use frequency provided in argument */
LL_InitTick(HCLKFrequency, 1000U);
}

void LL_mDelay(uint32_t Delay);

/**
Expand Down
14 changes: 0 additions & 14 deletions Libraries/PY32F002B_LL_Driver/Src/py32f002b_ll_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,20 +89,6 @@
* @{
*/

/**
* @brief This function configures the Cortex-M SysTick source to have 1ms time base.
* @note When a RTOS is used, it is recommended to avoid changing the Systick
* configuration by calling this function, for a delay use rather osDelay RTOS service.
* @param HCLKFrequency HCLK frequency in Hz
* @note HCLK frequency can be calculated thanks to RCC helper macro or function @ref LL_RCC_GetSystemClocksFreq
* @retval None
*/
void LL_Init1msTick(uint32_t HCLKFrequency)
{
/* Use frequency provided in argument */
LL_InitTick(HCLKFrequency, 1000U);
}

/**
* @brief This function provides accurate delay (in milliseconds) based
* on SysTick counter flag
Expand Down
15 changes: 14 additions & 1 deletion Libraries/PY32F0xx_LL_Driver/Inc/py32f0xx_ll_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,20 @@ __STATIC_INLINE void LL_InitTick(uint32_t HCLKFrequency, uint32_t Ticks)
SysTick_CTRL_ENABLE_Msk; /* Enable the Systick Timer */
}

void LL_Init1msTick(uint32_t HCLKFrequency);
/**
* @brief This function configures the Cortex-M SysTick source to have 1ms time base.
* @note When a RTOS is used, it is recommended to avoid changing the Systick
* configuration by calling this function, for a delay use rather osDelay RTOS service.
* @param HCLKFrequency HCLK frequency in Hz
* @note HCLK frequency can be calculated thanks to RCC helper macro or function @ref LL_RCC_GetSystemClocksFreq
* @retval None
*/
__STATIC_INLINE void LL_Init1msTick(uint32_t HCLKFrequency)
{
/* Use frequency provided in argument */
LL_InitTick(HCLKFrequency, 1000U);
}

void LL_mDelay(uint32_t Delay);

/**
Expand Down
14 changes: 0 additions & 14 deletions Libraries/PY32F0xx_LL_Driver/Src/py32f0xx_ll_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -114,20 +114,6 @@
* @{
*/

/**
* @brief This function configures the Cortex-M SysTick source to have 1ms time base.
* @note When a RTOS is used, it is recommended to avoid changing the Systick
* configuration by calling this function, for a delay use rather osDelay RTOS service.
* @param HCLKFrequency HCLK frequency in Hz
* @note HCLK frequency can be calculated thanks to RCC helper macro or function @ref LL_RCC_GetSystemClocksFreq
* @retval None
*/
void LL_Init1msTick(uint32_t HCLKFrequency)
{
/* Use frequency provided in argument */
LL_InitTick(HCLKFrequency, 1000U);
}

/**
* @brief This function provides accurate delay (in milliseconds) based
* on SysTick counter flag
Expand Down