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.
Dependents: SPIne CH_Communicatuin_Test CH_Communicatuin_Test2 MCP_SPIne ... more
Fork of mbed-dev-f303 by
Diff: targets/TARGET_STM/hal_tick_16b.c
- Revision:
- 175:af195413fb11
- Parent:
- 174:b96e65c34a4d
--- a/targets/TARGET_STM/hal_tick_16b.c Mon Oct 02 15:33:19 2017 +0100
+++ b/targets/TARGET_STM/hal_tick_16b.c Wed Oct 11 12:45:49 2017 +0100
@@ -148,12 +148,11 @@
// Enable timer
HAL_TIM_Base_Start(&TimMasterHandle);
-#ifndef NDEBUG
-#ifdef TIM_MST_DBGMCU_FREEZE
// Freeze timer on stop/breakpoint
+ // Define the FREEZE_TIMER_ON_DEBUG macro in mbed_app.json for example
+#if !defined(NDEBUG) && defined(FREEZE_TIMER_ON_DEBUG) && defined(TIM_MST_DBGMCU_FREEZE)
TIM_MST_DBGMCU_FREEZE;
#endif
-#endif
#if DEBUG_TICK > 0
__HAL_RCC_GPIOB_CLK_ENABLE();
