STM32F4xx_HAL_Driver  1.8.3
Peripheral Control functions

Cortex control functions. More...

+ Collaboration diagram for Peripheral Control functions:

Functions

uint32_t HAL_NVIC_GetPriorityGrouping (void)
 Gets the priority grouping field from the NVIC Interrupt Controller. More...
 
void HAL_NVIC_GetPriority (IRQn_Type IRQn, uint32_t PriorityGroup, uint32_t *pPreemptPriority, uint32_t *pSubPriority)
 Gets the priority of an interrupt. More...
 
uint32_t HAL_NVIC_GetPendingIRQ (IRQn_Type IRQn)
 Gets Pending Interrupt (reads the pending register in the NVIC and returns the pending bit for the specified interrupt). More...
 
void HAL_NVIC_SetPendingIRQ (IRQn_Type IRQn)
 Sets Pending bit of an external interrupt. More...
 
void HAL_NVIC_ClearPendingIRQ (IRQn_Type IRQn)
 Clears the pending bit of an external interrupt. More...
 
uint32_t HAL_NVIC_GetActive (IRQn_Type IRQn)
 Gets active interrupt ( reads the active register in NVIC and returns the active bit). More...
 
void HAL_SYSTICK_CLKSourceConfig (uint32_t CLKSource)
 Configures the SysTick clock source. More...
 
void HAL_SYSTICK_IRQHandler (void)
 This function handles SYSTICK interrupt request. More...
 
void HAL_SYSTICK_Callback (void)
 SYSTICK callback. More...
 
void HAL_MPU_Enable (uint32_t MPU_Control)
 Enable the MPU. More...
 
void HAL_MPU_Disable (void)
 Disables the MPU. More...
 
void HAL_MPU_EnableRegion (uint32_t RegionNumber)
 Enables the MPU Region. More...
 
void HAL_MPU_DisableRegion (uint32_t RegionNumber)
 Disables the MPU Region. More...
 
void HAL_MPU_ConfigRegion (MPU_Region_InitTypeDef *MPU_Init)
 Initializes and configures the Region and the memory to be protected. More...
 
void HAL_CORTEX_ClearEvent (void)
 Clear pending events. More...
 

Detailed Description

Cortex control functions.

  ==============================================================================
                      ##### Peripheral Control functions #####
  ==============================================================================  
    [..]
      This subsection provides a set of functions allowing to control the CORTEX
      (NVIC, SYSTICK, MPU) functionalities. 


Function Documentation

◆ HAL_CORTEX_ClearEvent()

void HAL_CORTEX_ClearEvent ( void  )

Clear pending events.

Return values
None

Definition at line 368 of file stm32f4xx_hal_cortex.c.

◆ HAL_MPU_ConfigRegion()

void HAL_MPU_ConfigRegion ( MPU_Region_InitTypeDef *  MPU_Init)

Initializes and configures the Region and the memory to be protected.

Parameters
MPU_InitPointer to a MPU_Region_InitTypeDef structure that contains the initialization and configuration information.
Return values
None

Definition at line 330 of file stm32f4xx_hal_cortex.c.

◆ HAL_MPU_Disable()

void HAL_MPU_Disable ( void  )

Disables the MPU.

Return values
None

Definition at line 256 of file stm32f4xx_hal_cortex.c.

◆ HAL_MPU_DisableRegion()

void HAL_MPU_DisableRegion ( uint32_t  RegionNumber)

Disables the MPU Region.

Return values
None

Definition at line 312 of file stm32f4xx_hal_cortex.c.

◆ HAL_MPU_Enable()

void HAL_MPU_Enable ( uint32_t  MPU_Control)

Enable the MPU.

Parameters
MPU_ControlSpecifies the control mode of the MPU during hard fault, NMI, FAULTMASK and privileged access to the default memory This parameter can be one of the following values:
  • MPU_HFNMI_PRIVDEF_NONE
  • MPU_HARDFAULT_NMI
  • MPU_PRIVILEGED_DEFAULT
  • MPU_HFNMI_PRIVDEF
Return values
None

Definition at line 279 of file stm32f4xx_hal_cortex.c.

◆ HAL_MPU_EnableRegion()

void HAL_MPU_EnableRegion ( uint32_t  RegionNumber)

Enables the MPU Region.

Return values
None

Definition at line 296 of file stm32f4xx_hal_cortex.c.

◆ HAL_NVIC_ClearPendingIRQ()

void HAL_NVIC_ClearPendingIRQ ( IRQn_Type  IRQn)

Clears the pending bit of an external interrupt.

Parameters
IRQnExternal interrupt number. This parameter can be an enumerator of IRQn_Type enumeration (For the complete STM32 Devices IRQ Channels list, please refer to the appropriate CMSIS device file (stm32f4xxxx.h))
Return values
None

Definition at line 454 of file stm32f4xx_hal_cortex.c.

◆ HAL_NVIC_GetActive()

uint32_t HAL_NVIC_GetActive ( IRQn_Type  IRQn)

Gets active interrupt ( reads the active register in NVIC and returns the active bit).

Parameters
IRQnExternal interrupt number This parameter can be an enumerator of IRQn_Type enumeration (For the complete STM32 Devices IRQ Channels list, please refer to the appropriate CMSIS device file (stm32f4xxxx.h))
Return values
status- 0 Interrupt status is not pending.
  • 1 Interrupt status is pending.

Definition at line 471 of file stm32f4xx_hal_cortex.c.

◆ HAL_NVIC_GetPendingIRQ()

uint32_t HAL_NVIC_GetPendingIRQ ( IRQn_Type  IRQn)

Gets Pending Interrupt (reads the pending register in the NVIC and returns the pending bit for the specified interrupt).

Parameters
IRQnExternal interrupt number. This parameter can be an enumerator of IRQn_Type enumeration (For the complete STM32 Devices IRQ Channels list, please refer to the appropriate CMSIS device file (stm32f4xxxx.h))
Return values
status- 0 Interrupt status is not pending.
  • 1 Interrupt status is pending.

Definition at line 438 of file stm32f4xx_hal_cortex.c.

◆ HAL_NVIC_GetPriority()

void HAL_NVIC_GetPriority ( IRQn_Type  IRQn,
uint32_t  PriorityGroup,
uint32_t *  pPreemptPriority,
uint32_t *  pSubPriority 
)

Gets the priority of an interrupt.

Parameters
IRQnExternal interrupt number. This parameter can be an enumerator of IRQn_Type enumeration (For the complete STM32 Devices IRQ Channels list, please refer to the appropriate CMSIS device file (stm32f4xxxx.h))
PriorityGroupthe 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
pPreemptPriorityPointer on the Preemptive priority value (starting from 0).
pSubPriorityPointer on the Subpriority value (starting from 0).
Return values
None

Definition at line 405 of file stm32f4xx_hal_cortex.c.

◆ HAL_NVIC_GetPriorityGrouping()

uint32_t HAL_NVIC_GetPriorityGrouping ( void  )

Gets the priority grouping field from the NVIC Interrupt Controller.

Return values
Prioritygrouping field (SCB->AIRCR [10:8] PRIGROUP field)

Definition at line 378 of file stm32f4xx_hal_cortex.c.

◆ HAL_NVIC_SetPendingIRQ()

void HAL_NVIC_SetPendingIRQ ( IRQn_Type  IRQn)

Sets Pending bit of an external interrupt.

Parameters
IRQnExternal interrupt number This parameter can be an enumerator of IRQn_Type enumeration (For the complete STM32 Devices IRQ Channels list, please refer to the appropriate CMSIS device file (stm32f4xxxx.h))
Return values
None

Definition at line 420 of file stm32f4xx_hal_cortex.c.

◆ HAL_SYSTICK_Callback()

__weak void HAL_SYSTICK_Callback ( void  )

SYSTICK callback.

Return values
None

Definition at line 515 of file stm32f4xx_hal_cortex.c.

◆ HAL_SYSTICK_CLKSourceConfig()

void HAL_SYSTICK_CLKSourceConfig ( uint32_t  CLKSource)

Configures the SysTick clock source.

Parameters
CLKSourcespecifies the SysTick clock source. This parameter can be one of the following values:
  • SYSTICK_CLKSOURCE_HCLK_DIV8: AHB clock divided by 8 selected as SysTick clock source.
  • SYSTICK_CLKSOURCE_HCLK: AHB clock selected as SysTick clock source.
Return values
None

Definition at line 488 of file stm32f4xx_hal_cortex.c.

◆ HAL_SYSTICK_IRQHandler()

void HAL_SYSTICK_IRQHandler ( void  )

This function handles SYSTICK interrupt request.

Return values
None

Definition at line 506 of file stm32f4xx_hal_cortex.c.