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 UDNS1_mbed-dev by
Diff: targets/TARGET_STM/hal_tick_16b.c
- Revision:
- 156:95d6b41a828b
- Parent:
- 153:fa9ff456f731
- Child:
- 165:e614a9f1c9e2
--- a/targets/TARGET_STM/hal_tick_16b.c Thu Jan 05 10:51:54 2017 +0000 +++ b/targets/TARGET_STM/hal_tick_16b.c Mon Jan 16 15:03:32 2017 +0000 @@ -118,6 +118,9 @@ TimMasterHandle.Init.Prescaler = (uint32_t)(SystemCoreClock / 1000000) - 1; // 1 us tick TimMasterHandle.Init.ClockDivision = 0; TimMasterHandle.Init.CounterMode = TIM_COUNTERMODE_UP; +#ifdef TARGET_STM32F0 + TimMasterHandle.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_DISABLE; +#endif HAL_TIM_Base_Init(&TimMasterHandle); // Configure output compare channel 1 for mbed timeout (enabled later when used)