STM32F0xx Standard Peripherals Firmware Library
|
Functions | |
void | HardFault_Handler (void) |
This function handles Hard Fault exception. | |
int | main (void) |
Main program. | |
void | NMI_Handler (void) |
This function handles NMI exception. | |
void | PendSV_Handler (void) |
This function handles PendSVC exception. | |
void | SVC_Handler (void) |
This function handles SVCall exception. | |
void | SysTick_Handler (void) |
This function handles SysTick Handler. | |
void | TIM3_IRQHandler (void) |
This function handles TIM3 global interrupt request. | |
static void | TIM_Config (void) |
Configure the TIM3 Pins. | |
Variables | |
uint16_t | capture = 0 |
__IO uint16_t | CCR1_Val = 40961 |
__IO uint16_t | CCR1_Val |
__IO uint16_t | CCR2_Val = 20480 |
__IO uint16_t | CCR2_Val |
__IO uint16_t | CCR3_Val = 10240 |
__IO uint16_t | CCR3_Val |
__IO uint16_t | CCR4_Val = 5120 |
__IO uint16_t | CCR4_Val |
uint16_t | PrescalerValue = 0 |
Function Documentation
void HardFault_Handler | ( | void | ) |
This function handles Hard Fault exception.
- Parameters:
-
None
- Return values:
-
None
Definition at line 72 of file STM32F0xx_StdPeriph_Examples/TIM/TIM_OCToggle/stm32f0xx_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_stm32f0xx.s) before to branch to application main. To reconfigure the default setting of SystemInit() function, refer to system_stm32f0xx.c file
Definition at line 58 of file STM32F0xx_StdPeriph_Examples/TIM/TIM_OCToggle/main.c.
References TIM_Config().
void NMI_Handler | ( | void | ) |
This function handles NMI exception.
- Parameters:
-
None
- Return values:
-
None
Definition at line 63 of file STM32F0xx_StdPeriph_Examples/TIM/TIM_OCToggle/stm32f0xx_it.c.
void PendSV_Handler | ( | void | ) |
This function handles PendSVC exception.
- Parameters:
-
None
- Return values:
-
None
Definition at line 94 of file STM32F0xx_StdPeriph_Examples/TIM/TIM_OCToggle/stm32f0xx_it.c.
void SVC_Handler | ( | void | ) |
This function handles SVCall exception.
- Parameters:
-
None
- Return values:
-
None
Definition at line 85 of file STM32F0xx_StdPeriph_Examples/TIM/TIM_OCToggle/stm32f0xx_it.c.
void SysTick_Handler | ( | void | ) |
This function handles SysTick Handler.
- Parameters:
-
None
- Return values:
-
None
Definition at line 103 of file STM32F0xx_StdPeriph_Examples/TIM/TIM_OCToggle/stm32f0xx_it.c.
void TIM3_IRQHandler | ( | void | ) |
static void TIM_Config | ( | void | ) | [static] |
Configure the TIM3 Pins.
- Parameters:
-
None
- Return values:
-
None
Definition at line 81 of file STM32F0xx_StdPeriph_Examples/TIM/TIM_OCToggle/main.c.
References CCR1_Val, CCR2_Val, CCR3_Val, CCR4_Val, GPIO_InitStructure, NVIC_InitStructure, PrescalerValue, TIM_OCInitStructure, and TIM_TimeBaseStructure.
Referenced by main().
Variable Documentation
uint16_t capture = 0 |
Definition at line 45 of file STM32F0xx_StdPeriph_Examples/TIM/TIM_OCToggle/stm32f0xx_it.c.
Referenced by TIM3_IRQHandler().
__IO uint16_t CCR1_Val = 40961 |
Definition at line 43 of file STM32F0xx_StdPeriph_Examples/TIM/TIM_OCToggle/main.c.
__IO uint16_t CCR1_Val |
Definition at line 43 of file STM32F0xx_StdPeriph_Examples/TIM/TIM_OCActive/main.c.
__IO uint16_t CCR2_Val = 20480 |
Definition at line 44 of file STM32F0xx_StdPeriph_Examples/TIM/TIM_OCToggle/main.c.
__IO uint16_t CCR2_Val |
Definition at line 44 of file STM32F0xx_StdPeriph_Examples/TIM/TIM_OCActive/main.c.
__IO uint16_t CCR3_Val = 10240 |
Definition at line 45 of file STM32F0xx_StdPeriph_Examples/TIM/TIM_OCToggle/main.c.
__IO uint16_t CCR3_Val |
Definition at line 45 of file STM32F0xx_StdPeriph_Examples/TIM/TIM_OCActive/main.c.
__IO uint16_t CCR4_Val = 5120 |
Definition at line 46 of file STM32F0xx_StdPeriph_Examples/TIM/TIM_OCToggle/main.c.
__IO uint16_t CCR4_Val |
Definition at line 46 of file STM32F0xx_StdPeriph_Examples/TIM/TIM_OCActive/main.c.
uint16_t PrescalerValue = 0 |
Definition at line 47 of file STM32F0xx_StdPeriph_Examples/TIM/TIM_OCToggle/main.c.