Hal_Nvic_Setprioritygrouping; Peripheral Control Functions; Detailed Description Of Functions - ST STM32F2 User Manual

Description of stm32f2 hal and low layer drivers
Hide thumbs Also See for STM32F2:
Table of Contents

Advertisement

HAL CORTEX Generic Driver
This section contains the following APIs:

HAL_NVIC_SetPriorityGrouping()

HAL_NVIC_SetPriority()
HAL_NVIC_EnableIRQ()
HAL_NVIC_DisableIRQ()
HAL_NVIC_SystemReset()
HAL_SYSTICK_Config()
9.2.3

Peripheral Control functions

This subsection provides a set of functions allowing to control the CORTEX (NVIC,
SYSTICK, MPU) functionalities.
This section contains the following APIs:
HAL_MPU_Disable()
HAL_MPU_Enable()
HAL_MPU_ConfigRegion()
HAL_NVIC_GetPriorityGrouping()
HAL_NVIC_GetPriority()
HAL_NVIC_SetPendingIRQ()
HAL_NVIC_GetPendingIRQ()
HAL_NVIC_ClearPendingIRQ()
HAL_NVIC_GetActive()
HAL_SYSTICK_CLKSourceConfig()
HAL_SYSTICK_IRQHandler()
HAL_SYSTICK_Callback()
9.2.4

Detailed description of functions

HAL_NVIC_SetPriorityGrouping
Function name
Function description
Parameters
Return values
Notes
124/1371
void HAL_NVIC_SetPriorityGrouping (uint32_t PriorityGroup)
Sets the priority grouping field (preemption priority and subpriority)
using the required unlock sequence.
PriorityGroup: The priority grouping bits length. This
parameter can be one of the following values:
NVIC_PRIORITYGROUP_0: 0 bits for preemption
priority 4 bits for subpriority
NVIC_PRIORITYGROUP_1: 1 bits for preemption
priority 3 bits for subpriority
NVIC_PRIORITYGROUP_2: 2 bits for preemption
priority 2 bits for subpriority
NVIC_PRIORITYGROUP_3: 3 bits for preemption
priority 1 bits for subpriority
NVIC_PRIORITYGROUP_4: 4 bits for preemption
priority 0 bits for subpriority
None:
When the NVIC_PriorityGroup_0 is selected, IRQ preemption
is no more possible. The pending IRQ priority will be
managed only by the subpriority.
DocID028236 Rev 2
UM1940

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the STM32F2 and is the answer not in the manual?

Questions and answers

Table of Contents

Save PDF