STM32F0xx Standard Peripherals Firmware Library: main.c File Reference

STM32F0xx Standard Peripherals Library

STM32F0xx_StdPeriph_Examples/RTC/RTC_StopWatch/main.c File Reference

Main program body. More...

#include "main.h"

Go to the source code of this file.

Defines

#define MESSAGE1   " **** STOPWATCH ****"
#define MESSAGE2   " LEFT | RIGHT "
#define MESSAGE3   " START | GET "
#define MESSAGE4   " Press and hold TAMPER "
#define MESSAGE5   " to reset Backup registers"

Functions

static void Display_Init (void)
 Display Init (LCD)
int main (void)
 Main program.
static void RTC_Config (void)
 Configure the RTC peripheral by selecting the clock source.
Table_TypeDef RTC_Get_Time (uint32_t SecondFrac, RTC_TimeTypeDef *RTC_TimeStructure)
 load the current time and sub second on a table form.
static void RTC_TamperConfig (void)
 RTC Tamper Configuration.
void RTC_Time_Display (uint8_t Line, __IO uint16_t Colorx, Table_TypeDef timetable)
 Displays the current Time on the LCD.
void RTC_Time_InitDisplay (void)
 Initialize the time displays on the LCD.

Variables

uint32_t BackupIndex = 0
uint32_t BKPDataReg [5]
__IO uint8_t Button_RTC = 0
__IO uint8_t Button_State = 0
__IO uint32_t CurrentTimeSec = 0
uint8_t i = 0
__IO uint32_t SecondFraction = 0
__IO uint8_t StartEvent = 0
__IO uint32_t SubSecFrac = 0

Detailed Description

Main program body.

Author:
MCD Application Team
Version:
V1.4.0
Date:
24-July-2014
Attention:

© COPYRIGHT 2014 STMicroelectronics

Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); You may not use this file except in compliance with the License. You may obtain a copy of the License at:

http://www.st.com/software_license_agreement_liberty_v2

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Definition in file STM32F0xx_StdPeriph_Examples/RTC/RTC_StopWatch/main.c.

STM32L1xx Standard Peripherals Library: Footer

 

 

 For complete documentation on STM32 Microcontrollers visit www.st.com/STM32