Удален старые сурсы. Проект компилится но не проверен в симулинке
This commit is contained in:
@@ -250,28 +250,28 @@ __weak void HAL_MspDeInit(void)
|
||||
* @param TickPriority Tick interrupt priority.
|
||||
* @retval HAL status
|
||||
*/
|
||||
__weak HAL_StatusTypeDef HAL_InitTick(uint32_t TickPriority)
|
||||
{
|
||||
/* Configure the SysTick to have interrupt in 1ms time basis*/
|
||||
if (HAL_SYSTICK_Config(SystemCoreClock / (1000U / uwTickFreq)) > 0U)
|
||||
{
|
||||
return HAL_ERROR;
|
||||
}
|
||||
|
||||
/* Configure the SysTick IRQ priority */
|
||||
if (TickPriority < (1UL << __NVIC_PRIO_BITS))
|
||||
{
|
||||
HAL_NVIC_SetPriority(SysTick_IRQn, TickPriority, 0U);
|
||||
uwTickPrio = TickPriority;
|
||||
}
|
||||
else
|
||||
{
|
||||
return HAL_ERROR;
|
||||
}
|
||||
|
||||
/* Return function status */
|
||||
return HAL_OK;
|
||||
}
|
||||
//__weak HAL_StatusTypeDef HAL_InitTick(uint32_t TickPriority)
|
||||
//{
|
||||
// /* Configure the SysTick to have interrupt in 1ms time basis*/
|
||||
// if (HAL_SYSTICK_Config(SystemCoreClock / (1000U / uwTickFreq)) > 0U)
|
||||
// {
|
||||
// return HAL_ERROR;
|
||||
// }
|
||||
//
|
||||
// /* Configure the SysTick IRQ priority */
|
||||
// if (TickPriority < (1UL << __NVIC_PRIO_BITS))
|
||||
// {
|
||||
// HAL_NVIC_SetPriority(SysTick_IRQn, TickPriority, 0U);
|
||||
// uwTickPrio = TickPriority;
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// return HAL_ERROR;
|
||||
// }
|
||||
//
|
||||
// /* Return function status */
|
||||
// return HAL_OK;
|
||||
//}
|
||||
|
||||
/**
|
||||
* @}
|
||||
@@ -412,11 +412,11 @@ __weak void HAL_Delay(uint32_t Delay)
|
||||
* implementations in user file.
|
||||
* @retval None
|
||||
*/
|
||||
__weak void HAL_SuspendTick(void)
|
||||
{
|
||||
/* Disable SysTick Interrupt */
|
||||
SysTick->CTRL &= ~SysTick_CTRL_TICKINT_Msk;
|
||||
}
|
||||
//__weak void HAL_SuspendTick(void)
|
||||
//{
|
||||
// /* Disable SysTick Interrupt */
|
||||
// SysTick->CTRL &= ~SysTick_CTRL_TICKINT_Msk;
|
||||
//}
|
||||
|
||||
/**
|
||||
* @brief Resume Tick increment.
|
||||
@@ -428,11 +428,11 @@ __weak void HAL_SuspendTick(void)
|
||||
* implementations in user file.
|
||||
* @retval None
|
||||
*/
|
||||
__weak void HAL_ResumeTick(void)
|
||||
{
|
||||
/* Enable SysTick Interrupt */
|
||||
SysTick->CTRL |= SysTick_CTRL_TICKINT_Msk;
|
||||
}
|
||||
//__weak void HAL_ResumeTick(void)
|
||||
//{
|
||||
// /* Enable SysTick Interrupt */
|
||||
// SysTick->CTRL |= SysTick_CTRL_TICKINT_Msk;
|
||||
//}
|
||||
|
||||
/**
|
||||
* @brief Returns the HAL revision
|
||||
|
||||
Reference in New Issue
Block a user