EasyManua.ls Logo

ST STM32F2

ST STM32F2
1371 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
HAL CORTEX Generic Driver
UM1940
126/1371
DocID028236 Rev 2
Function description
Initializes the System Timer and its interrupt, and starts the System
Tick Timer.
Parameters
TicksNumb: Specifies the ticks Number of ticks between two
interrupts.
Return values
status: - 0 Function succeeded.
1 Function failed.
HAL_NVIC_GetPriorityGrouping
Function name
uint32_t HAL_NVIC_GetPriorityGrouping (void )
Function description
Gets the priority grouping field from the NVIC Interrupt Controller.
Return values
Priority: grouping field (SCB->AIRCR [10:8] PRIGROUP
field)
HAL_NVIC_GetPriority
Function name
void HAL_NVIC_GetPriority (IRQn_Type IRQn, uint32_t
PriorityGroup, uint32_t * pPreemptPriority, uint32_t *
pSubPriority)
Function description
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 (stm32f2xxxx.h))
PriorityGroup: the priority grouping bits length. This
parameter can be one of the following values:
NVIC_PRIORITYGROUP_0: 0 bits for preemption
priority 4 bits for subpriority
NVIC_PRIORITYGROUP_1: 1 bits for preemption
priority 3 bits for subpriority
NVIC_PRIORITYGROUP_2: 2 bits for preemption
priority 2 bits for subpriority
NVIC_PRIORITYGROUP_3: 3 bits for preemption
priority 1 bits for subpriority
NVIC_PRIORITYGROUP_4: 4 bits for preemption
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:
HAL_NVIC_GetPendingIRQ
Function name
uint32_t HAL_NVIC_GetPendingIRQ (IRQn_Type IRQn)
Function description
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

Table of Contents

Related product manuals