NVIC_Priority
[STM32F10x_StdPeriph_Examples]

Functions

void BusFault_Handler (void)
 This function handles Bus Fault exception.
void DebugMon_Handler (void)
 This function handles Debug Monitor exception.
void Delay (__IO uint32_t nCount)
 Inserts a delay time.
void EXTI0_IRQHandler (void)
 This function handles External interrupt Line 0 request.
void EXTI9_5_IRQHandler (void)
 This function handles External lines 9 to 5 interrupt request.
void HardFault_Handler (void)
 This function handles Hard Fault exception.
int main (void)
 Main program.
void MemManage_Handler (void)
 This function handles Memory Manage exception.
void NMI_Handler (void)
 This function handles NMI exception.
void PendSV_Handler (void)
 This function handles PendSV_Handler exception.
void SVC_Handler (void)
 This function handles SVCall exception.
void SysTick_Handler (void)
 This function handles SysTick Handler.
void UsageFault_Handler (void)
 This function handles Usage Fault exception.

Variables

NVIC_InitTypeDef NVIC_InitStructure
bool PreemptionOccured
bool PreemptionOccured = FALSE
uint8_t PreemptionPriorityValue
uint8_t PreemptionPriorityValue = 0

Function Documentation

void BusFault_Handler ( void   ) 

This function handles Bus Fault exception.

Parameters:
None 
Return values:
None 

Definition at line 89 of file STM32F10x_StdPeriph_Examples/NVIC/Priority/stm32f10x_it.c.

void DebugMon_Handler ( void   ) 

This function handles Debug Monitor exception.

Parameters:
None 
Return values:
None 

Definition at line 124 of file STM32F10x_StdPeriph_Examples/NVIC/Priority/stm32f10x_it.c.

void Delay ( __IO uint32_t  nCount  ) 

Inserts a delay time.

Parameters:
nCount,: specifies the delay time length.
Return values:
None 

Definition at line 110 of file STM32F10x_StdPeriph_Examples/NVIC/Priority/main.c.

void EXTI0_IRQHandler ( void   ) 

This function handles External interrupt Line 0 request.

Parameters:
None 
Return values:
None 

Definition at line 160 of file STM32F10x_StdPeriph_Examples/NVIC/Priority/stm32f10x_it.c.

void EXTI9_5_IRQHandler ( void   ) 
void HardFault_Handler ( void   ) 

This function handles Hard Fault exception.

Parameters:
None 
Return values:
None 

Definition at line 63 of file STM32F10x_StdPeriph_Examples/NVIC/Priority/stm32f10x_it.c.

int main ( void   ) 

Main program.

Parameters:
None 
Return values:
None 

< At this stage the microcontroller clock setting is already configured, this is done through SystemInit() function which is called from startup file (startup_stm32f10x_xx.s) before to branch to application main. To reconfigure the default setting of SystemInit() function, refer to system_stm32f10x.c file

Definition at line 51 of file STM32F10x_StdPeriph_Examples/NVIC/Priority/main.c.

References BUTTON_KEY, BUTTON_MODE_EXTI, BUTTON_WAKEUP, Delay(), ENABLE, KEY_BUTTON_EXTI_IRQn, LED1, LED2, LED3, LED4, NVIC_Init(), NVIC_InitTypeDef::NVIC_IRQChannel, NVIC_InitTypeDef::NVIC_IRQChannelCmd, NVIC_InitTypeDef::NVIC_IRQChannelPreemptionPriority, NVIC_InitTypeDef::NVIC_IRQChannelSubPriority, NVIC_PriorityGroup_1, NVIC_PriorityGroupConfig(), PreemptionOccured, PreemptionPriorityValue, STM_EVAL_LEDInit(), STM_EVAL_LEDToggle(), STM_EVAL_PBInit(), SysTick_IRQn, and WAKEUP_BUTTON_EXTI_IRQn.

void MemManage_Handler ( void   ) 

This function handles Memory Manage exception.

Parameters:
None 
Return values:
None 

Definition at line 76 of file STM32F10x_StdPeriph_Examples/NVIC/Priority/stm32f10x_it.c.

void NMI_Handler ( void   ) 

This function handles NMI exception.

Parameters:
None 
Return values:
None 

Definition at line 54 of file STM32F10x_StdPeriph_Examples/NVIC/Priority/stm32f10x_it.c.

void PendSV_Handler ( void   ) 

This function handles PendSV_Handler exception.

Parameters:
None 
Return values:
None 

Definition at line 133 of file STM32F10x_StdPeriph_Examples/NVIC/Priority/stm32f10x_it.c.

void SVC_Handler ( void   ) 

This function handles SVCall exception.

Parameters:
None 
Return values:
None 

Definition at line 115 of file STM32F10x_StdPeriph_Examples/NVIC/Priority/stm32f10x_it.c.

void SysTick_Handler ( void   ) 

This function handles SysTick Handler.

Parameters:
None 
Return values:
None 

Definition at line 142 of file STM32F10x_StdPeriph_Examples/NVIC/Priority/stm32f10x_it.c.

References PreemptionOccured, and WAKEUP_BUTTON_EXTI_IRQn.

void UsageFault_Handler ( void   ) 

This function handles Usage Fault exception.

Parameters:
None 
Return values:
None 

Definition at line 102 of file STM32F10x_StdPeriph_Examples/NVIC/Priority/stm32f10x_it.c.


Variable Documentation

bool PreemptionOccured = FALSE

Definition at line 39 of file STM32F10x_StdPeriph_Examples/NVIC/Priority/main.c.

Referenced by EXTI9_5_IRQHandler(), and main().

Definition at line 39 of file STM32F10x_StdPeriph_Examples/NVIC/Priority/main.c.

Referenced by EXTI9_5_IRQHandler(), and main().

STM32F10x Standard Peripherals Library: Footer

 

 

 

      For complete documentation on STM32(CORTEX M3) 32-bit Microcontrollers platform visit  www.st.com/STM32