CortexM3_Mode_Privilege
[STM32F10x_StdPeriph_Examples]

Defines

#define SP_MAIN   0x00
#define SP_PROCESS   0x02
#define SP_PROCESS_SIZE   0x200
#define THREAD_MODE_PRIVILEGED   0x00
#define THREAD_MODE_UNPRIVILEGED   0x01

Functions

void BusFault_Handler (void)
 This function handles Bus Fault exception.
void DebugMon_Handler (void)
 This function handles Debug Monitor exception.
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

__IO uint32_t CurrentStack = 0
__IO uint32_t Index = 0
__IO uint8_t PSPMemAlloc [SP_PROCESS_SIZE]
__IO uint32_t PSPValue = 0
__IO uint32_t ThreadMode = 0

Define Documentation

#define SP_MAIN   0x00

Definition at line 36 of file STM32F10x_StdPeriph_Examples/CortexM3/Mode_Privilege/main.c.

Referenced by main().

#define SP_PROCESS   0x02

Definition at line 35 of file STM32F10x_StdPeriph_Examples/CortexM3/Mode_Privilege/main.c.

Referenced by main().

#define SP_PROCESS_SIZE   0x200

Definition at line 34 of file STM32F10x_StdPeriph_Examples/CortexM3/Mode_Privilege/main.c.

Referenced by main().

#define THREAD_MODE_PRIVILEGED   0x00

Definition at line 37 of file STM32F10x_StdPeriph_Examples/CortexM3/Mode_Privilege/main.c.

Referenced by main().

#define THREAD_MODE_UNPRIVILEGED   0x01

Definition at line 38 of file STM32F10x_StdPeriph_Examples/CortexM3/Mode_Privilege/main.c.

Referenced by main().


Function Documentation

void BusFault_Handler ( void   ) 

This function handles Bus Fault exception.

Parameters:
None 
Return values:
None 

Definition at line 85 of file STM32F10x_StdPeriph_Examples/CortexM3/Mode_Privilege/stm32f10x_it.c.

void DebugMon_Handler ( void   ) 

This function handles Debug Monitor exception.

Parameters:
None 
Return values:
None 

Definition at line 111 of file STM32F10x_StdPeriph_Examples/CortexM3/Mode_Privilege/stm32f10x_it.c.

void HardFault_Handler ( void   ) 

This function handles Hard Fault exception.

Parameters:
None 
Return values:
None 

Definition at line 59 of file STM32F10x_StdPeriph_Examples/CortexM3/Mode_Privilege/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 65 of file STM32F10x_StdPeriph_Examples/CortexM3/Mode_Privilege/main.c.

References CurrentStack, Index, PSPMemAlloc, PSPValue, SP_MAIN, SP_PROCESS, SP_PROCESS_SIZE, THREAD_MODE_PRIVILEGED, THREAD_MODE_UNPRIVILEGED, and ThreadMode.

void MemManage_Handler ( void   ) 

This function handles Memory Manage exception.

Parameters:
None 
Return values:
None 

Definition at line 72 of file STM32F10x_StdPeriph_Examples/CortexM3/Mode_Privilege/stm32f10x_it.c.

void NMI_Handler ( void   ) 

This function handles NMI exception.

Parameters:
None 
Return values:
None 

Definition at line 50 of file STM32F10x_StdPeriph_Examples/CortexM3/Mode_Privilege/stm32f10x_it.c.

void PendSV_Handler ( void   ) 

This function handles PendSV_Handler exception.

Parameters:
None 
Return values:
None 

Definition at line 131 of file STM32F10x_StdPeriph_Examples/CortexM3/Mode_Privilege/stm32f10x_it.c.

void SVC_Handler ( void   ) 

This function handles SVCall exception.

Parameters:
None 
Return values:
None 

Definition at line 120 of file STM32F10x_StdPeriph_Examples/CortexM3/Mode_Privilege/stm32f10x_it.c.

void SysTick_Handler ( void   ) 

This function handles SysTick Handler.

Parameters:
None 
Return values:
None 

Definition at line 140 of file STM32F10x_StdPeriph_Examples/CortexM3/Mode_Privilege/stm32f10x_it.c.

void UsageFault_Handler ( void   ) 

This function handles Usage Fault exception.

Parameters:
None 
Return values:
None 

Definition at line 98 of file STM32F10x_StdPeriph_Examples/CortexM3/Mode_Privilege/stm32f10x_it.c.


Variable Documentation

__IO uint32_t CurrentStack = 0

Definition at line 55 of file STM32F10x_StdPeriph_Examples/CortexM3/Mode_Privilege/main.c.

Referenced by main().

__IO uint32_t Index = 0
__IO uint8_t PSPMemAlloc[SP_PROCESS_SIZE]

Definition at line 54 of file STM32F10x_StdPeriph_Examples/CortexM3/Mode_Privilege/main.c.

Referenced by main().

__IO uint32_t PSPValue = 0

Definition at line 55 of file STM32F10x_StdPeriph_Examples/CortexM3/Mode_Privilege/main.c.

Referenced by main().

__IO uint32_t ThreadMode = 0

Definition at line 55 of file STM32F10x_StdPeriph_Examples/CortexM3/Mode_Privilege/main.c.

Referenced by main().

STM32F10x Standard Peripherals Library: Footer

 

 

 

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