STM32F0xx Standard Peripherals Firmware Library
|
Functions | |
void | BusFault_Handler (void) |
This function handles Bus Fault exception. | |
void | DebugMon_Handler (void) |
This function handles Debug Monitor exception. | |
void | EXTI0_1_IRQHandler (void) |
This function handles External line 0 interrupt request. | |
void | EXTI4_15_IRQHandler (void) |
This function handles External lines 15 to 10 interrupt request. | |
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 | PendSV_Handler (void) |
This function handles PendSVC exception. | |
static void | RTC_Config (void) |
Configure the RTC peripheral by selecting the clock source. | |
static void | RTC_DateShow (void) |
Display the current date on the Hyperterminal. | |
static Table_TypeDef | RTC_Get_Date (RTC_DateTypeDef *RTC_DateStructure) |
Returns the current time and sub second. | |
static Table_TypeDef | RTC_Get_Time (uint32_t Secondfraction, RTC_TimeTypeDef *RTC_TimeStructure) |
Returns the current time and sub second. | |
static void | RTC_Time_display (uint8_t Line, __IO uint16_t Color_x, Table_TypeDef table) |
Displays the current Time on the LCD. | |
static void | RTC_TimeRegulate (void) |
Returns the time entered by user, using Hyperterminal. | |
static void | RTC_TimeShow (void) |
Display the current time on the Hyperterminal. | |
static void | RTC_TimeStampShow (void) |
Display the current TimeStamp (time and date) on the Hyperterminal. | |
void | SVC_Handler (void) |
This function handles SVCall exception. | |
void | SysTick_Handler (void) |
This function handles SysTick Handler. | |
void | UsageFault_Handler (void) |
This function handles Usage Fault exception. | |
Variables | |
uint32_t | AsynchPrediv = 0 |
__IO uint8_t | Button_State |
__IO uint8_t | Button_State = 0 |
uint32_t | Secondfraction = 0 |
uint32_t | SynchPrediv = 0 |
Function Documentation
void BusFault_Handler | ( | void | ) |
This function handles Bus Fault exception.
- Parameters:
-
None
- Return values:
-
None
Definition at line 93 of file STM32F0xx_StdPeriph_Examples/RTC/RTC_TimeStamp/stm32f0xx_it.c.
void DebugMon_Handler | ( | void | ) |
This function handles Debug Monitor exception.
- Parameters:
-
None
- Return values:
-
None
Definition at line 128 of file STM32F0xx_StdPeriph_Examples/RTC/RTC_TimeStamp/stm32f0xx_it.c.
void EXTI0_1_IRQHandler | ( | void | ) |
This function handles External line 0 interrupt request.
This function handles EXTI 10 to 15 request.
- Parameters:
-
None
- Return values:
-
None
Definition at line 175 of file STM32F0xx_StdPeriph_Examples/RTC/RTC_TimeStamp/stm32f0xx_it.c.
References Button_State, CANx, KeyNumber, LED_Display(), MESSAGE2, SEL_ON, and TxMessage1.
void EXTI4_15_IRQHandler | ( | void | ) |
This function handles External lines 15 to 10 interrupt request.
This function handles EXTI 6 request.
- Parameters:
-
None
- Return values:
-
None
Definition at line 159 of file STM32F0xx_StdPeriph_Examples/RTC/RTC_TimeStamp/stm32f0xx_it.c.
References Button_State, CANx, KeyNumber, LED_Display(), MESSAGE1, TAMPER_ON, and TxMessage.
void HardFault_Handler | ( | void | ) |
This function handles Hard Fault exception.
- Parameters:
-
None
- Return values:
-
None
Definition at line 67 of file STM32F0xx_StdPeriph_Examples/RTC/RTC_TimeStamp/stm32f0xx_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_stm32f4xx.s) before to branch to application main. To reconfigure the default setting of SystemInit() function, refer to system_stm32f4xx.c file
Definition at line 63 of file STM32F0xx_StdPeriph_Examples/RTC/RTC_TimeStamp/main.c.
References Button_State, RTC_Config(), RTC_DateShow(), RTC_TimeRegulate(), RTC_TimeShow(), RTC_TimeStampShow(), SEL_ON, and TAMPER_ON.
void MemManage_Handler | ( | void | ) |
This function handles Memory Manage exception.
- Parameters:
-
None
- Return values:
-
None
Definition at line 80 of file STM32F0xx_StdPeriph_Examples/RTC/RTC_TimeStamp/stm32f0xx_it.c.
void NMI_Handler | ( | void | ) |
This function handles NMI exception.
- Parameters:
-
None
- Return values:
-
None
Definition at line 58 of file STM32F0xx_StdPeriph_Examples/RTC/RTC_TimeStamp/stm32f0xx_it.c.
void PendSV_Handler | ( | void | ) |
This function handles PendSVC exception.
- Parameters:
-
None
- Return values:
-
None
Definition at line 137 of file STM32F0xx_StdPeriph_Examples/RTC/RTC_TimeStamp/stm32f0xx_it.c.
static void RTC_Config | ( | void | ) | [static] |
Configure the RTC peripheral by selecting the clock source.
- Parameters:
-
None
- Return values:
-
None
Definition at line 217 of file STM32F0xx_StdPeriph_Examples/RTC/RTC_TimeStamp/main.c.
References AsynchPrediv, RTC_InitStructure, and SynchPrediv.
Referenced by main().
static void RTC_DateShow | ( | void | ) | [static] |
Display the current date on the Hyperterminal.
- Parameters:
-
None
- Return values:
-
None
Definition at line 349 of file STM32F0xx_StdPeriph_Examples/RTC/RTC_TimeStamp/main.c.
References RTC_Get_Date(), and RTC_Time_display().
Referenced by main().
static Table_TypeDef RTC_Get_Date | ( | RTC_DateTypeDef * | RTC_DateStructure | ) | [static] |
Returns the current time and sub second.
- Parameters:
-
Secondfraction,: the sub second fraction. RTC_TimeStructure : pointer to a RTC_TimeTypeDef structure that contains the current time values.
- Return values:
-
table : return current time and sub second in a table form
Definition at line 452 of file STM32F0xx_StdPeriph_Examples/RTC/RTC_TimeStamp/main.c.
References Table_TypeDef::tab.
Referenced by RTC_DateShow(), and RTC_TimeStampShow().
static Table_TypeDef RTC_Get_Time | ( | uint32_t | Secondfraction, |
RTC_TimeTypeDef * | RTC_TimeStructure | ||
) | [static] |
Returns the current time and sub second.
- Parameters:
-
Secondfraction,: the sub second fraction. RTC_TimeStructure : pointer to a RTC_TimeTypeDef structure that contains the current time values.
- Return values:
-
table : return current time and sub second in a table form
static void RTC_Time_display | ( | uint8_t | Line, |
__IO uint16_t | Color_x, | ||
Table_TypeDef | table | ||
) | [static] |
Displays the current Time on the LCD.
- Parameters:
-
Line,: the Line where to display the Current time . This parameter can be one of the following values: - Linex: where x can be 0..9
Color_x,: specifies the Background Color. table,: the Current time and sub second.
- Return values:
-
None
Definition at line 403 of file STM32F0xx_StdPeriph_Examples/RTC/RTC_TimeStamp/main.c.
References i, and Table_TypeDef::tab.
Referenced by RTC_DateShow(), and RTC_TimeStampShow().
static void RTC_TimeRegulate | ( | void | ) | [static] |
Returns the time entered by user, using Hyperterminal.
- Parameters:
-
None
- Return values:
-
None
static void RTC_TimeShow | ( | void | ) | [static] |
Display the current time on the Hyperterminal.
- Parameters:
-
None
- Return values:
-
None
static void RTC_TimeStampShow | ( | void | ) | [static] |
Display the current TimeStamp (time and date) on the Hyperterminal.
- Parameters:
-
None
- Return values:
-
None
Definition at line 371 of file STM32F0xx_StdPeriph_Examples/RTC/RTC_TimeStamp/main.c.
References RTC_Get_Date(), RTC_Get_Time(), RTC_Time_display(), and Secondfraction.
Referenced by main().
void SVC_Handler | ( | void | ) |
This function handles SVCall exception.
- Parameters:
-
None
- Return values:
-
None
Definition at line 119 of file STM32F0xx_StdPeriph_Examples/RTC/RTC_TimeStamp/stm32f0xx_it.c.
void SysTick_Handler | ( | void | ) |
This function handles SysTick Handler.
- Parameters:
-
None
- Return values:
-
None
Definition at line 146 of file STM32F0xx_StdPeriph_Examples/RTC/RTC_TimeStamp/stm32f0xx_it.c.
void UsageFault_Handler | ( | void | ) |
This function handles Usage Fault exception.
- Parameters:
-
None
- Return values:
-
None
Definition at line 106 of file STM32F0xx_StdPeriph_Examples/RTC/RTC_TimeStamp/stm32f0xx_it.c.
Variable Documentation
uint32_t AsynchPrediv = 0 |
Definition at line 43 of file STM32F0xx_StdPeriph_Examples/RTC/RTC_TimeStamp/main.c.
__IO uint8_t Button_State |
Definition at line 52 of file STM32F0xx_StdPeriph_Examples/RTC/RTC_StopWatch/main.c.
Referenced by EXTI0_1_IRQHandler(), EXTI2_3_IRQHandler(), EXTI4_15_IRQHandler(), and main().
__IO uint8_t Button_State = 0 |
Definition at line 45 of file STM32F0xx_StdPeriph_Examples/RTC/RTC_TimeStamp/main.c.
uint32_t Secondfraction = 0 |
Definition at line 44 of file STM32F0xx_StdPeriph_Examples/RTC/RTC_TimeStamp/main.c.
Referenced by RTC_TimeStampShow().
uint32_t SynchPrediv = 0 |
Definition at line 43 of file STM32F0xx_StdPeriph_Examples/RTC/RTC_TimeStamp/main.c.