diff options
author | Damien George <damien.p.george@gmail.com> | 2018-06-20 12:23:46 +1000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2018-06-20 12:24:18 +1000 |
commit | 561ae9a91bebac3184596cefc85f5cea82974aae (patch) | |
tree | 1bc93c58f4a2d8df50e180e3975c1bb328eab365 | |
parent | 5962c210c59c21cd1641bac9d7a84c3a4a8b0cf6 (diff) |
stm32/boards/NUCLEO_F091RC: Fix TICK_INT_PRIORITY so it is highest prio.
Fixes issue #3880.
-rw-r--r-- | ports/stm32/boards/NUCLEO_F091RC/stm32f0xx_hal_conf.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/ports/stm32/boards/NUCLEO_F091RC/stm32f0xx_hal_conf.h b/ports/stm32/boards/NUCLEO_F091RC/stm32f0xx_hal_conf.h index 4e4ab9dbf..53ea047cb 100644 --- a/ports/stm32/boards/NUCLEO_F091RC/stm32f0xx_hal_conf.h +++ b/ports/stm32/boards/NUCLEO_F091RC/stm32f0xx_hal_conf.h @@ -162,9 +162,7 @@ * @brief This is the HAL system configuration section */ #define VDD_VALUE 3300U /*!< Value of VDD in mv */ -#define TICK_INT_PRIORITY ((uint32_t)(1U<<__NVIC_PRIO_BITS) - 1U) /*!< tick interrupt priority (lowest by default) */ - /* Warning: Must be set to higher priority for HAL_Delay() */ - /* and HAL_GetTick() usage under interrupt context */ +#define TICK_INT_PRIORITY ((uint32_t)0x00) /*!< tick interrupt priority */ #define USE_RTOS 0U #define PREFETCH_ENABLE 1U #define INSTRUCTION_CACHE_ENABLE 0U |