STM32H735xx HAL User Manual
|
Cortex control functions. More...
Functions | |
void | HAL_MPU_Disable (void) |
Disables the MPU. | |
void | HAL_MPU_Enable (uint32_t MPU_Control) |
Enables the MPU. | |
void | HAL_MPU_ConfigRegion (MPU_Region_InitTypeDef *MPU_Init) |
Initializes and configures the Region and the memory to be protected. | |
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. | |
void | HAL_NVIC_SetPendingIRQ (IRQn_Type IRQn) |
Sets Pending bit of an external 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_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. | |
__weak void | HAL_SYSTICK_Callback (void) |
SYSTICK callback. | |
uint32_t | HAL_GetCurrentCPUID (void) |
Returns the current CPU ID. |
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_GetCurrentCPUID | ( | void | ) |
Returns the current CPU ID.
CPU | identifier |
Definition at line 509 of file stm32h7xx_hal_cortex.c.
References CM7_CPUID.
Referenced by HAL_COMP_IRQHandler(), HAL_ETH_IRQHandler(), HAL_EXTI_ClearPending(), HAL_EXTI_GetPending(), HAL_EXTI_IRQHandler(), HAL_HSEM_ActivateNotification(), HAL_HSEM_DeactivateNotification(), HAL_HSEM_FastTake(), HAL_HSEM_IRQHandler(), HAL_HSEM_Release(), HAL_HSEM_Take(), HAL_MDIOS_IRQHandler(), HAL_PWR_EnterSTANDBYMode(), HAL_PWR_EnterSTOPMode(), HAL_PWR_PVD_IRQHandler(), HAL_PWREx_ClearPendingEvent(), HAL_PWREx_EnterSTANDBYMode(), HAL_PWREx_EnterSTOPMode(), HAL_PWREx_PVD_AVD_IRQHandler(), HAL_RTC_AlarmIRQHandler(), HAL_RTC_SetAlarm_IT(), HAL_RTCEx_SetTamper_IT(), HAL_RTCEx_SetTimeStamp_IT(), HAL_RTCEx_SetWakeUpTimer_IT(), HAL_RTCEx_TamperTimeStampIRQHandler(), and HAL_RTCEx_WakeUpTimerIRQHandler().
void HAL_MPU_ConfigRegion | ( | MPU_Region_InitTypeDef * | MPU_Init | ) |
Initializes and configures the Region and the memory to be protected.
MPU_Init | Pointer to a MPU_Region_InitTypeDef structure that contains the initialization and configuration information. |
None |
Definition at line 297 of file stm32h7xx_hal_cortex.c.
References MPU_Region_InitTypeDef::AccessPermission, assert_param, MPU_Region_InitTypeDef::BaseAddress, MPU_Region_InitTypeDef::DisableExec, MPU_Region_InitTypeDef::Enable, IS_MPU_ACCESS_BUFFERABLE, IS_MPU_ACCESS_CACHEABLE, IS_MPU_ACCESS_SHAREABLE, IS_MPU_INSTRUCTION_ACCESS, IS_MPU_REGION_ENABLE, IS_MPU_REGION_NUMBER, IS_MPU_REGION_PERMISSION_ATTRIBUTE, IS_MPU_REGION_SIZE, IS_MPU_SUB_REGION_DISABLE, IS_MPU_TEX_LEVEL, MPU_Region_InitTypeDef::IsBufferable, MPU_Region_InitTypeDef::IsCacheable, MPU_Region_InitTypeDef::IsShareable, MPU_Region_InitTypeDef::Number, MPU_Region_InitTypeDef::Size, MPU_Region_InitTypeDef::SubRegionDisable, and MPU_Region_InitTypeDef::TypeExtField.
void HAL_MPU_Disable | ( | void | ) |
void HAL_MPU_Enable | ( | uint32_t | MPU_Control | ) |
Enables the MPU.
MPU_Control | Specifies 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:
|
None |
Definition at line 279 of file stm32h7xx_hal_cortex.c.
void HAL_NVIC_ClearPendingIRQ | ( | IRQn_Type | IRQn | ) |
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 (stm32h7xxxx.h)) |
None |
Definition at line 417 of file stm32h7xx_hal_cortex.c.
References assert_param, and IS_NVIC_DEVICE_IRQ.
uint32_t HAL_NVIC_GetActive | ( | IRQn_Type | IRQn | ) |
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 (stm32h7xxxx.h)) |
status | - 0 Interrupt status is not pending.
|
Definition at line 434 of file stm32h7xx_hal_cortex.c.
References assert_param, and IS_NVIC_DEVICE_IRQ.
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).
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 (stm32h7xxxx.h)) |
status | - 0 Interrupt status is not pending.
|
Definition at line 401 of file stm32h7xx_hal_cortex.c.
References assert_param, and IS_NVIC_DEVICE_IRQ.
void HAL_NVIC_GetPriority | ( | IRQn_Type | IRQn, |
uint32_t | PriorityGroup, | ||
uint32_t * | pPreemptPriority, | ||
uint32_t * | pSubPriority | ||
) |
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 (stm32h7xxxx.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 368 of file stm32h7xx_hal_cortex.c.
References assert_param, and IS_NVIC_PRIORITY_GROUP.
uint32_t HAL_NVIC_GetPriorityGrouping | ( | void | ) |
Gets the priority grouping field from the NVIC Interrupt Controller.
Priority | grouping field (SCB->AIRCR [10:8] PRIGROUP field) |
Definition at line 341 of file stm32h7xx_hal_cortex.c.
void HAL_NVIC_SetPendingIRQ | ( | IRQn_Type | IRQn | ) |
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 (stm32h7xxxx.h)) |
None |
Definition at line 383 of file stm32h7xx_hal_cortex.c.
References assert_param, and IS_NVIC_DEVICE_IRQ.
void HAL_SYSTICK_Callback | ( | void | ) |
SYSTICK callback.
None |
Definition at line 478 of file stm32h7xx_hal_cortex.c.
Referenced by HAL_SYSTICK_IRQHandler().
void HAL_SYSTICK_CLKSourceConfig | ( | uint32_t | CLKSource | ) |
Configures the SysTick clock source.
CLKSource | specifies the SysTick clock source. This parameter can be one of the following values:
|
None |
Definition at line 451 of file stm32h7xx_hal_cortex.c.
References assert_param, IS_SYSTICK_CLK_SOURCE, and SYSTICK_CLKSOURCE_HCLK.
void HAL_SYSTICK_IRQHandler | ( | void | ) |
This function handles SYSTICK interrupt request.
None |
Definition at line 469 of file stm32h7xx_hal_cortex.c.
References HAL_SYSTICK_Callback().