TIM_OCInactive
[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 CCR1_Val = 1000
uint16_t CCR2_Val = 500
uint16_t CCR3_Val = 250
uint16_t CCR4_Val = 125
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 83 of file STM32F10x_StdPeriph_Examples/TIM/OCInactive/stm32f10x_it.c.

void DebugMon_Handler ( void   ) 

This function handles Debug Monitor exception.

Parameters:
None 
Return values:
None 

Definition at line 107 of file STM32F10x_StdPeriph_Examples/TIM/OCInactive/stm32f10x_it.c.

void GPIO_Configuration ( void   ) 

Configure the GPIOD Pins.

Configures the different GPIO ports.

Parameters:
None 
Return values:
None 

Definition at line 170 of file STM32F10x_StdPeriph_Examples/TIM/OCInactive/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 59 of file STM32F10x_StdPeriph_Examples/TIM/OCInactive/stm32f10x_it.c.

int main ( void   ) 
void MemManage_Handler ( void   ) 

This function handles Memory Manage exception.

Parameters:
None 
Return values:
None 

Definition at line 71 of file STM32F10x_StdPeriph_Examples/TIM/OCInactive/stm32f10x_it.c.

void NMI_Handler ( void   ) 

This function handles NMI exception.

Parameters:
None 
Return values:
None 

Definition at line 50 of file STM32F10x_StdPeriph_Examples/TIM/OCInactive/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 123 of file STM32F10x_StdPeriph_Examples/TIM/OCInactive/stm32f10x_it.c.

void RCC_Configuration ( void   ) 

Configures the different system clocks.

Parameters:
None 
Return values:
None 

Definition at line 153 of file STM32F10x_StdPeriph_Examples/TIM/OCInactive/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 115 of file STM32F10x_StdPeriph_Examples/TIM/OCInactive/stm32f10x_it.c.

void SysTick_Handler ( void   ) 

This function handles SysTick Handler.

Parameters:
None 
Return values:
None 

Definition at line 131 of file STM32F10x_StdPeriph_Examples/TIM/OCInactive/stm32f10x_it.c.

void TIM2_IRQHandler ( void   ) 

This function handles TIM2 global interrupt request.

Parameters:
None 
Return values:
None 

Definition at line 143 of file STM32F10x_StdPeriph_Examples/TIM/OCInactive/stm32f10x_it.c.

References GPIO_Pin_6, GPIO_Pin_7, GPIO_Pin_8, GPIO_Pin_9, GPIO_ResetBits(), GPIOC, RESET, TIM2, TIM_ClearITPendingBit(), TIM_GetITStatus(), TIM_IT_CC1, TIM_IT_CC2, TIM_IT_CC3, and TIM_IT_CC4.

void UsageFault_Handler ( void   ) 

This function handles Usage Fault exception.

Parameters:
None 
Return values:
None 

Definition at line 95 of file STM32F10x_StdPeriph_Examples/TIM/OCInactive/stm32f10x_it.c.


Variable Documentation

uint16_t CCR1_Val = 1000
uint16_t CCR2_Val = 500
uint16_t CCR3_Val = 250
uint16_t CCR4_Val = 125
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