STM32F0xx Standard Peripherals Firmware Library: TIM_PWMInput

STM32F0xx Standard Peripherals Library

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 TIM2_IRQHandler (void)
 This function handles TIM2 global interrupt request.
static void TIM_Config (void)
 Configure the TIM2 Pins.

Variables

__IO uint16_t DutyCycle = 0
__IO uint32_t Frequency = 0
__IO uint16_t IC2Value = 0

Function Documentation

void HardFault_Handler ( void  )

This function handles Hard Fault exception.

Parameters:
None
Return values:
None

Definition at line 70 of file STM32F0xx_StdPeriph_Examples/TIM/TIM_PWMInput/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 53 of file STM32F0xx_StdPeriph_Examples/TIM/TIM_PWMInput/main.c.

References TIM_Config().

void NMI_Handler ( void  )

This function handles NMI exception.

Parameters:
None
Return values:
None

Definition at line 61 of file STM32F0xx_StdPeriph_Examples/TIM/TIM_PWMInput/stm32f0xx_it.c.

void PendSV_Handler ( void  )

This function handles PendSVC exception.

Parameters:
None
Return values:
None

Definition at line 92 of file STM32F0xx_StdPeriph_Examples/TIM/TIM_PWMInput/stm32f0xx_it.c.

void SVC_Handler ( void  )

This function handles SVCall exception.

Parameters:
None
Return values:
None

Definition at line 83 of file STM32F0xx_StdPeriph_Examples/TIM/TIM_PWMInput/stm32f0xx_it.c.

void SysTick_Handler ( void  )

This function handles SysTick Handler.

Parameters:
None
Return values:
None

Definition at line 101 of file STM32F0xx_StdPeriph_Examples/TIM/TIM_PWMInput/stm32f0xx_it.c.

void TIM2_IRQHandler ( void  )

This function handles TIM2 global interrupt request.

This function handles TIM2 global interrupt.

Parameters:
None
Return values:
None

Definition at line 116 of file STM32F0xx_StdPeriph_Examples/TIM/TIM_PWMInput/stm32f0xx_it.c.

References Capture, CaptureCounter, DisplayActive, DutyCycle, Frequency, IC2Value, IC4Value1, IC4Value2, and SystemCoreClock.

static void TIM_Config ( void  ) [static]

Configure the TIM2 Pins.

Parameters:
None
Return values:
None

Definition at line 76 of file STM32F0xx_StdPeriph_Examples/TIM/TIM_PWMInput/main.c.

References GPIO_InitStructure, and NVIC_InitStructure.

Referenced by main().


Variable Documentation

__IO uint16_t DutyCycle = 0
__IO uint32_t Frequency = 0
__IO uint16_t IC2Value = 0
STM32L1xx Standard Peripherals Library: Footer

 

 

 For complete documentation on STM32 Microcontrollers visit www.st.com/STM32