STM32F103xB HAL User Manual
Defines | Functions
stm32f1xx_ll_rtc.c File Reference

RTC LL module driver. More...

#include "stm32f1xx_ll_rtc.h"
#include "stm32f1xx_ll_cortex.h"

Go to the source code of this file.

Defines

#define assert_param(expr)   ((void)0U)
#define RTC_ASYNCH_PRESC_DEFAULT   0x00007FFFU
#define RTC_INITMODE_TIMEOUT   1000U /* 1s when tick set to 1ms */
#define RTC_SYNCHRO_TIMEOUT   1000U /* 1s when tick set to 1ms */
#define IS_LL_RTC_ASYNCH_PREDIV(__VALUE__)   ((__VALUE__) <= 0xFFFFFU)
#define IS_LL_RTC_FORMAT(__VALUE__)
#define IS_LL_RTC_HOUR24(__HOUR__)   ((__HOUR__) <= 23U)
#define IS_LL_RTC_MINUTES(__MINUTES__)   ((__MINUTES__) <= 59U)
#define IS_LL_RTC_SECONDS(__SECONDS__)   ((__SECONDS__) <= 59U)
#define IS_LL_RTC_CALIB_OUTPUT(__OUTPUT__)

Functions

ErrorStatus LL_RTC_DeInit (RTC_TypeDef *RTCx)
 De-Initializes the RTC registers to their default reset values.
ErrorStatus LL_RTC_Init (RTC_TypeDef *RTCx, LL_RTC_InitTypeDef *RTC_InitStruct)
 Initializes the RTC registers according to the specified parameters in RTC_InitStruct.
void LL_RTC_StructInit (LL_RTC_InitTypeDef *RTC_InitStruct)
 Set each LL_RTC_InitTypeDef field to default value.
ErrorStatus LL_RTC_TIME_Init (RTC_TypeDef *RTCx, uint32_t RTC_Format, LL_RTC_TimeTypeDef *RTC_TimeStruct)
 Set the RTC current time.
void LL_RTC_TIME_StructInit (LL_RTC_TimeTypeDef *RTC_TimeStruct)
 Set each LL_RTC_TimeTypeDef field to default value (Time = 00h:00min:00sec).
ErrorStatus LL_RTC_ALARM_Init (RTC_TypeDef *RTCx, uint32_t RTC_Format, LL_RTC_AlarmTypeDef *RTC_AlarmStruct)
 Set the RTC Alarm.
void LL_RTC_ALARM_StructInit (LL_RTC_AlarmTypeDef *RTC_AlarmStruct)
 Set each LL_RTC_AlarmTypeDef of ALARM field to default value (Time = 00h:00mn:00sec / Day = 1st day of the month/Mask = all fields are masked).
ErrorStatus LL_RTC_EnterInitMode (RTC_TypeDef *RTCx)
 Enters the RTC Initialization mode.
ErrorStatus LL_RTC_ExitInitMode (RTC_TypeDef *RTCx)
 Exit the RTC Initialization mode.
ErrorStatus LL_RTC_TIME_SetCounter (RTC_TypeDef *RTCx, uint32_t TimeCounter)
 Set the Time Counter.
ErrorStatus LL_RTC_ALARM_SetCounter (RTC_TypeDef *RTCx, uint32_t AlarmCounter)
 Set Alarm Counter.
ErrorStatus LL_RTC_WaitForSynchro (RTC_TypeDef *RTCx)
 Waits until the RTC registers are synchronized with RTC APB clock.

Detailed Description

RTC LL module driver.

Author:
MCD Application Team
Attention:

© Copyright (c) 2016 STMicroelectronics. All rights reserved.

This software component is licensed by ST under BSD 3-Clause license, the "License"; You may not use this file except in compliance with the License. You may obtain a copy of the License at: opensource.org/licenses/BSD-3-Clause

Definition in file stm32f1xx_ll_rtc.c.


Define Documentation

#define assert_param (   expr)    ((void)0U)