Skip to content
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,19 @@ HAL_StatusTypeDef HAL_InitTick(uint32_t TickPriority) {
return HAL_OK;
}

void HAL_SuspendTick(void) {
TimMasterHandle.Instance = TIM_MST;

// Disable HAL tick and us_ticker update interrupts (used for 32 bit counter)
__HAL_TIM_DISABLE_IT(&TimMasterHandle, (TIM_IT_CC2 | TIM_IT_UPDATE));
}

void HAL_ResumeTick(void) {
TimMasterHandle.Instance = TIM_MST;

// Enable HAL tick and us_ticker update interrupts (used for 32 bit counter)
Copy link
Contributor

@0xc0170 0xc0170 Jul 25, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you fix the formatting of these 2 lines? I noticed them as well in some ST code...

LGTM otherwise

__HAL_TIM_ENABLE_IT(&TimMasterHandle, (TIM_IT_CC2 | TIM_IT_UPDATE));
}
/**
* @}
*/
Expand Down