STM32F4xx HAL Documentation
Hardware Abstraction Layer for STM32F4 familiy
Loading...
Searching...
No Matches
stm32f4xx_hal_cortex.h File Reference

Header file of CORTEX HAL module. More...

Include dependency graph for stm32f4xx_hal_cortex.h:

Go to the source code of this file.

Macros

#define NVIC_PRIORITYGROUP_0   0x00000007U
 
#define NVIC_PRIORITYGROUP_1   0x00000006U
 
#define NVIC_PRIORITYGROUP_2   0x00000005U
 
#define NVIC_PRIORITYGROUP_3   0x00000004U
 
#define NVIC_PRIORITYGROUP_4   0x00000003U
 
#define SYSTICK_CLKSOURCE_HCLK_DIV8   0x00000000U
 
#define SYSTICK_CLKSOURCE_HCLK   0x00000004U
 
#define IS_NVIC_PRIORITY_GROUP(GROUP)
 
#define IS_NVIC_PREEMPTION_PRIORITY(PRIORITY)
 
#define IS_NVIC_SUB_PRIORITY(PRIORITY)
 
#define IS_NVIC_DEVICE_IRQ(IRQ)
 
#define IS_SYSTICK_CLK_SOURCE(SOURCE)
 

Functions

void HAL_NVIC_SetPriorityGrouping (uint32_t PriorityGroup)
 Sets the priority grouping field (preemption priority and subpriority) using the required unlock sequence.
 
void HAL_NVIC_SetPriority (IRQn_Type IRQn, uint32_t PreemptPriority, uint32_t SubPriority)
 Sets the priority of an interrupt.
 
void HAL_NVIC_EnableIRQ (IRQn_Type IRQn)
 Enables a device specific interrupt in the NVIC interrupt controller.
 
void HAL_NVIC_DisableIRQ (IRQn_Type IRQn)
 Disables a device specific interrupt in the NVIC interrupt controller.
 
void HAL_NVIC_SystemReset (void)
 Initiates a system reset request to reset the MCU.
 
uint32_t HAL_SYSTICK_Config (uint32_t TicksNumb)
 Initializes the System Timer and its interrupt, and starts the System Tick Timer. Counter is in free running mode to generate periodic interrupts.
 
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.
 

Detailed Description

Header file of CORTEX HAL module.

Author
MCD Application Team
Attention

Copyright (c) 2017 STMicroelectronics. All rights reserved.

This software is licensed under terms that can be found in the LICENSE file in the root directory of this software component. If no LICENSE file comes with this software, it is provided AS-IS.

Definition in file stm32f4xx_hal_cortex.h.