RTC_Calendar
[STM32F10x_StdPeriph_Examples]

Defines

#define PUTCHAR_PROTOTYPE   int fputc(int ch, FILE *f)
#define RTCClockOutput_Enable

Functions

void BusFault_Handler (void)
 This function handles Bus Fault exception.
void DebugMon_Handler (void)
 This function handles Debug Monitor exception.
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)
 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 SVC_Handler (void)
 This function handles SVCall exception.
void SysTick_Handler (void)
 This function handles SysTick Handler.
void Time_Adjust (void)
 Adjusts time.
void Time_Display (uint32_t TimeVar)
 Displays the current time.
uint32_t Time_Regulate (void)
 Returns the time entered by user, using Hyperterminal.
void Time_Show (void)
 Shows the current time (HH:MM:SS) on the Hyperterminal.
void UsageFault_Handler (void)
 This function handles Usage Fault exception.
uint8_t USART_Scanf (uint32_t value)

Variables

__IO uint32_t TimeDisplay
__IO uint32_t TimeDisplay = 0
USART_InitTypeDef USART_InitStructure

Define Documentation

#define PUTCHAR_PROTOTYPE   int fputc(int ch, FILE *f)
#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/Calendar/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/Calendar/stm32f10x_it.c.

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/Calendar/stm32f10x_it.c.

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/Calendar/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/Calendar/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/Calendar/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/Calendar/stm32f10x_it.c.

void SVC_Handler ( void   ) 

This function handles SVCall exception.

Parameters:
None 
Return values:
None 

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

void Time_Adjust ( void   ) 

Adjusts time.

Parameters:
None 
Return values:
None 

Definition at line 269 of file STM32F10x_StdPeriph_Examples/RTC/Calendar/main.c.

References RTC_SetCounter(), RTC_WaitForLastTask(), and Time_Regulate().

Referenced by main().

void Time_Display ( uint32_t  TimeVar  ) 

Displays the current time.

Parameters:
TimeVar,: RTC counter value.
Return values:
None 

Definition at line 284 of file STM32F10x_StdPeriph_Examples/RTC/Calendar/main.c.

References RTC_GetCounter(), RTC_SetCounter(), and RTC_WaitForLastTask().

Referenced by Time_Show().

uint32_t Time_Regulate ( void   ) 

Returns the time entered by user, using Hyperterminal.

Parameters:
None 
Return values:
Current time RTC counter value

Definition at line 235 of file STM32F10x_StdPeriph_Examples/RTC/Calendar/main.c.

References USART_Scanf().

Referenced by Time_Adjust().

void Time_Show ( void   ) 

Shows the current time (HH:MM:SS) on the Hyperterminal.

Parameters:
None 
Return values:
None 

Definition at line 311 of file STM32F10x_StdPeriph_Examples/RTC/Calendar/main.c.

References RTC_GetCounter(), Time_Display(), and TimeDisplay.

Referenced by main().

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/Calendar/stm32f10x_it.c.

uint8_t USART_Scanf ( uint32_t  value  ) 

Referenced by Time_Regulate().


Variable Documentation

__IO uint32_t TimeDisplay

Definition at line 40 of file STM32F10x_StdPeriph_Examples/RTC/Calendar/main.c.

Referenced by RTC_IRQHandler(), and Time_Show().

__IO uint32_t TimeDisplay = 0

Definition at line 40 of file STM32F10x_StdPeriph_Examples/RTC/Calendar/main.c.

Referenced by RTC_IRQHandler(), and Time_Show().

STM32F10x Standard Peripherals Library: Footer

 

 

 

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