TIM_TimeBase
[STM32F10x_StdPeriph_Examples]

Functions

void BusFault_Handler (void)
 This function handles Bus Fault exception.
void DebugMon_Handler (void)
 This function handles Debug Monitor exception.
void GPIO_Configuration (void)
 Configure the GPIOD Pins.
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 NVIC_Configuration (void)
 Configure the nested vectored interrupt controller.
void PendSV_Handler (void)
 This function handles PendSV_Handler exception.
void RCC_Configuration (void)
 Configures the different system clocks.
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.
void UsageFault_Handler (void)
 This function handles Usage Fault exception.

Variables

uint16_t capture = 0
__IO uint16_t CCR1_Val
__IO uint16_t CCR1_Val = 40961
__IO uint16_t CCR2_Val
__IO uint16_t CCR2_Val = 27309
__IO uint16_t CCR3_Val
__IO uint16_t CCR3_Val = 13654
__IO uint16_t CCR4_Val
__IO uint16_t CCR4_Val = 6826
uint16_t PrescalerValue = 0
TIM_OCInitTypeDef TIM_OCInitStructure
TIM_TimeBaseInitTypeDef TIM_TimeBaseStructure

Function Documentation

void BusFault_Handler ( void   ) 

This function handles Bus Fault exception.

Parameters:
None 
Return values:
None 

Definition at line 89 of file STM32F10x_StdPeriph_Examples/TIM/TimeBase/stm32f10x_it.c.

void DebugMon_Handler ( void   ) 

This function handles Debug Monitor exception.

Parameters:
None 
Return values:
None 

Definition at line 113 of file STM32F10x_StdPeriph_Examples/TIM/TimeBase/stm32f10x_it.c.

void GPIO_Configuration ( void   ) 

Configure the GPIOD Pins.

Configures the different GPIO ports.

Parameters:
None 
Return values:
None 

Definition at line 162 of file STM32F10x_StdPeriph_Examples/TIM/TimeBase/main.c.

References GPIO_Init(), GPIO_InitStructure, GPIO_InitTypeDef::GPIO_Mode, GPIO_Mode_Out_PP, GPIO_InitTypeDef::GPIO_Pin, GPIO_Pin_6, GPIO_Pin_7, GPIO_Pin_8, GPIO_Pin_9, GPIO_InitTypeDef::GPIO_Speed, GPIO_Speed_50MHz, and GPIOC.

void HardFault_Handler ( void   ) 

This function handles Hard Fault exception.

Parameters:
None 
Return values:
None 

Definition at line 65 of file STM32F10x_StdPeriph_Examples/TIM/TimeBase/stm32f10x_it.c.

int main ( void   ) 
void MemManage_Handler ( void   ) 

This function handles Memory Manage exception.

Parameters:
None 
Return values:
None 

Definition at line 77 of file STM32F10x_StdPeriph_Examples/TIM/TimeBase/stm32f10x_it.c.

void NMI_Handler ( void   ) 

This function handles NMI exception.

Parameters:
None 
Return values:
None 

Definition at line 56 of file STM32F10x_StdPeriph_Examples/TIM/TimeBase/stm32f10x_it.c.

void NVIC_Configuration ( void   ) 
void PendSV_Handler ( void   ) 

This function handles PendSV_Handler exception.

Parameters:
None 
Return values:
None 

Definition at line 129 of file STM32F10x_StdPeriph_Examples/TIM/TimeBase/stm32f10x_it.c.

void RCC_Configuration ( void   ) 

Configures the different system clocks.

Parameters:
None 
Return values:
None 

Definition at line 145 of file STM32F10x_StdPeriph_Examples/TIM/TimeBase/main.c.

References ENABLE, RCC_APB1Periph_TIM2, RCC_APB1PeriphClockCmd(), RCC_APB2Periph_GPIOC, RCC_APB2PeriphClockCmd(), RCC_HCLK_Div4, and RCC_PCLK1Config().

void SVC_Handler ( void   ) 

This function handles SVCall exception.

Parameters:
None 
Return values:
None 

Definition at line 121 of file STM32F10x_StdPeriph_Examples/TIM/TimeBase/stm32f10x_it.c.

void SysTick_Handler ( void   ) 

This function handles SysTick Handler.

Parameters:
None 
Return values:
None 

Definition at line 137 of file STM32F10x_StdPeriph_Examples/TIM/TimeBase/stm32f10x_it.c.

void TIM2_IRQHandler ( void   ) 
void UsageFault_Handler ( void   ) 

This function handles Usage Fault exception.

Parameters:
None 
Return values:
None 

Definition at line 101 of file STM32F10x_StdPeriph_Examples/TIM/TimeBase/stm32f10x_it.c.


Variable Documentation

uint16_t capture = 0
__IO uint16_t CCR1_Val
__IO uint16_t CCR1_Val = 40961
__IO uint16_t CCR2_Val
__IO uint16_t CCR2_Val = 27309
__IO uint16_t CCR3_Val
__IO uint16_t CCR3_Val = 13654
__IO uint16_t CCR4_Val
__IO uint16_t CCR4_Val = 6826
uint16_t PrescalerValue = 0
STM32F10x Standard Peripherals Library: Footer

 

 

 

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