mbed
Fork of mbed-dev by
Diff: targets/TARGET_STM/hal_tick_32b.c
- Revision:
- 167:e84263d55307
- Parent:
- 165:e614a9f1c9e2
- Child:
- 174:e131a1973e81
diff -r c97ed07ec1a8 -r e84263d55307 targets/TARGET_STM/hal_tick_32b.c --- a/targets/TARGET_STM/hal_tick_32b.c Thu Jun 08 15:02:37 2017 +0100 +++ b/targets/TARGET_STM/hal_tick_32b.c Wed Jun 21 17:46:44 2017 +0100 @@ -101,7 +101,7 @@ #if !TARGET_STM32L1 TimMasterHandle.Init.RepetitionCounter = 0; #endif -#if TARGET_STM32F0||TARGET_STM32F7 +#ifdef TIM_AUTORELOAD_PRELOAD_DISABLE TimMasterHandle.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_DISABLE; #endif HAL_TIM_OC_Init(&TimMasterHandle);