思澈科技软件开发工具包  2.20

Cortex control functions. More...

Functions

uint32_t HAL_NVIC_GetPriorityGrouping (void)
 Get the priority grouping field from the NVIC Interrupt Controller. More...
 
void HAL_NVIC_GetPriority (IRQn_Type IRQn, uint32_t PriorityGroup, uint32_t *pPreemptPriority, uint32_t *pSubPriority)
 Get the priority of an interrupt. More...
 
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). More...
 
void HAL_NVIC_SetPendingIRQ (IRQn_Type IRQn)
 Set Pending bit of an external interrupt. More...
 
void HAL_NVIC_ClearPendingIRQ (IRQn_Type IRQn)
 Clear the pending bit of an external interrupt. More...
 
uint32_t HAL_NVIC_GetActive (IRQn_Type IRQn)
 Get active interrupt (read the active register in NVIC and return the active bit). More...
 
uint32_t HAL_NVIC_GetEnableIRQ (IRQn_Type IRQn)
 Get the enable status for the specified interrupt IRQn. More...
 
void HAL_SYSTICK_CLKSourceConfig (uint32_t CLKSource)
 Configure the SysTick clock source. More...
 
void HAL_SYSTICK_IRQHandler (void)
 Handle SYSTICK interrupt request. More...
 
void HAL_SYSTICK_Callback (void)
 SYSTICK callback. More...
 

Detailed Description

Cortex control functions.

Function Documentation

◆ HAL_NVIC_ClearPendingIRQ()

void HAL_NVIC_ClearPendingIRQ ( IRQn_Type  IRQn)

Clear the pending bit of an external interrupt.

Parameters
IRQnExternal interrupt number. This parameter can be an enumerator of IRQn_Type enumeration
Return values
None

◆ 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
IRQnExternal 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
IRQnExternal interrupt number This parameter can be an enumerator of IRQn_Type enumeration
Return values
status- 0 Interrupt is not enabled.
  • 1 Interrupt is 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
IRQnExternal 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
IRQnExternal interrupt number. This parameter can be an enumerator of IRQn_Type enumeration
PriorityGroupthe 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
pPreemptPriorityPointer on the Preemptive priority value (starting from 0).
pSubPriorityPointer on the Subpriority value (starting from 0).
Return values
None

◆ HAL_NVIC_GetPriorityGrouping()

uint32_t HAL_NVIC_GetPriorityGrouping ( void  )

Get the priority grouping field from the NVIC Interrupt Controller.

Return values
Prioritygrouping 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
IRQnExternal interrupt number This parameter can be an enumerator of IRQn_Type enumeration
Return values
None

◆ HAL_SYSTICK_Callback()

void HAL_SYSTICK_Callback ( void  )

SYSTICK callback.

Return values
None

◆ HAL_SYSTICK_CLKSourceConfig()

void HAL_SYSTICK_CLKSourceConfig ( uint32_t  CLKSource)

Configure the SysTick clock source.

Parameters
CLKSourcespecifies 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

◆ HAL_SYSTICK_IRQHandler()

void HAL_SYSTICK_IRQHandler ( void  )

Handle SYSTICK interrupt request.

Return values
None