STM32F0xx Standard Peripherals Firmware Library
|
Main program body. More...
#include "main.h"
Go to the source code of this file.
Functions | |
int | main (void) |
Main program. | |
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. | |
Variables | |
uint32_t | AsynchPrediv = 0 |
__IO uint8_t | Button_State = 0 |
uint32_t | Secondfraction = 0 |
uint32_t | SynchPrediv = 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_TimeStamp/main.c.