STM32F0xx Standard Peripherals Firmware Library: TIM_OCActive

STM32F0xx Standard Peripherals Library

STM32F0xx Standard Peripherals Firmware Library

Functions

int main (void)
 Main program.
static void TIM_Config (void)
 Configure the TIM3 pins.

Variables

uint16_t CCR1_Val = 1000
uint16_t CCR2_Val = 500
uint16_t CCR3_Val = 250
uint16_t CCR4_Val = 125
uint16_t PrescalerValue = 0

Function Documentation

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 59 of file STM32F0xx_StdPeriph_Examples/TIM/TIM_OCActive/main.c.

References TIM_Config().

static void TIM_Config ( void  ) [static]

Configure the TIM3 pins.

Parameters:
None
Return values:
None

Definition at line 85 of file STM32F0xx_StdPeriph_Examples/TIM/TIM_OCActive/main.c.

References CCR1_Val, CCR2_Val, CCR3_Val, CCR4_Val, GPIO_InitStructure, PrescalerValue, SystemCoreClock, TIM_OCInitStructure, and TIM_TimeBaseStructure.

Referenced by main().


Variable Documentation

uint16_t CCR1_Val = 1000
uint16_t CCR2_Val = 500
uint16_t CCR3_Val = 250
uint16_t CCR4_Val = 125
STM32L1xx Standard Peripherals Library: Footer

 

 

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