STM32F4xx HAL Documentation
Hardware Abstraction Layer for STM32F4 familiy
|
Cortex control functions. More...
Functions | |
uint32_t | HAL_NVIC_GetPriorityGrouping (void) |
Gets the priority grouping field from the NVIC Interrupt Controller. | |
void | HAL_NVIC_GetPriority (IRQn_Type IRQn, uint32_t PriorityGroup, uint32_t *pPreemptPriority, uint32_t *pSubPriority) |
Gets the priority of an interrupt. | |
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). | |
void | HAL_NVIC_SetPendingIRQ (IRQn_Type IRQn) |
Sets Pending bit of an external interrupt. | |
void | HAL_NVIC_ClearPendingIRQ (IRQn_Type IRQn) |
Clears the pending bit of an external interrupt. | |
uint32_t | HAL_NVIC_GetActive (IRQn_Type IRQn) |
Gets active interrupt ( reads the active register in NVIC and returns the active bit). | |
void | HAL_SYSTICK_CLKSourceConfig (uint32_t CLKSource) |
Configures the SysTick clock source. | |
void | HAL_SYSTICK_IRQHandler (void) |
This function handles SYSTICK interrupt request. | |
void | HAL_SYSTICK_Callback (void) |
SYSTICK callback. | |
void | HAL_CORTEX_ClearEvent (void) |
Clear pending events. | |
Cortex control functions.
============================================================================== ##### Peripheral Control functions ##### ============================================================================== [..] This subsection provides a set of functions allowing to control the CORTEX (NVIC, SYSTICK, MPU) functionalities.
uint32_t HAL_NVIC_GetPriorityGrouping | ( | void | ) |
#include <stm32f4xx_hal_cortex.h>
Gets the priority grouping field from the NVIC Interrupt Controller.
Priority | grouping field (SCB->AIRCR [10:8] PRIGROUP field) |
Definition at line 378 of file stm32f4xx_hal_cortex.c.
void HAL_NVIC_GetPriority | ( | IRQn_Type | IRQn, |
uint32_t | PriorityGroup, | ||
uint32_t * | pPreemptPriority, | ||
uint32_t * | pSubPriority ) |
#include <stm32f4xx_hal_cortex.h>
Gets the priority of an interrupt.
IRQn | External 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)) |
PriorityGroup | the priority grouping bits length. This parameter can be one of the following values:
|
pPreemptPriority | Pointer on the Preemptive priority value (starting from 0). |
pSubPriority | Pointer on the Subpriority value (starting from 0). |
None |
Definition at line 405 of file stm32f4xx_hal_cortex.c.
References assert_param, and IS_NVIC_PRIORITY_GROUP.
uint32_t HAL_NVIC_GetPendingIRQ | ( | IRQn_Type | IRQn | ) |
#include <stm32f4xx_hal_cortex.h>
Gets Pending Interrupt (reads the pending register in the NVIC and returns the pending bit for the specified interrupt).
IRQn | External 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)) |
status | - 0 Interrupt status is not pending.
|
Definition at line 438 of file stm32f4xx_hal_cortex.c.
References assert_param, and IS_NVIC_DEVICE_IRQ.
void HAL_NVIC_SetPendingIRQ | ( | IRQn_Type | IRQn | ) |
#include <stm32f4xx_hal_cortex.h>
Sets Pending bit of an external interrupt.
IRQn | External 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)) |
None |
Definition at line 420 of file stm32f4xx_hal_cortex.c.
References assert_param, and IS_NVIC_DEVICE_IRQ.
void HAL_NVIC_ClearPendingIRQ | ( | IRQn_Type | IRQn | ) |
#include <stm32f4xx_hal_cortex.h>
Clears the pending bit of an external interrupt.
IRQn | External 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)) |
None |
Definition at line 454 of file stm32f4xx_hal_cortex.c.
References assert_param, and IS_NVIC_DEVICE_IRQ.
uint32_t HAL_NVIC_GetActive | ( | IRQn_Type | IRQn | ) |
#include <stm32f4xx_hal_cortex.h>
Gets active interrupt ( reads the active register in NVIC and returns the active bit).
IRQn | External 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)) |
status | - 0 Interrupt status is not pending.
|
Definition at line 471 of file stm32f4xx_hal_cortex.c.
References assert_param, and IS_NVIC_DEVICE_IRQ.
void HAL_SYSTICK_CLKSourceConfig | ( | uint32_t | CLKSource | ) |
#include <stm32f4xx_hal_cortex.h>
Configures the SysTick clock source.
CLKSource | specifies the SysTick clock source. This parameter can be one of the following values:
|
None |
Definition at line 488 of file stm32f4xx_hal_cortex.c.
References assert_param, IS_SYSTICK_CLK_SOURCE, and SYSTICK_CLKSOURCE_HCLK.
void HAL_SYSTICK_IRQHandler | ( | void | ) |
#include <stm32f4xx_hal_cortex.h>
This function handles SYSTICK interrupt request.
None |
Definition at line 506 of file stm32f4xx_hal_cortex.c.
References HAL_SYSTICK_Callback().
__weak void HAL_SYSTICK_Callback | ( | void | ) |
#include <stm32f4xx_hal_cortex.h>
SYSTICK callback.
None |
Definition at line 515 of file stm32f4xx_hal_cortex.c.
Referenced by HAL_SYSTICK_IRQHandler().
void HAL_CORTEX_ClearEvent | ( | void | ) |
#include <stm32f4xx_hal_cortex.h>
Clear pending events.
None |
Definition at line 368 of file stm32f4xx_hal_cortex.c.