Cortex control functions.
More...
Cortex control functions.
◆ HAL_NVIC_ClearPendingIRQ()
void HAL_NVIC_ClearPendingIRQ |
( |
IRQn_Type |
IRQn | ) |
|
Clear the pending bit of an external interrupt.
- Parameters
-
IRQn | External interrupt number. This parameter can be an enumerator of IRQn_Type enumeration |
- Return values
-
◆ HAL_NVIC_GetActive()
uint32_t HAL_NVIC_GetActive |
( |
IRQn_Type |
IRQn | ) |
|
Get active interrupt (read the active register in NVIC and return the active bit).
- Parameters
-
IRQn | External interrupt number This parameter can be an enumerator of IRQn_Type enumeration |
- Return values
-
status | - 0 Interrupt status is not pending.
- 1 Interrupt status is pending.
|
◆ HAL_NVIC_GetEnableIRQ()
uint32_t HAL_NVIC_GetEnableIRQ |
( |
IRQn_Type |
IRQn | ) |
|
Get the enable status for the specified interrupt IRQn.
- Parameters
-
IRQn | External interrupt number This parameter can be an enumerator of IRQn_Type enumeration |
- Return values
-
status | - 0 Interrupt is not enabled.
|
◆ HAL_NVIC_GetPendingIRQ()
uint32_t HAL_NVIC_GetPendingIRQ |
( |
IRQn_Type |
IRQn | ) |
|
Get Pending Interrupt (read the pending register in the NVIC and return the pending bit for the specified interrupt).
- Parameters
-
IRQn | External interrupt number. This parameter can be an enumerator of IRQn_Type enumeration |
- Return values
-
status | - 0 Interrupt status is not pending.
- 1 Interrupt status is pending.
|
◆ HAL_NVIC_GetPriority()
void HAL_NVIC_GetPriority |
( |
IRQn_Type |
IRQn, |
|
|
uint32_t |
PriorityGroup, |
|
|
uint32_t * |
pPreemptPriority, |
|
|
uint32_t * |
pSubPriority |
|
) |
| |
Get the priority of an interrupt.
- Parameters
-
IRQn | External interrupt number. This parameter can be an enumerator of IRQn_Type enumeration |
PriorityGroup | the priority grouping bits length. This parameter can be one of the following values:
- NVIC_PRIORITYGROUP_0: 0 bit for pre-emption priority, 4 bits for subpriority
- NVIC_PRIORITYGROUP_1: 1 bit 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 bit for subpriority
- NVIC_PRIORITYGROUP_4: 4 bits for pre-emption priority, 0 bit for subpriority
|
pPreemptPriority | Pointer on the Preemptive priority value (starting from 0). |
pSubPriority | Pointer on the Subpriority value (starting from 0). |
- Return values
-
◆ HAL_NVIC_GetPriorityGrouping()
uint32_t HAL_NVIC_GetPriorityGrouping |
( |
void |
| ) |
|
Get the priority grouping field from the NVIC Interrupt Controller.
- Return values
-
Priority | grouping field (SCB->AIRCR [10:8] PRIGROUP field) |
◆ HAL_NVIC_SetPendingIRQ()
void HAL_NVIC_SetPendingIRQ |
( |
IRQn_Type |
IRQn | ) |
|
Set Pending bit of an external interrupt.
- Parameters
-
IRQn | External interrupt number This parameter can be an enumerator of IRQn_Type enumeration |
- Return values
-
◆ HAL_SYSTICK_Callback()
void HAL_SYSTICK_Callback |
( |
void |
| ) |
|
SYSTICK callback.
- Return values
-
◆ HAL_SYSTICK_CLKSourceConfig()
void HAL_SYSTICK_CLKSourceConfig |
( |
uint32_t |
CLKSource | ) |
|
Configure 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
-
◆ HAL_SYSTICK_IRQHandler()
void HAL_SYSTICK_IRQHandler |
( |
void |
| ) |
|
Handle SYSTICK interrupt request.
- Return values
-