From 0e8196e5b8f9083e9a67c0c1bdd8de3301187412 Mon Sep 17 00:00:00 2001 From: bcostm Date: Wed, 26 Oct 2016 16:36:18 +0200 Subject: [PATCH] Add volatile on one variable (alignment with 16bit file) --- targets/TARGET_STM/stm_hal_tick_32b.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/targets/TARGET_STM/stm_hal_tick_32b.c b/targets/TARGET_STM/stm_hal_tick_32b.c index bb2eec16cf..733ceabb26 100644 --- a/targets/TARGET_STM/stm_hal_tick_32b.c +++ b/targets/TARGET_STM/stm_hal_tick_32b.c @@ -33,7 +33,7 @@ #define DEBUG_TICK 0 // Set to 1 to toggle a pin (see below which pin) at each tick TIM_HandleTypeDef TimMasterHandle; -uint32_t PreviousVal = 0; +volatile uint32_t PreviousVal = 0; void us_ticker_irq_handler(void);