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. | |
static void | TIM_Config (void) |
Configure the TIM1 Pins. | |
Variables | |
uint16_t | Channel1Pulse = 0 |
uint16_t | Channel2Pulse = 0 |
uint16_t | Channel3Pulse = 0 |
uint16_t | Channel4Pulse = 0 |
uint16_t | TimerPeriod = 0 |
Function Documentation
void HardFault_Handler | ( | void | ) |
This function handles Hard Fault exception.
- Parameters:
-
None
- Return values:
-
None
Definition at line 66 of file STM32F0xx_StdPeriph_Examples/TIM/TIM_7PWMOutputs/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 56 of file STM32F0xx_StdPeriph_Examples/TIM/TIM_7PWMOutputs/main.c.
References TIM_Config().
void NMI_Handler | ( | void | ) |
This function handles NMI exception.
- Parameters:
-
None
- Return values:
-
None
Definition at line 57 of file STM32F0xx_StdPeriph_Examples/TIM/TIM_7PWMOutputs/stm32f0xx_it.c.
void PendSV_Handler | ( | void | ) |
This function handles PendSVC exception.
- Parameters:
-
None
- Return values:
-
None
Definition at line 88 of file STM32F0xx_StdPeriph_Examples/TIM/TIM_7PWMOutputs/stm32f0xx_it.c.
void SVC_Handler | ( | void | ) |
This function handles SVCall exception.
- Parameters:
-
None
- Return values:
-
None
Definition at line 79 of file STM32F0xx_StdPeriph_Examples/TIM/TIM_7PWMOutputs/stm32f0xx_it.c.
void SysTick_Handler | ( | void | ) |
This function handles SysTick Handler.
- Parameters:
-
None
- Return values:
-
None
Definition at line 97 of file STM32F0xx_StdPeriph_Examples/TIM/TIM_7PWMOutputs/stm32f0xx_it.c.
static void TIM_Config | ( | void | ) | [static] |
Configure the TIM1 Pins.
- Parameters:
-
None
- Return values:
-
None
Definition at line 79 of file STM32F0xx_StdPeriph_Examples/TIM/TIM_7PWMOutputs/main.c.
References Channel1Pulse, Channel2Pulse, Channel3Pulse, Channel4Pulse, GPIO_InitStructure, SystemCoreClock, TIM_OCInitStructure, TIM_TimeBaseStructure, and TimerPeriod.
Referenced by main().
Variable Documentation
uint16_t Channel1Pulse = 0 |
Definition at line 44 of file STM32F0xx_StdPeriph_Examples/TIM/TIM_7PWMOutputs/main.c.
Referenced by TIM_Config().
uint16_t Channel2Pulse = 0 |
Definition at line 44 of file STM32F0xx_StdPeriph_Examples/TIM/TIM_7PWMOutputs/main.c.
Referenced by TIM_Config().
uint16_t Channel3Pulse = 0 |
Definition at line 44 of file STM32F0xx_StdPeriph_Examples/TIM/TIM_7PWMOutputs/main.c.
Referenced by TIM_Config().
uint16_t Channel4Pulse = 0 |
Definition at line 44 of file STM32F0xx_StdPeriph_Examples/TIM/TIM_7PWMOutputs/main.c.
Referenced by TIM_Config().
uint16_t TimerPeriod = 0 |
Definition at line 43 of file STM32F0xx_StdPeriph_Examples/TIM/TIM_7PWMOutputs/main.c.
Referenced by TIM_Config().