HAL CORTEX Generic Driver
Initializes the System Timer and its interrupt, and starts the System
Tick Timer.
TicksNumb: Specifies the ticks Number of ticks between two
interrupts.
status: - 0 Function succeeded.
1 Function failed.
HAL_NVIC_GetPriorityGrouping
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)
HAL_NVIC_GetPriority
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 (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).
HAL_NVIC_GetPendingIRQ
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