Skip to content

Commit 561ae9a

Browse files
committed
stm32/boards/NUCLEO_F091RC: Fix TICK_INT_PRIORITY so it is highest prio.
Fixes issue adafruit#3880.
1 parent 5962c21 commit 561ae9a

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

ports/stm32/boards/NUCLEO_F091RC/stm32f0xx_hal_conf.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,9 +162,7 @@
162162
* @brief This is the HAL system configuration section
163163
*/
164164
#define VDD_VALUE 3300U /*!< Value of VDD in mv */
165-
#define TICK_INT_PRIORITY ((uint32_t)(1U<<__NVIC_PRIO_BITS) - 1U) /*!< tick interrupt priority (lowest by default) */
166-
/* Warning: Must be set to higher priority for HAL_Delay() */
167-
/* and HAL_GetTick() usage under interrupt context */
165+
#define TICK_INT_PRIORITY ((uint32_t)0x00) /*!< tick interrupt priority */
168166
#define USE_RTOS 0U
169167
#define PREFETCH_ENABLE 1U
170168
#define INSTRUCTION_CACHE_ENABLE 0U

0 commit comments

Comments
 (0)