Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Peripheral Control functions
[CORTEX Exported Functions]
Cortex control functions. More...
Functions | |
| 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. | |
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
| void HAL_MPU_ConfigRegion | ( | MPU_Region_InitTypeDef * | MPU_Init ) |
Initializes and configures the Region and the memory to be protected.
- Parameters:
-
MPU_Init,: Pointer to a MPU_Region_InitTypeDef structure that contains the initialization and configuration information.
- Return values:
-
None
Definition at line 301 of file stm32f1xx_hal_cortex.c.
| void HAL_NVIC_ClearPendingIRQ | ( | IRQn_Type | IRQn ) |
Clears the pending bit of an external interrupt.
- Parameters:
-
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 (stm32f10xxx.h))
- Return values:
-
None
Definition at line 415 of file stm32f1xx_hal_cortex.c.
| uint32_t HAL_NVIC_GetActive | ( | IRQn_Type | IRQn ) |
Gets active interrupt ( reads the active register in NVIC and returns the active bit).
- Parameters:
-
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 (stm32f10xxx.h))
- Return values:
-
status,: - 0 Interrupt status is not pending. - 1 Interrupt status is pending.
Definition at line 429 of file stm32f1xx_hal_cortex.c.
| 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:
-
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 (stm32f10xxx.h))
- Return values:
-
status,: - 0 Interrupt status is not pending. - 1 Interrupt status is pending.
Definition at line 402 of file stm32f1xx_hal_cortex.c.
| void HAL_NVIC_GetPriority | ( | IRQn_Type | IRQn, |
| uint32_t | PriorityGroup, | ||
| uint32_t * | pPreemptPriority, | ||
| uint32_t * | pSubPriority | ||
| ) |
Gets the priority of an interrupt.
- Parameters:
-
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 (stm32f10xxx.h)) PriorityGroup,: the priority grouping bits length. This parameter can be one of the following values: - NVIC_PRIORITYGROUP_0: 0 bits for pre-emption priority 4 bits for subpriority
- NVIC_PRIORITYGROUP_1: 1 bits for pre-emption priority 3 bits for subpriority
- NVIC_PRIORITYGROUP_2: 2 bits for pre-emption priority 2 bits for subpriority
- NVIC_PRIORITYGROUP_3: 3 bits for pre-emption priority 1 bits for subpriority
- NVIC_PRIORITYGROUP_4: 4 bits for pre-emption priority 0 bits for subpriority
pPreemptPriority,: Pointer on the Preemptive priority value (starting from 0). pSubPriority,: Pointer on the Subpriority value (starting from 0).
- Return values:
-
None
Definition at line 372 of file stm32f1xx_hal_cortex.c.
| uint32_t HAL_NVIC_GetPriorityGrouping | ( | void | ) |
Gets the priority grouping field from the NVIC Interrupt Controller.
- Return values:
-
Priority grouping field (SCB->AIRCR [10:8] PRIGROUP field)
Definition at line 345 of file stm32f1xx_hal_cortex.c.
| void HAL_NVIC_SetPendingIRQ | ( | IRQn_Type | IRQn ) |
Sets Pending bit of an external interrupt.
- Parameters:
-
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 (stm32f10xxx.h))
- Return values:
-
None
Definition at line 387 of file stm32f1xx_hal_cortex.c.
| __weak void HAL_SYSTICK_Callback | ( | void | ) |
| void HAL_SYSTICK_CLKSourceConfig | ( | uint32_t | CLKSource ) |
Configures the SysTick clock source.
- Parameters:
-
CLKSource,: specifies 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 443 of file stm32f1xx_hal_cortex.c.
| void HAL_SYSTICK_IRQHandler | ( | void | ) |
This function handles SYSTICK interrupt request.
- Return values:
-
None
Definition at line 461 of file stm32f1xx_hal_cortex.c.
Generated on Tue Jul 12 2022 15:37:32 by
1.7.2