Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of mbed-dev by
Diff: targets/TARGET_STM/hal_tick_32b.c
- Revision:
- 174:b96e65c34a4d
- Parent:
- 173:e131a1973e81
- Child:
- 175:af195413fb11
--- a/targets/TARGET_STM/hal_tick_32b.c Fri Sep 15 14:59:18 2017 +0100
+++ b/targets/TARGET_STM/hal_tick_32b.c Mon Oct 02 15:33:19 2017 +0100
@@ -138,15 +138,15 @@
return HAL_OK;
}
+/* NOTE: must be called with interrupts disabled! */
void HAL_SuspendTick(void)
{
- TimMasterHandle.Instance = TIM_MST;
__HAL_TIM_DISABLE_IT(&TimMasterHandle, TIM_IT_CC2);
}
+/* NOTE: must be called with interrupts disabled! */
void HAL_ResumeTick(void)
{
- TimMasterHandle.Instance = TIM_MST;
__HAL_TIM_ENABLE_IT(&TimMasterHandle, TIM_IT_CC2);
}
