RTC_LSI_Calib
[STM32F10x_StdPeriph_Examples]

Defines

#define RTCClockOutput_Enable

Functions

void BusFault_Handler (void)
 This function handles Bus Fault exception.
void DebugMon_Handler (void)
 This function handles Debug Monitor exception.
uint32_t GetVar_OperationComplete (void)
 Returns OperationComplete value.
void HardFault_Handler (void)
 This function handles Hard Fault exception.
uint32_t IncrementVar_OperationComplete (void)
 Increments OperationComplete variable and return its value before increment operation.
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)
 Configures the nested vectored interrupt controller.
void PendSV_Handler (void)
 This function handles PendSV_Handler exception.
void RTC_Configuration (void)
 Configures the RTC.
void RTC_IRQHandler (void)
 This function handles RTC global interrupt request.
void SetVar_PeriodValue (uint32_t Value)
 Sets the PeriodValue variable with input parameter.
void SVC_Handler (void)
 This function handles SVCall exception.
void SysTick_Handler (void)
 This function handles SysTick Handler.
void TIM5_IRQHandler (void)
 This function handles TIM5 global interrupt request.
void UsageFault_Handler (void)
 This function handles Usage Fault exception.

Variables

__IO uint32_t LsiFreq = 0
__IO uint32_t OperationComplete = 0
__IO uint32_t PeriodValue = 0
RCC_ClocksTypeDef RCC_Clocks
TIM_ICInitTypeDef TIM_ICInitStructure
TIM_TimeBaseInitTypeDef TIM_TimeBaseStructure
uint16_t tmpCC4 [2] = {0, 0}

Define Documentation

#define RTCClockOutput_Enable

Function Documentation

void BusFault_Handler ( void   ) 

This function handles Bus Fault exception.

Parameters:
None 
Return values:
None 

Definition at line 86 of file STM32F10x_StdPeriph_Examples/RTC/LSI_Calib/stm32f10x_it.c.

void DebugMon_Handler ( void   ) 

This function handles Debug Monitor exception.

Parameters:
None 
Return values:
None 

Definition at line 110 of file STM32F10x_StdPeriph_Examples/RTC/LSI_Calib/stm32f10x_it.c.

uint32_t GetVar_OperationComplete ( void   ) 

Returns OperationComplete value.

Parameters:
None 
Return values:
OperationComplete value

Definition at line 243 of file STM32F10x_StdPeriph_Examples/RTC/LSI_Calib/main.c.

References OperationComplete.

Referenced by TIM5_IRQHandler().

void HardFault_Handler ( void   ) 

This function handles Hard Fault exception.

Parameters:
None 
Return values:
None 

Definition at line 62 of file STM32F10x_StdPeriph_Examples/RTC/LSI_Calib/stm32f10x_it.c.

uint32_t IncrementVar_OperationComplete ( void   ) 

Increments OperationComplete variable and return its value before increment operation.

Parameters:
None 
Return values:
OperationComplete value befor increment

Definition at line 231 of file STM32F10x_StdPeriph_Examples/RTC/LSI_Calib/main.c.

References OperationComplete.

Referenced by TIM5_IRQHandler().

int main ( void   ) 
void MemManage_Handler ( void   ) 

This function handles Memory Manage exception.

Parameters:
None 
Return values:
None 

Definition at line 74 of file STM32F10x_StdPeriph_Examples/RTC/LSI_Calib/stm32f10x_it.c.

void NMI_Handler ( void   ) 

This function handles NMI exception.

Parameters:
None 
Return values:
None 

Definition at line 53 of file STM32F10x_StdPeriph_Examples/RTC/LSI_Calib/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/RTC/LSI_Calib/stm32f10x_it.c.

void RTC_Configuration ( void   ) 
void RTC_IRQHandler ( void   ) 

This function handles RTC global interrupt request.

Parameters:
None 
Return values:
None 

Definition at line 150 of file STM32F10x_StdPeriph_Examples/RTC/LSI_Calib/stm32f10x_it.c.

References LED1, RESET, RTC_ClearITPendingBit(), RTC_FLAG_SEC, RTC_GetITStatus(), RTC_IT_SEC, RTC_WaitForLastTask(), STM_EVAL_LEDToggle(), and TimeDisplay.

void SetVar_PeriodValue ( uint32_t  Value  ) 

Sets the PeriodValue variable with input parameter.

Parameters:
lue,: Value of PeriodValue to be set.
Return values:
None 

Definition at line 253 of file STM32F10x_StdPeriph_Examples/RTC/LSI_Calib/main.c.

References PeriodValue.

Referenced by TIM5_IRQHandler().

void SVC_Handler ( void   ) 

This function handles SVCall exception.

Parameters:
None 
Return values:
None 

Definition at line 119 of file STM32F10x_StdPeriph_Examples/RTC/LSI_Calib/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/RTC/LSI_Calib/stm32f10x_it.c.

void TIM5_IRQHandler ( void   ) 

This function handles TIM5 global interrupt request.

Parameters:
None 
Return values:
None 

Definition at line 167 of file STM32F10x_StdPeriph_Examples/RTC/LSI_Calib/stm32f10x_it.c.

References DISABLE, GetVar_OperationComplete(), IncrementVar_OperationComplete(), SET, SetVar_PeriodValue(), TIM5, TIM_ClearITPendingBit(), TIM_Cmd(), TIM_GetITStatus(), TIM_IT_CC4, TIM_ITConfig(), and tmpCC4.

void UsageFault_Handler ( void   ) 

This function handles Usage Fault exception.

Parameters:
None 
Return values:
None 

Definition at line 98 of file STM32F10x_StdPeriph_Examples/RTC/LSI_Calib/stm32f10x_it.c.


Variable Documentation

__IO uint32_t LsiFreq = 0

Definition at line 43 of file STM32F10x_StdPeriph_Examples/RTC/LSI_Calib/main.c.

Referenced by main().

__IO uint32_t OperationComplete = 0
__IO uint32_t PeriodValue = 0

Definition at line 43 of file STM32F10x_StdPeriph_Examples/RTC/LSI_Calib/main.c.

Referenced by main(), and SetVar_PeriodValue().

uint16_t tmpCC4[2] = {0, 0}
STM32F10x Standard Peripherals Library: Footer

 

 

 

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