TIM_Input_Capture
[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 TIM3_IRQHandler (void)
 This function handles TIM3 global interrupt request.
void UsageFault_Handler (void)
 This function handles Usage Fault exception.

Variables

__IO uint32_t Capture = 0
__IO uint16_t CaptureNumber = 0
__IO uint16_t IC3ReadValue1 = 0
__IO uint16_t IC3ReadValue2 = 0
__IO uint32_t TIM3Freq = 0
TIM_ICInitTypeDef TIM_ICInitStructure

Function Documentation

void BusFault_Handler ( void   ) 

This function handles Bus Fault exception.

Parameters:
None 
Return values:
None 

Definition at line 88 of file STM32F10x_StdPeriph_Examples/TIM/InputCapture/stm32f10x_it.c.

void DebugMon_Handler ( void   ) 

This function handles Debug Monitor exception.

Parameters:
None 
Return values:
None 

Definition at line 112 of file STM32F10x_StdPeriph_Examples/TIM/InputCapture/stm32f10x_it.c.

void GPIO_Configuration ( void   ) 

Configure the GPIOD Pins.

Configures the different GPIO ports.

Parameters:
None 
Return values:
None 

Definition at line 110 of file STM32F10x_StdPeriph_Examples/TIM/InputCapture/main.c.

References GPIO_Init(), GPIO_InitStructure, GPIO_InitTypeDef::GPIO_Mode, GPIO_Mode_IN_FLOATING, GPIO_InitTypeDef::GPIO_Pin, GPIO_Pin_7, GPIO_InitTypeDef::GPIO_Speed, GPIO_Speed_50MHz, and GPIOA.

void HardFault_Handler ( void   ) 

This function handles Hard Fault exception.

Parameters:
None 
Return values:
None 

Definition at line 64 of file STM32F10x_StdPeriph_Examples/TIM/InputCapture/stm32f10x_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_stm32f10x_xx.s) before to branch to application main. To reconfigure the default setting of SystemInit() function, refer to system_stm32f10x.c file

Definition at line 50 of file STM32F10x_StdPeriph_Examples/TIM/InputCapture/main.c.

References ENABLE, GPIO_Configuration(), NVIC_Configuration(), RCC_Configuration(), TIM3, TIM_ICInitTypeDef::TIM_Channel, TIM_Channel_2, TIM_Cmd(), TIM_ICInitTypeDef::TIM_ICFilter, TIM_ICInit(), TIM_ICInitTypeDef::TIM_ICPolarity, TIM_ICPolarity_Rising, TIM_ICInitTypeDef::TIM_ICPrescaler, TIM_ICPSC_DIV1, TIM_ICInitTypeDef::TIM_ICSelection, TIM_ICSelection_DirectTI, TIM_IT_CC2, and TIM_ITConfig().

void MemManage_Handler ( void   ) 

This function handles Memory Manage exception.

Parameters:
None 
Return values:
None 

Definition at line 76 of file STM32F10x_StdPeriph_Examples/TIM/InputCapture/stm32f10x_it.c.

void NMI_Handler ( void   ) 

This function handles NMI exception.

Parameters:
None 
Return values:
None 

Definition at line 55 of file STM32F10x_StdPeriph_Examples/TIM/InputCapture/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 128 of file STM32F10x_StdPeriph_Examples/TIM/InputCapture/stm32f10x_it.c.

void RCC_Configuration ( void   ) 

Configures the different system clocks.

Parameters:
None 
Return values:
None 

Definition at line 96 of file STM32F10x_StdPeriph_Examples/TIM/InputCapture/main.c.

References ENABLE, RCC_APB1Periph_TIM3, RCC_APB1PeriphClockCmd(), RCC_APB2Periph_GPIOA, and RCC_APB2PeriphClockCmd().

void SVC_Handler ( void   ) 

This function handles SVCall exception.

Parameters:
None 
Return values:
None 

Definition at line 120 of file STM32F10x_StdPeriph_Examples/TIM/InputCapture/stm32f10x_it.c.

void SysTick_Handler ( void   ) 

This function handles SysTick Handler.

Parameters:
None 
Return values:
None 

Definition at line 136 of file STM32F10x_StdPeriph_Examples/TIM/InputCapture/stm32f10x_it.c.

void TIM3_IRQHandler ( void   ) 

This function handles TIM3 global interrupt request.

Parameters:
None 
Return values:
None 

Definition at line 147 of file STM32F10x_StdPeriph_Examples/TIM/InputCapture/stm32f10x_it.c.

References Capture, CaptureNumber, IC3ReadValue1, IC3ReadValue2, SET, SystemCoreClock, TIM3, TIM3Freq, TIM_ClearITPendingBit(), TIM_GetCapture2(), TIM_GetITStatus(), and TIM_IT_CC2.

void UsageFault_Handler ( void   ) 

This function handles Usage Fault exception.

Parameters:
None 
Return values:
None 

Definition at line 100 of file STM32F10x_StdPeriph_Examples/TIM/InputCapture/stm32f10x_it.c.


Variable Documentation

__IO uint32_t Capture = 0
__IO uint16_t CaptureNumber = 0
__IO uint16_t IC3ReadValue1 = 0
__IO uint16_t IC3ReadValue2 = 0
__IO uint32_t TIM3Freq = 0
STM32F10x Standard Peripherals Library: Footer

 

 

 

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