/TARGET_K64F/TARGET_Freescale/TARGET_KPSDK_MCUS/TARGET_KPSDK_CODE/hal/adc/fsl_adc_hal.h substitute line 894 extern } by }

Fork of mbed by mbed official

Committer:
fblanc
Date:
Fri Dec 05 15:42:32 2014 +0000
Revision:
93:9dd889aeda0e
Parent:
86:04dd9b1680ae
substitute line 894 extern } by }; /TARGET_K64F/TARGET_Freescale/TARGET_KPSDK_MCUS/TARGET_KPSDK_CODE/hal/adc/fsl_adc_hal.h

Who changed what in which revision?

UserRevisionLine numberNew contents of line
bogdanm 86:04dd9b1680ae 1 /**
bogdanm 86:04dd9b1680ae 2 ******************************************************************************
bogdanm 86:04dd9b1680ae 3 * @file stm32f4xx_hal_rtc.h
bogdanm 86:04dd9b1680ae 4 * @author MCD Application Team
bogdanm 86:04dd9b1680ae 5 * @version V1.1.0
bogdanm 86:04dd9b1680ae 6 * @date 19-June-2014
bogdanm 86:04dd9b1680ae 7 * @brief Header file of RTC HAL module.
bogdanm 86:04dd9b1680ae 8 ******************************************************************************
bogdanm 86:04dd9b1680ae 9 * @attention
bogdanm 86:04dd9b1680ae 10 *
bogdanm 86:04dd9b1680ae 11 * <h2><center>&copy; COPYRIGHT(c) 2014 STMicroelectronics</center></h2>
bogdanm 86:04dd9b1680ae 12 *
bogdanm 86:04dd9b1680ae 13 * Redistribution and use in source and binary forms, with or without modification,
bogdanm 86:04dd9b1680ae 14 * are permitted provided that the following conditions are met:
bogdanm 86:04dd9b1680ae 15 * 1. Redistributions of source code must retain the above copyright notice,
bogdanm 86:04dd9b1680ae 16 * this list of conditions and the following disclaimer.
bogdanm 86:04dd9b1680ae 17 * 2. Redistributions in binary form must reproduce the above copyright notice,
bogdanm 86:04dd9b1680ae 18 * this list of conditions and the following disclaimer in the documentation
bogdanm 86:04dd9b1680ae 19 * and/or other materials provided with the distribution.
bogdanm 86:04dd9b1680ae 20 * 3. Neither the name of STMicroelectronics nor the names of its contributors
bogdanm 86:04dd9b1680ae 21 * may be used to endorse or promote products derived from this software
bogdanm 86:04dd9b1680ae 22 * without specific prior written permission.
bogdanm 86:04dd9b1680ae 23 *
bogdanm 86:04dd9b1680ae 24 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
bogdanm 86:04dd9b1680ae 25 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
bogdanm 86:04dd9b1680ae 26 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
bogdanm 86:04dd9b1680ae 27 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
bogdanm 86:04dd9b1680ae 28 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
bogdanm 86:04dd9b1680ae 29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
bogdanm 86:04dd9b1680ae 30 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
bogdanm 86:04dd9b1680ae 31 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
bogdanm 86:04dd9b1680ae 32 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
bogdanm 86:04dd9b1680ae 33 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
bogdanm 86:04dd9b1680ae 34 *
bogdanm 86:04dd9b1680ae 35 ******************************************************************************
bogdanm 86:04dd9b1680ae 36 */
bogdanm 86:04dd9b1680ae 37
bogdanm 86:04dd9b1680ae 38 /* Define to prevent recursive inclusion -------------------------------------*/
bogdanm 86:04dd9b1680ae 39 #ifndef __STM32F4xx_HAL_RTC_H
bogdanm 86:04dd9b1680ae 40 #define __STM32F4xx_HAL_RTC_H
bogdanm 86:04dd9b1680ae 41
bogdanm 86:04dd9b1680ae 42 #ifdef __cplusplus
bogdanm 86:04dd9b1680ae 43 extern "C" {
bogdanm 86:04dd9b1680ae 44 #endif
bogdanm 86:04dd9b1680ae 45
bogdanm 86:04dd9b1680ae 46 /* Includes ------------------------------------------------------------------*/
bogdanm 86:04dd9b1680ae 47 #include "stm32f4xx_hal_def.h"
bogdanm 86:04dd9b1680ae 48
bogdanm 86:04dd9b1680ae 49 /** @addtogroup STM32F4xx_HAL_Driver
bogdanm 86:04dd9b1680ae 50 * @{
bogdanm 86:04dd9b1680ae 51 */
bogdanm 86:04dd9b1680ae 52
bogdanm 86:04dd9b1680ae 53 /** @addtogroup RTC
bogdanm 86:04dd9b1680ae 54 * @{
bogdanm 86:04dd9b1680ae 55 */
bogdanm 86:04dd9b1680ae 56
bogdanm 86:04dd9b1680ae 57 /* Exported types ------------------------------------------------------------*/
bogdanm 86:04dd9b1680ae 58 /**
bogdanm 86:04dd9b1680ae 59 * @brief HAL State structures definition
bogdanm 86:04dd9b1680ae 60 */
bogdanm 86:04dd9b1680ae 61 typedef enum
bogdanm 86:04dd9b1680ae 62 {
bogdanm 86:04dd9b1680ae 63 HAL_RTC_STATE_RESET = 0x00, /*!< RTC not yet initialized or disabled */
bogdanm 86:04dd9b1680ae 64 HAL_RTC_STATE_READY = 0x01, /*!< RTC initialized and ready for use */
bogdanm 86:04dd9b1680ae 65 HAL_RTC_STATE_BUSY = 0x02, /*!< RTC process is ongoing */
bogdanm 86:04dd9b1680ae 66 HAL_RTC_STATE_TIMEOUT = 0x03, /*!< RTC timeout state */
bogdanm 86:04dd9b1680ae 67 HAL_RTC_STATE_ERROR = 0x04 /*!< RTC error state */
bogdanm 86:04dd9b1680ae 68
bogdanm 86:04dd9b1680ae 69 }HAL_RTCStateTypeDef;
bogdanm 86:04dd9b1680ae 70
bogdanm 86:04dd9b1680ae 71 /**
bogdanm 86:04dd9b1680ae 72 * @brief RTC Configuration Structure definition
bogdanm 86:04dd9b1680ae 73 */
bogdanm 86:04dd9b1680ae 74 typedef struct
bogdanm 86:04dd9b1680ae 75 {
bogdanm 86:04dd9b1680ae 76 uint32_t HourFormat; /*!< Specifies the RTC Hour Format.
bogdanm 86:04dd9b1680ae 77 This parameter can be a value of @ref RTC_Hour_Formats */
bogdanm 86:04dd9b1680ae 78
bogdanm 86:04dd9b1680ae 79 uint32_t AsynchPrediv; /*!< Specifies the RTC Asynchronous Predivider value.
bogdanm 86:04dd9b1680ae 80 This parameter must be a number between Min_Data = 0x00 and Max_Data = 0x7F */
bogdanm 86:04dd9b1680ae 81
bogdanm 86:04dd9b1680ae 82 uint32_t SynchPrediv; /*!< Specifies the RTC Synchronous Predivider value.
bogdanm 86:04dd9b1680ae 83 This parameter must be a number between Min_Data = 0x00 and Max_Data = 0x7FFF */
bogdanm 86:04dd9b1680ae 84
bogdanm 86:04dd9b1680ae 85 uint32_t OutPut; /*!< Specifies which signal will be routed to the RTC output.
bogdanm 86:04dd9b1680ae 86 This parameter can be a value of @ref RTC_Output_selection_Definitions */
bogdanm 86:04dd9b1680ae 87
bogdanm 86:04dd9b1680ae 88 uint32_t OutPutPolarity; /*!< Specifies the polarity of the output signal.
bogdanm 86:04dd9b1680ae 89 This parameter can be a value of @ref RTC_Output_Polarity_Definitions */
bogdanm 86:04dd9b1680ae 90
bogdanm 86:04dd9b1680ae 91 uint32_t OutPutType; /*!< Specifies the RTC Output Pin mode.
bogdanm 86:04dd9b1680ae 92 This parameter can be a value of @ref RTC_Output_Type_ALARM_OUT */
bogdanm 86:04dd9b1680ae 93 }RTC_InitTypeDef;
bogdanm 86:04dd9b1680ae 94
bogdanm 86:04dd9b1680ae 95 /**
bogdanm 86:04dd9b1680ae 96 * @brief RTC Time structure definition
bogdanm 86:04dd9b1680ae 97 */
bogdanm 86:04dd9b1680ae 98 typedef struct
bogdanm 86:04dd9b1680ae 99 {
bogdanm 86:04dd9b1680ae 100 uint8_t Hours; /*!< Specifies the RTC Time Hour.
bogdanm 86:04dd9b1680ae 101 This parameter must be a number between Min_Data = 0 and Max_Data = 12 if the RTC_HourFormat_12 is selected.
bogdanm 86:04dd9b1680ae 102 This parameter must be a number between Min_Data = 0 and Max_Data = 23 if the RTC_HourFormat_24 is selected */
bogdanm 86:04dd9b1680ae 103
bogdanm 86:04dd9b1680ae 104 uint8_t Minutes; /*!< Specifies the RTC Time Minutes.
bogdanm 86:04dd9b1680ae 105 This parameter must be a number between Min_Data = 0 and Max_Data = 59 */
bogdanm 86:04dd9b1680ae 106
bogdanm 86:04dd9b1680ae 107 uint8_t Seconds; /*!< Specifies the RTC Time Seconds.
bogdanm 86:04dd9b1680ae 108 This parameter must be a number between Min_Data = 0 and Max_Data = 59 */
bogdanm 86:04dd9b1680ae 109
bogdanm 86:04dd9b1680ae 110 uint32_t SubSeconds; /*!< Specifies the RTC Time SubSeconds.
bogdanm 86:04dd9b1680ae 111 This parameter must be a number between Min_Data = 0 and Max_Data = 59 */
bogdanm 86:04dd9b1680ae 112
bogdanm 86:04dd9b1680ae 113 uint8_t TimeFormat; /*!< Specifies the RTC AM/PM Time.
bogdanm 86:04dd9b1680ae 114 This parameter can be a value of @ref RTC_AM_PM_Definitions */
bogdanm 86:04dd9b1680ae 115
bogdanm 86:04dd9b1680ae 116 uint32_t DayLightSaving; /*!< Specifies DayLight Save Operation.
bogdanm 86:04dd9b1680ae 117 This parameter can be a value of @ref RTC_DayLightSaving_Definitions */
bogdanm 86:04dd9b1680ae 118
bogdanm 86:04dd9b1680ae 119 uint32_t StoreOperation; /*!< Specifies RTC_StoreOperation value to be written in the BCK bit
bogdanm 86:04dd9b1680ae 120 in CR register to store the operation.
bogdanm 86:04dd9b1680ae 121 This parameter can be a value of @ref RTC_StoreOperation_Definitions */
bogdanm 86:04dd9b1680ae 122 }RTC_TimeTypeDef;
bogdanm 86:04dd9b1680ae 123
bogdanm 86:04dd9b1680ae 124 /**
bogdanm 86:04dd9b1680ae 125 * @brief RTC Date structure definition
bogdanm 86:04dd9b1680ae 126 */
bogdanm 86:04dd9b1680ae 127 typedef struct
bogdanm 86:04dd9b1680ae 128 {
bogdanm 86:04dd9b1680ae 129 uint8_t WeekDay; /*!< Specifies the RTC Date WeekDay.
bogdanm 86:04dd9b1680ae 130 This parameter can be a value of @ref RTC_WeekDay_Definitions */
bogdanm 86:04dd9b1680ae 131
bogdanm 86:04dd9b1680ae 132 uint8_t Month; /*!< Specifies the RTC Date Month (in BCD format).
bogdanm 86:04dd9b1680ae 133 This parameter can be a value of @ref RTC_Month_Date_Definitions */
bogdanm 86:04dd9b1680ae 134
bogdanm 86:04dd9b1680ae 135 uint8_t Date; /*!< Specifies the RTC Date.
bogdanm 86:04dd9b1680ae 136 This parameter must be a number between Min_Data = 1 and Max_Data = 31 */
bogdanm 86:04dd9b1680ae 137
bogdanm 86:04dd9b1680ae 138 uint8_t Year; /*!< Specifies the RTC Date Year.
bogdanm 86:04dd9b1680ae 139 This parameter must be a number between Min_Data = 0 and Max_Data = 99 */
bogdanm 86:04dd9b1680ae 140
bogdanm 86:04dd9b1680ae 141 }RTC_DateTypeDef;
bogdanm 86:04dd9b1680ae 142
bogdanm 86:04dd9b1680ae 143 /**
bogdanm 86:04dd9b1680ae 144 * @brief RTC Alarm structure definition
bogdanm 86:04dd9b1680ae 145 */
bogdanm 86:04dd9b1680ae 146 typedef struct
bogdanm 86:04dd9b1680ae 147 {
bogdanm 86:04dd9b1680ae 148 RTC_TimeTypeDef AlarmTime; /*!< Specifies the RTC Alarm Time members */
bogdanm 86:04dd9b1680ae 149
bogdanm 86:04dd9b1680ae 150 uint32_t AlarmMask; /*!< Specifies the RTC Alarm Masks.
bogdanm 86:04dd9b1680ae 151 This parameter can be a value of @ref RTC_AlarmMask_Definitions */
bogdanm 86:04dd9b1680ae 152
bogdanm 86:04dd9b1680ae 153 uint32_t AlarmSubSecondMask; /*!< Specifies the RTC Alarm SubSeconds Masks.
bogdanm 86:04dd9b1680ae 154 This parameter can be a value of @ref RTC_Alarm_Sub_Seconds_Masks_Definitions */
bogdanm 86:04dd9b1680ae 155
bogdanm 86:04dd9b1680ae 156 uint32_t AlarmDateWeekDaySel; /*!< Specifies the RTC Alarm is on Date or WeekDay.
bogdanm 86:04dd9b1680ae 157 This parameter can be a value of @ref RTC_AlarmDateWeekDay_Definitions */
bogdanm 86:04dd9b1680ae 158
bogdanm 86:04dd9b1680ae 159 uint8_t AlarmDateWeekDay; /*!< Specifies the RTC Alarm Date/WeekDay.
bogdanm 86:04dd9b1680ae 160 If the Alarm Date is selected, this parameter must be set to a value in the 1-31 range.
bogdanm 86:04dd9b1680ae 161 If the Alarm WeekDay is selected, this parameter can be a value of @ref RTC_WeekDay_Definitions */
bogdanm 86:04dd9b1680ae 162
bogdanm 86:04dd9b1680ae 163 uint32_t Alarm; /*!< Specifies the alarm .
bogdanm 86:04dd9b1680ae 164 This parameter can be a value of @ref RTC_Alarms_Definitions */
bogdanm 86:04dd9b1680ae 165 }RTC_AlarmTypeDef;
bogdanm 86:04dd9b1680ae 166
bogdanm 86:04dd9b1680ae 167 /**
bogdanm 86:04dd9b1680ae 168 * @brief Time Handle Structure definition
bogdanm 86:04dd9b1680ae 169 */
bogdanm 86:04dd9b1680ae 170 typedef struct
bogdanm 86:04dd9b1680ae 171 {
bogdanm 86:04dd9b1680ae 172 RTC_TypeDef *Instance; /*!< Register base address */
bogdanm 86:04dd9b1680ae 173
bogdanm 86:04dd9b1680ae 174 RTC_InitTypeDef Init; /*!< RTC required parameters */
bogdanm 86:04dd9b1680ae 175
bogdanm 86:04dd9b1680ae 176 HAL_LockTypeDef Lock; /*!< RTC locking object */
bogdanm 86:04dd9b1680ae 177
bogdanm 86:04dd9b1680ae 178 __IO HAL_RTCStateTypeDef State; /*!< Time communication state */
bogdanm 86:04dd9b1680ae 179
bogdanm 86:04dd9b1680ae 180 }RTC_HandleTypeDef;
bogdanm 86:04dd9b1680ae 181
bogdanm 86:04dd9b1680ae 182 /* Exported constants --------------------------------------------------------*/
bogdanm 86:04dd9b1680ae 183 /** @defgroup RTC_Exported_Constants
bogdanm 86:04dd9b1680ae 184 * @{
bogdanm 86:04dd9b1680ae 185 */
bogdanm 86:04dd9b1680ae 186
bogdanm 86:04dd9b1680ae 187 /* Masks Definition */
bogdanm 86:04dd9b1680ae 188 #define RTC_TR_RESERVED_MASK ((uint32_t)0x007F7F7F)
bogdanm 86:04dd9b1680ae 189 #define RTC_DR_RESERVED_MASK ((uint32_t)0x00FFFF3F)
bogdanm 86:04dd9b1680ae 190 #define RTC_INIT_MASK ((uint32_t)0xFFFFFFFF)
bogdanm 86:04dd9b1680ae 191 #define RTC_RSF_MASK ((uint32_t)0xFFFFFF5F)
bogdanm 86:04dd9b1680ae 192 #define RTC_FLAGS_MASK ((uint32_t)(RTC_FLAG_TSOVF | RTC_FLAG_TSF | RTC_FLAG_WUTF | \
bogdanm 86:04dd9b1680ae 193 RTC_FLAG_ALRBF | RTC_FLAG_ALRAF | RTC_FLAG_INITF | \
bogdanm 86:04dd9b1680ae 194 RTC_FLAG_RSF | RTC_FLAG_INITS | RTC_FLAG_WUTWF | \
bogdanm 86:04dd9b1680ae 195 RTC_FLAG_ALRBWF | RTC_FLAG_ALRAWF | RTC_FLAG_TAMP1F | \
bogdanm 86:04dd9b1680ae 196 RTC_FLAG_RECALPF | RTC_FLAG_SHPF))
bogdanm 86:04dd9b1680ae 197
bogdanm 86:04dd9b1680ae 198 #define RTC_TIMEOUT_VALUE 1000
bogdanm 86:04dd9b1680ae 199
bogdanm 86:04dd9b1680ae 200 /** @defgroup RTC_Hour_Formats
bogdanm 86:04dd9b1680ae 201 * @{
bogdanm 86:04dd9b1680ae 202 */
bogdanm 86:04dd9b1680ae 203 #define RTC_HOURFORMAT_24 ((uint32_t)0x00000000)
bogdanm 86:04dd9b1680ae 204 #define RTC_HOURFORMAT_12 ((uint32_t)0x00000040)
bogdanm 86:04dd9b1680ae 205
bogdanm 86:04dd9b1680ae 206 #define IS_RTC_HOUR_FORMAT(FORMAT) (((FORMAT) == RTC_HOURFORMAT_12) || \
bogdanm 86:04dd9b1680ae 207 ((FORMAT) == RTC_HOURFORMAT_24))
bogdanm 86:04dd9b1680ae 208 /**
bogdanm 86:04dd9b1680ae 209 * @}
bogdanm 86:04dd9b1680ae 210 */
bogdanm 86:04dd9b1680ae 211
bogdanm 86:04dd9b1680ae 212 /** @defgroup RTC_Output_selection_Definitions
bogdanm 86:04dd9b1680ae 213 * @{
bogdanm 86:04dd9b1680ae 214 */
bogdanm 86:04dd9b1680ae 215 #define RTC_OUTPUT_DISABLE ((uint32_t)0x00000000)
bogdanm 86:04dd9b1680ae 216 #define RTC_OUTPUT_ALARMA ((uint32_t)0x00200000)
bogdanm 86:04dd9b1680ae 217 #define RTC_OUTPUT_ALARMB ((uint32_t)0x00400000)
bogdanm 86:04dd9b1680ae 218 #define RTC_OUTPUT_WAKEUP ((uint32_t)0x00600000)
bogdanm 86:04dd9b1680ae 219
bogdanm 86:04dd9b1680ae 220 #define IS_RTC_OUTPUT(OUTPUT) (((OUTPUT) == RTC_OUTPUT_DISABLE) || \
bogdanm 86:04dd9b1680ae 221 ((OUTPUT) == RTC_OUTPUT_ALARMA) || \
bogdanm 86:04dd9b1680ae 222 ((OUTPUT) == RTC_OUTPUT_ALARMB) || \
bogdanm 86:04dd9b1680ae 223 ((OUTPUT) == RTC_OUTPUT_WAKEUP))
bogdanm 86:04dd9b1680ae 224 /**
bogdanm 86:04dd9b1680ae 225 * @}
bogdanm 86:04dd9b1680ae 226 */
bogdanm 86:04dd9b1680ae 227
bogdanm 86:04dd9b1680ae 228 /** @defgroup RTC_Output_Polarity_Definitions
bogdanm 86:04dd9b1680ae 229 * @{
bogdanm 86:04dd9b1680ae 230 */
bogdanm 86:04dd9b1680ae 231 #define RTC_OUTPUT_POLARITY_HIGH ((uint32_t)0x00000000)
bogdanm 86:04dd9b1680ae 232 #define RTC_OUTPUT_POLARITY_LOW ((uint32_t)0x00100000)
bogdanm 86:04dd9b1680ae 233
bogdanm 86:04dd9b1680ae 234 #define IS_RTC_OUTPUT_POL(POL) (((POL) == RTC_OUTPUT_POLARITY_HIGH) || \
bogdanm 86:04dd9b1680ae 235 ((POL) == RTC_OUTPUT_POLARITY_LOW))
bogdanm 86:04dd9b1680ae 236 /**
bogdanm 86:04dd9b1680ae 237 * @}
bogdanm 86:04dd9b1680ae 238 */
bogdanm 86:04dd9b1680ae 239
bogdanm 86:04dd9b1680ae 240 /** @defgroup RTC_Output_Type_ALARM_OUT
bogdanm 86:04dd9b1680ae 241 * @{
bogdanm 86:04dd9b1680ae 242 */
bogdanm 86:04dd9b1680ae 243 #define RTC_OUTPUT_TYPE_OPENDRAIN ((uint32_t)0x00000000)
bogdanm 86:04dd9b1680ae 244 #define RTC_OUTPUT_TYPE_PUSHPULL ((uint32_t)0x00040000)
bogdanm 86:04dd9b1680ae 245
bogdanm 86:04dd9b1680ae 246 #define IS_RTC_OUTPUT_TYPE(TYPE) (((TYPE) == RTC_OUTPUT_TYPE_OPENDRAIN) || \
bogdanm 86:04dd9b1680ae 247 ((TYPE) == RTC_OUTPUT_TYPE_PUSHPULL))
bogdanm 86:04dd9b1680ae 248
bogdanm 86:04dd9b1680ae 249 /**
bogdanm 86:04dd9b1680ae 250 * @}
bogdanm 86:04dd9b1680ae 251 */
bogdanm 86:04dd9b1680ae 252
bogdanm 86:04dd9b1680ae 253 /** @defgroup RTC_Asynchronous_Predivider
bogdanm 86:04dd9b1680ae 254 * @{
bogdanm 86:04dd9b1680ae 255 */
bogdanm 86:04dd9b1680ae 256 #define IS_RTC_ASYNCH_PREDIV(PREDIV) ((PREDIV) <= (uint32_t)0x7F)
bogdanm 86:04dd9b1680ae 257 /**
bogdanm 86:04dd9b1680ae 258 * @}
bogdanm 86:04dd9b1680ae 259 */
bogdanm 86:04dd9b1680ae 260
bogdanm 86:04dd9b1680ae 261
bogdanm 86:04dd9b1680ae 262 /** @defgroup RTC_Synchronous_Predivider
bogdanm 86:04dd9b1680ae 263 * @{
bogdanm 86:04dd9b1680ae 264 */
bogdanm 86:04dd9b1680ae 265 #define IS_RTC_SYNCH_PREDIV(PREDIV) ((PREDIV) <= (uint32_t)0x7FFF)
bogdanm 86:04dd9b1680ae 266 /**
bogdanm 86:04dd9b1680ae 267 * @}
bogdanm 86:04dd9b1680ae 268 */
bogdanm 86:04dd9b1680ae 269
bogdanm 86:04dd9b1680ae 270 /** @defgroup RTC_Time_Definitions
bogdanm 86:04dd9b1680ae 271 * @{
bogdanm 86:04dd9b1680ae 272 */
bogdanm 86:04dd9b1680ae 273 #define IS_RTC_HOUR12(HOUR) (((HOUR) > (uint32_t)0) && ((HOUR) <= (uint32_t)12))
bogdanm 86:04dd9b1680ae 274 #define IS_RTC_HOUR24(HOUR) ((HOUR) <= (uint32_t)23)
bogdanm 86:04dd9b1680ae 275 #define IS_RTC_MINUTES(MINUTES) ((MINUTES) <= (uint32_t)59)
bogdanm 86:04dd9b1680ae 276 #define IS_RTC_SECONDS(SECONDS) ((SECONDS) <= (uint32_t)59)
bogdanm 86:04dd9b1680ae 277 /**
bogdanm 86:04dd9b1680ae 278 * @}
bogdanm 86:04dd9b1680ae 279 */
bogdanm 86:04dd9b1680ae 280
bogdanm 86:04dd9b1680ae 281 /** @defgroup RTC_AM_PM_Definitions
bogdanm 86:04dd9b1680ae 282 * @{
bogdanm 86:04dd9b1680ae 283 */
bogdanm 86:04dd9b1680ae 284 #define RTC_HOURFORMAT12_AM ((uint8_t)0x00)
bogdanm 86:04dd9b1680ae 285 #define RTC_HOURFORMAT12_PM ((uint8_t)0x40)
bogdanm 86:04dd9b1680ae 286
bogdanm 86:04dd9b1680ae 287 #define IS_RTC_HOURFORMAT12(PM) (((PM) == RTC_HOURFORMAT12_AM) || ((PM) == RTC_HOURFORMAT12_PM))
bogdanm 86:04dd9b1680ae 288 /**
bogdanm 86:04dd9b1680ae 289 * @}
bogdanm 86:04dd9b1680ae 290 */
bogdanm 86:04dd9b1680ae 291
bogdanm 86:04dd9b1680ae 292 /** @defgroup RTC_DayLightSaving_Definitions
bogdanm 86:04dd9b1680ae 293 * @{
bogdanm 86:04dd9b1680ae 294 */
bogdanm 86:04dd9b1680ae 295 #define RTC_DAYLIGHTSAVING_SUB1H ((uint32_t)0x00020000)
bogdanm 86:04dd9b1680ae 296 #define RTC_DAYLIGHTSAVING_ADD1H ((uint32_t)0x00010000)
bogdanm 86:04dd9b1680ae 297 #define RTC_DAYLIGHTSAVING_NONE ((uint32_t)0x00000000)
bogdanm 86:04dd9b1680ae 298
bogdanm 86:04dd9b1680ae 299 #define IS_RTC_DAYLIGHT_SAVING(SAVE) (((SAVE) == RTC_DAYLIGHTSAVING_SUB1H) || \
bogdanm 86:04dd9b1680ae 300 ((SAVE) == RTC_DAYLIGHTSAVING_ADD1H) || \
bogdanm 86:04dd9b1680ae 301 ((SAVE) == RTC_DAYLIGHTSAVING_NONE))
bogdanm 86:04dd9b1680ae 302 /**
bogdanm 86:04dd9b1680ae 303 * @}
bogdanm 86:04dd9b1680ae 304 */
bogdanm 86:04dd9b1680ae 305
bogdanm 86:04dd9b1680ae 306 /** @defgroup RTC_StoreOperation_Definitions
bogdanm 86:04dd9b1680ae 307 * @{
bogdanm 86:04dd9b1680ae 308 */
bogdanm 86:04dd9b1680ae 309 #define RTC_STOREOPERATION_RESET ((uint32_t)0x00000000)
bogdanm 86:04dd9b1680ae 310 #define RTC_STOREOPERATION_SET ((uint32_t)0x00040000)
bogdanm 86:04dd9b1680ae 311
bogdanm 86:04dd9b1680ae 312 #define IS_RTC_STORE_OPERATION(OPERATION) (((OPERATION) == RTC_STOREOPERATION_RESET) || \
bogdanm 86:04dd9b1680ae 313 ((OPERATION) == RTC_STOREOPERATION_SET))
bogdanm 86:04dd9b1680ae 314 /**
bogdanm 86:04dd9b1680ae 315 * @}
bogdanm 86:04dd9b1680ae 316 */
bogdanm 86:04dd9b1680ae 317
bogdanm 86:04dd9b1680ae 318 /** @defgroup RTC_Input_parameter_format_definitions
bogdanm 86:04dd9b1680ae 319 * @{
bogdanm 86:04dd9b1680ae 320 */
bogdanm 86:04dd9b1680ae 321 #define FORMAT_BIN ((uint32_t)0x000000000)
bogdanm 86:04dd9b1680ae 322 #define FORMAT_BCD ((uint32_t)0x000000001)
bogdanm 86:04dd9b1680ae 323
bogdanm 86:04dd9b1680ae 324 #define IS_RTC_FORMAT(FORMAT) (((FORMAT) == FORMAT_BIN) || ((FORMAT) == FORMAT_BCD))
bogdanm 86:04dd9b1680ae 325 /**
bogdanm 86:04dd9b1680ae 326 * @}
bogdanm 86:04dd9b1680ae 327 */
bogdanm 86:04dd9b1680ae 328
bogdanm 86:04dd9b1680ae 329 /** @defgroup RTC_Year_Date_Definitions
bogdanm 86:04dd9b1680ae 330 * @{
bogdanm 86:04dd9b1680ae 331 */
bogdanm 86:04dd9b1680ae 332 #define IS_RTC_YEAR(YEAR) ((YEAR) <= (uint32_t)99)
bogdanm 86:04dd9b1680ae 333 /**
bogdanm 86:04dd9b1680ae 334 * @}
bogdanm 86:04dd9b1680ae 335 */
bogdanm 86:04dd9b1680ae 336
bogdanm 86:04dd9b1680ae 337 /** @defgroup RTC_Month_Date_Definitions
bogdanm 86:04dd9b1680ae 338 * @{
bogdanm 86:04dd9b1680ae 339 */
bogdanm 86:04dd9b1680ae 340
bogdanm 86:04dd9b1680ae 341 /* Coded in BCD format */
bogdanm 86:04dd9b1680ae 342 #define RTC_MONTH_JANUARY ((uint8_t)0x01)
bogdanm 86:04dd9b1680ae 343 #define RTC_MONTH_FEBRUARY ((uint8_t)0x02)
bogdanm 86:04dd9b1680ae 344 #define RTC_MONTH_MARCH ((uint8_t)0x03)
bogdanm 86:04dd9b1680ae 345 #define RTC_MONTH_APRIL ((uint8_t)0x04)
bogdanm 86:04dd9b1680ae 346 #define RTC_MONTH_MAY ((uint8_t)0x05)
bogdanm 86:04dd9b1680ae 347 #define RTC_MONTH_JUNE ((uint8_t)0x06)
bogdanm 86:04dd9b1680ae 348 #define RTC_MONTH_JULY ((uint8_t)0x07)
bogdanm 86:04dd9b1680ae 349 #define RTC_MONTH_AUGUST ((uint8_t)0x08)
bogdanm 86:04dd9b1680ae 350 #define RTC_MONTH_SEPTEMBER ((uint8_t)0x09)
bogdanm 86:04dd9b1680ae 351 #define RTC_MONTH_OCTOBER ((uint8_t)0x10)
bogdanm 86:04dd9b1680ae 352 #define RTC_MONTH_NOVEMBER ((uint8_t)0x11)
bogdanm 86:04dd9b1680ae 353 #define RTC_MONTH_DECEMBER ((uint8_t)0x12)
bogdanm 86:04dd9b1680ae 354
bogdanm 86:04dd9b1680ae 355 #define IS_RTC_MONTH(MONTH) (((MONTH) >= (uint32_t)1) && ((MONTH) <= (uint32_t)12))
bogdanm 86:04dd9b1680ae 356 #define IS_RTC_DATE(DATE) (((DATE) >= (uint32_t)1) && ((DATE) <= (uint32_t)31))
bogdanm 86:04dd9b1680ae 357 /**
bogdanm 86:04dd9b1680ae 358 * @}
bogdanm 86:04dd9b1680ae 359 */
bogdanm 86:04dd9b1680ae 360
bogdanm 86:04dd9b1680ae 361 /** @defgroup RTC_WeekDay_Definitions
bogdanm 86:04dd9b1680ae 362 * @{
bogdanm 86:04dd9b1680ae 363 */
bogdanm 86:04dd9b1680ae 364 #define RTC_WEEKDAY_MONDAY ((uint8_t)0x01)
bogdanm 86:04dd9b1680ae 365 #define RTC_WEEKDAY_TUESDAY ((uint8_t)0x02)
bogdanm 86:04dd9b1680ae 366 #define RTC_WEEKDAY_WEDNESDAY ((uint8_t)0x03)
bogdanm 86:04dd9b1680ae 367 #define RTC_WEEKDAY_THURSDAY ((uint8_t)0x04)
bogdanm 86:04dd9b1680ae 368 #define RTC_WEEKDAY_FRIDAY ((uint8_t)0x05)
bogdanm 86:04dd9b1680ae 369 #define RTC_WEEKDAY_SATURDAY ((uint8_t)0x06)
bogdanm 86:04dd9b1680ae 370 #define RTC_WEEKDAY_SUNDAY ((uint8_t)0x07)
bogdanm 86:04dd9b1680ae 371
bogdanm 86:04dd9b1680ae 372 #define IS_RTC_WEEKDAY(WEEKDAY) (((WEEKDAY) == RTC_WEEKDAY_MONDAY) || \
bogdanm 86:04dd9b1680ae 373 ((WEEKDAY) == RTC_WEEKDAY_TUESDAY) || \
bogdanm 86:04dd9b1680ae 374 ((WEEKDAY) == RTC_WEEKDAY_WEDNESDAY) || \
bogdanm 86:04dd9b1680ae 375 ((WEEKDAY) == RTC_WEEKDAY_THURSDAY) || \
bogdanm 86:04dd9b1680ae 376 ((WEEKDAY) == RTC_WEEKDAY_FRIDAY) || \
bogdanm 86:04dd9b1680ae 377 ((WEEKDAY) == RTC_WEEKDAY_SATURDAY) || \
bogdanm 86:04dd9b1680ae 378 ((WEEKDAY) == RTC_WEEKDAY_SUNDAY))
bogdanm 86:04dd9b1680ae 379 /**
bogdanm 86:04dd9b1680ae 380 * @}
bogdanm 86:04dd9b1680ae 381 */
bogdanm 86:04dd9b1680ae 382
bogdanm 86:04dd9b1680ae 383 /** @defgroup RTC_Alarm_Definitions
bogdanm 86:04dd9b1680ae 384 * @{
bogdanm 86:04dd9b1680ae 385 */
bogdanm 86:04dd9b1680ae 386 #define IS_RTC_ALARM_DATE_WEEKDAY_DATE(DATE) (((DATE) >(uint32_t) 0) && ((DATE) <= (uint32_t)31))
bogdanm 86:04dd9b1680ae 387 #define IS_RTC_ALARM_DATE_WEEKDAY_WEEKDAY(WEEKDAY) (((WEEKDAY) == RTC_WEEKDAY_MONDAY) || \
bogdanm 86:04dd9b1680ae 388 ((WEEKDAY) == RTC_WEEKDAY_TUESDAY) || \
bogdanm 86:04dd9b1680ae 389 ((WEEKDAY) == RTC_WEEKDAY_WEDNESDAY) || \
bogdanm 86:04dd9b1680ae 390 ((WEEKDAY) == RTC_WEEKDAY_THURSDAY) || \
bogdanm 86:04dd9b1680ae 391 ((WEEKDAY) == RTC_WEEKDAY_FRIDAY) || \
bogdanm 86:04dd9b1680ae 392 ((WEEKDAY) == RTC_WEEKDAY_SATURDAY) || \
bogdanm 86:04dd9b1680ae 393 ((WEEKDAY) == RTC_WEEKDAY_SUNDAY))
bogdanm 86:04dd9b1680ae 394 /**
bogdanm 86:04dd9b1680ae 395 * @}
bogdanm 86:04dd9b1680ae 396 */
bogdanm 86:04dd9b1680ae 397
bogdanm 86:04dd9b1680ae 398
bogdanm 86:04dd9b1680ae 399 /** @defgroup RTC_AlarmDateWeekDay_Definitions
bogdanm 86:04dd9b1680ae 400 * @{
bogdanm 86:04dd9b1680ae 401 */
bogdanm 86:04dd9b1680ae 402 #define RTC_ALARMDATEWEEKDAYSEL_DATE ((uint32_t)0x00000000)
bogdanm 86:04dd9b1680ae 403 #define RTC_ALARMDATEWEEKDAYSEL_WEEKDAY ((uint32_t)0x40000000)
bogdanm 86:04dd9b1680ae 404
bogdanm 86:04dd9b1680ae 405 #define IS_RTC_ALARM_DATE_WEEKDAY_SEL(SEL) (((SEL) == RTC_ALARMDATEWEEKDAYSEL_DATE) || \
bogdanm 86:04dd9b1680ae 406 ((SEL) == RTC_ALARMDATEWEEKDAYSEL_WEEKDAY))
bogdanm 86:04dd9b1680ae 407 /**
bogdanm 86:04dd9b1680ae 408 * @}
bogdanm 86:04dd9b1680ae 409 */
bogdanm 86:04dd9b1680ae 410
bogdanm 86:04dd9b1680ae 411
bogdanm 86:04dd9b1680ae 412 /** @defgroup RTC_AlarmMask_Definitions
bogdanm 86:04dd9b1680ae 413 * @{
bogdanm 86:04dd9b1680ae 414 */
bogdanm 86:04dd9b1680ae 415 #define RTC_ALARMMASK_NONE ((uint32_t)0x00000000)
bogdanm 86:04dd9b1680ae 416 #define RTC_ALARMMASK_DATEWEEKDAY RTC_ALRMAR_MSK4
bogdanm 86:04dd9b1680ae 417 #define RTC_ALARMMASK_HOURS RTC_ALRMAR_MSK3
bogdanm 86:04dd9b1680ae 418 #define RTC_ALARMMASK_MINUTES RTC_ALRMAR_MSK2
bogdanm 86:04dd9b1680ae 419 #define RTC_ALARMMASK_SECONDS RTC_ALRMAR_MSK1
bogdanm 86:04dd9b1680ae 420 #define RTC_ALARMMASK_ALL ((uint32_t)0x80808080)
bogdanm 86:04dd9b1680ae 421
bogdanm 86:04dd9b1680ae 422 #define IS_ALARM_MASK(MASK) (((MASK) & 0x7F7F7F7F) == (uint32_t)RESET)
bogdanm 86:04dd9b1680ae 423 /**
bogdanm 86:04dd9b1680ae 424 * @}
bogdanm 86:04dd9b1680ae 425 */
bogdanm 86:04dd9b1680ae 426
bogdanm 86:04dd9b1680ae 427 /** @defgroup RTC_Alarms_Definitions
bogdanm 86:04dd9b1680ae 428 * @{
bogdanm 86:04dd9b1680ae 429 */
bogdanm 86:04dd9b1680ae 430 #define RTC_ALARM_A RTC_CR_ALRAE
bogdanm 86:04dd9b1680ae 431 #define RTC_ALARM_B RTC_CR_ALRBE
bogdanm 86:04dd9b1680ae 432
bogdanm 86:04dd9b1680ae 433 #define IS_ALARM(ALARM) (((ALARM) == RTC_ALARM_A) || ((ALARM) == RTC_ALARM_B))
bogdanm 86:04dd9b1680ae 434 /**
bogdanm 86:04dd9b1680ae 435 * @}
bogdanm 86:04dd9b1680ae 436 */
bogdanm 86:04dd9b1680ae 437
bogdanm 86:04dd9b1680ae 438 /** @defgroup RTC_Alarm_Sub_Seconds_Value
bogdanm 86:04dd9b1680ae 439 * @{
bogdanm 86:04dd9b1680ae 440 */
bogdanm 86:04dd9b1680ae 441 #define IS_RTC_ALARM_SUB_SECOND_VALUE(VALUE) ((VALUE) <= (uint32_t)0x00007FFF)
bogdanm 86:04dd9b1680ae 442 /**
bogdanm 86:04dd9b1680ae 443 * @}
bogdanm 86:04dd9b1680ae 444 */
bogdanm 86:04dd9b1680ae 445
bogdanm 86:04dd9b1680ae 446 /** @defgroup RTC_Alarm_Sub_Seconds_Masks_Definitions
bogdanm 86:04dd9b1680ae 447 * @{
bogdanm 86:04dd9b1680ae 448 */
bogdanm 86:04dd9b1680ae 449 #define RTC_ALARMSUBSECONDMASK_ALL ((uint32_t)0x00000000) /*!< All Alarm SS fields are masked.
bogdanm 86:04dd9b1680ae 450 There is no comparison on sub seconds
bogdanm 86:04dd9b1680ae 451 for Alarm */
bogdanm 86:04dd9b1680ae 452 #define RTC_ALARMSUBSECONDMASK_SS14_1 ((uint32_t)0x01000000) /*!< SS[14:1] are don't care in Alarm
bogdanm 86:04dd9b1680ae 453 comparison. Only SS[0] is compared. */
bogdanm 86:04dd9b1680ae 454 #define RTC_ALARMSUBSECONDMASK_SS14_2 ((uint32_t)0x02000000) /*!< SS[14:2] are don't care in Alarm
bogdanm 86:04dd9b1680ae 455 comparison. Only SS[1:0] are compared */
bogdanm 86:04dd9b1680ae 456 #define RTC_ALARMSUBSECONDMASK_SS14_3 ((uint32_t)0x03000000) /*!< SS[14:3] are don't care in Alarm
bogdanm 86:04dd9b1680ae 457 comparison. Only SS[2:0] are compared */
bogdanm 86:04dd9b1680ae 458 #define RTC_ALARMSUBSECONDMASK_SS14_4 ((uint32_t)0x04000000) /*!< SS[14:4] are don't care in Alarm
bogdanm 86:04dd9b1680ae 459 comparison. Only SS[3:0] are compared */
bogdanm 86:04dd9b1680ae 460 #define RTC_ALARMSUBSECONDMASK_SS14_5 ((uint32_t)0x05000000) /*!< SS[14:5] are don't care in Alarm
bogdanm 86:04dd9b1680ae 461 comparison. Only SS[4:0] are compared */
bogdanm 86:04dd9b1680ae 462 #define RTC_ALARMSUBSECONDMASK_SS14_6 ((uint32_t)0x06000000) /*!< SS[14:6] are don't care in Alarm
bogdanm 86:04dd9b1680ae 463 comparison. Only SS[5:0] are compared */
bogdanm 86:04dd9b1680ae 464 #define RTC_ALARMSUBSECONDMASK_SS14_7 ((uint32_t)0x07000000) /*!< SS[14:7] are don't care in Alarm
bogdanm 86:04dd9b1680ae 465 comparison. Only SS[6:0] are compared */
bogdanm 86:04dd9b1680ae 466 #define RTC_ALARMSUBSECONDMASK_SS14_8 ((uint32_t)0x08000000) /*!< SS[14:8] are don't care in Alarm
bogdanm 86:04dd9b1680ae 467 comparison. Only SS[7:0] are compared */
bogdanm 86:04dd9b1680ae 468 #define RTC_ALARMSUBSECONDMASK_SS14_9 ((uint32_t)0x09000000) /*!< SS[14:9] are don't care in Alarm
bogdanm 86:04dd9b1680ae 469 comparison. Only SS[8:0] are compared */
bogdanm 86:04dd9b1680ae 470 #define RTC_ALARMSUBSECONDMASK_SS14_10 ((uint32_t)0x0A000000) /*!< SS[14:10] are don't care in Alarm
bogdanm 86:04dd9b1680ae 471 comparison. Only SS[9:0] are compared */
bogdanm 86:04dd9b1680ae 472 #define RTC_ALARMSUBSECONDMASK_SS14_11 ((uint32_t)0x0B000000) /*!< SS[14:11] are don't care in Alarm
bogdanm 86:04dd9b1680ae 473 comparison. Only SS[10:0] are compared */
bogdanm 86:04dd9b1680ae 474 #define RTC_ALARMSUBSECONDMASK_SS14_12 ((uint32_t)0x0C000000) /*!< SS[14:12] are don't care in Alarm
bogdanm 86:04dd9b1680ae 475 comparison.Only SS[11:0] are compared */
bogdanm 86:04dd9b1680ae 476 #define RTC_ALARMSUBSECONDMASK_SS14_13 ((uint32_t)0x0D000000) /*!< SS[14:13] are don't care in Alarm
bogdanm 86:04dd9b1680ae 477 comparison. Only SS[12:0] are compared */
bogdanm 86:04dd9b1680ae 478 #define RTC_ALARMSUBSECONDMASK_SS14 ((uint32_t)0x0E000000) /*!< SS[14] is don't care in Alarm
bogdanm 86:04dd9b1680ae 479 comparison.Only SS[13:0] are compared */
bogdanm 86:04dd9b1680ae 480 #define RTC_ALARMSUBSECONDMASK_None ((uint32_t)0x0F000000) /*!< SS[14:0] are compared and must match
bogdanm 86:04dd9b1680ae 481 to activate alarm. */
bogdanm 86:04dd9b1680ae 482
bogdanm 86:04dd9b1680ae 483 #define IS_RTC_ALARM_SUB_SECOND_MASK(MASK) (((MASK) == RTC_ALARMSUBSECONDMASK_ALL) || \
bogdanm 86:04dd9b1680ae 484 ((MASK) == RTC_ALARMSUBSECONDMASK_SS14_1) || \
bogdanm 86:04dd9b1680ae 485 ((MASK) == RTC_ALARMSUBSECONDMASK_SS14_2) || \
bogdanm 86:04dd9b1680ae 486 ((MASK) == RTC_ALARMSUBSECONDMASK_SS14_3) || \
bogdanm 86:04dd9b1680ae 487 ((MASK) == RTC_ALARMSUBSECONDMASK_SS14_4) || \
bogdanm 86:04dd9b1680ae 488 ((MASK) == RTC_ALARMSUBSECONDMASK_SS14_5) || \
bogdanm 86:04dd9b1680ae 489 ((MASK) == RTC_ALARMSUBSECONDMASK_SS14_6) || \
bogdanm 86:04dd9b1680ae 490 ((MASK) == RTC_ALARMSUBSECONDMASK_SS14_7) || \
bogdanm 86:04dd9b1680ae 491 ((MASK) == RTC_ALARMSUBSECONDMASK_SS14_8) || \
bogdanm 86:04dd9b1680ae 492 ((MASK) == RTC_ALARMSUBSECONDMASK_SS14_9) || \
bogdanm 86:04dd9b1680ae 493 ((MASK) == RTC_ALARMSUBSECONDMASK_SS14_10) || \
bogdanm 86:04dd9b1680ae 494 ((MASK) == RTC_ALARMSUBSECONDMASK_SS14_11) || \
bogdanm 86:04dd9b1680ae 495 ((MASK) == RTC_ALARMSUBSECONDMASK_SS14_12) || \
bogdanm 86:04dd9b1680ae 496 ((MASK) == RTC_ALARMSUBSECONDMASK_SS14_13) || \
bogdanm 86:04dd9b1680ae 497 ((MASK) == RTC_ALARMSUBSECONDMASK_SS14) || \
bogdanm 86:04dd9b1680ae 498 ((MASK) == RTC_ALARMSUBSECONDMASK_None))
bogdanm 86:04dd9b1680ae 499 /**
bogdanm 86:04dd9b1680ae 500 * @}
bogdanm 86:04dd9b1680ae 501 */
bogdanm 86:04dd9b1680ae 502
bogdanm 86:04dd9b1680ae 503 /** @defgroup RTC_Interrupts_Definitions
bogdanm 86:04dd9b1680ae 504 * @{
bogdanm 86:04dd9b1680ae 505 */
bogdanm 86:04dd9b1680ae 506 #define RTC_IT_TS ((uint32_t)0x00008000)
bogdanm 86:04dd9b1680ae 507 #define RTC_IT_WUT ((uint32_t)0x00004000)
bogdanm 86:04dd9b1680ae 508 #define RTC_IT_ALRB ((uint32_t)0x00002000)
bogdanm 86:04dd9b1680ae 509 #define RTC_IT_ALRA ((uint32_t)0x00001000)
bogdanm 86:04dd9b1680ae 510 #define RTC_IT_TAMP ((uint32_t)0x00000004) /* Used only to Enable the Tamper Interrupt */
bogdanm 86:04dd9b1680ae 511 #define RTC_IT_TAMP1 ((uint32_t)0x00020000)
bogdanm 86:04dd9b1680ae 512 #define RTC_IT_TAMP2 ((uint32_t)0x00040000)
bogdanm 86:04dd9b1680ae 513 /**
bogdanm 86:04dd9b1680ae 514 * @}
bogdanm 86:04dd9b1680ae 515 */
bogdanm 86:04dd9b1680ae 516
bogdanm 86:04dd9b1680ae 517 /** @defgroup RTC_Flags_Definitions
bogdanm 86:04dd9b1680ae 518 * @{
bogdanm 86:04dd9b1680ae 519 */
bogdanm 86:04dd9b1680ae 520 #define RTC_FLAG_RECALPF ((uint32_t)0x00010000)
bogdanm 86:04dd9b1680ae 521 #define RTC_FLAG_TAMP2F ((uint32_t)0x00004000)
bogdanm 86:04dd9b1680ae 522 #define RTC_FLAG_TAMP1F ((uint32_t)0x00002000)
bogdanm 86:04dd9b1680ae 523 #define RTC_FLAG_TSOVF ((uint32_t)0x00001000)
bogdanm 86:04dd9b1680ae 524 #define RTC_FLAG_TSF ((uint32_t)0x00000800)
bogdanm 86:04dd9b1680ae 525 #define RTC_FLAG_WUTF ((uint32_t)0x00000400)
bogdanm 86:04dd9b1680ae 526 #define RTC_FLAG_ALRBF ((uint32_t)0x00000200)
bogdanm 86:04dd9b1680ae 527 #define RTC_FLAG_ALRAF ((uint32_t)0x00000100)
bogdanm 86:04dd9b1680ae 528 #define RTC_FLAG_INITF ((uint32_t)0x00000040)
bogdanm 86:04dd9b1680ae 529 #define RTC_FLAG_RSF ((uint32_t)0x00000020)
bogdanm 86:04dd9b1680ae 530 #define RTC_FLAG_INITS ((uint32_t)0x00000010)
bogdanm 86:04dd9b1680ae 531 #define RTC_FLAG_SHPF ((uint32_t)0x00000008)
bogdanm 86:04dd9b1680ae 532 #define RTC_FLAG_WUTWF ((uint32_t)0x00000004)
bogdanm 86:04dd9b1680ae 533 #define RTC_FLAG_ALRBWF ((uint32_t)0x00000002)
bogdanm 86:04dd9b1680ae 534 #define RTC_FLAG_ALRAWF ((uint32_t)0x00000001)
bogdanm 86:04dd9b1680ae 535 /**
bogdanm 86:04dd9b1680ae 536 * @}
bogdanm 86:04dd9b1680ae 537 */
bogdanm 86:04dd9b1680ae 538
bogdanm 86:04dd9b1680ae 539 /**
bogdanm 86:04dd9b1680ae 540 * @}
bogdanm 86:04dd9b1680ae 541 */
bogdanm 86:04dd9b1680ae 542
bogdanm 86:04dd9b1680ae 543 /* Exported macro ------------------------------------------------------------*/
bogdanm 86:04dd9b1680ae 544
bogdanm 86:04dd9b1680ae 545 /** @brief Reset RTC handle state
bogdanm 86:04dd9b1680ae 546 * @param __HANDLE__: specifies the RTC handle.
bogdanm 86:04dd9b1680ae 547 * @retval None
bogdanm 86:04dd9b1680ae 548 */
bogdanm 86:04dd9b1680ae 549 #define __HAL_RTC_RESET_HANDLE_STATE(__HANDLE__) ((__HANDLE__)->State = HAL_RTC_STATE_RESET)
bogdanm 86:04dd9b1680ae 550
bogdanm 86:04dd9b1680ae 551 /**
bogdanm 86:04dd9b1680ae 552 * @brief Disable the write protection for RTC registers.
bogdanm 86:04dd9b1680ae 553 * @param __HANDLE__: specifies the RTC handle.
bogdanm 86:04dd9b1680ae 554 * @retval None
bogdanm 86:04dd9b1680ae 555 */
bogdanm 86:04dd9b1680ae 556 #define __HAL_RTC_WRITEPROTECTION_DISABLE(__HANDLE__) \
bogdanm 86:04dd9b1680ae 557 do{ \
bogdanm 86:04dd9b1680ae 558 (__HANDLE__)->Instance->WPR = 0xCA; \
bogdanm 86:04dd9b1680ae 559 (__HANDLE__)->Instance->WPR = 0x53; \
bogdanm 86:04dd9b1680ae 560 } while(0)
bogdanm 86:04dd9b1680ae 561
bogdanm 86:04dd9b1680ae 562 /**
bogdanm 86:04dd9b1680ae 563 * @brief Enable the write protection for RTC registers.
bogdanm 86:04dd9b1680ae 564 * @param __HANDLE__: specifies the RTC handle.
bogdanm 86:04dd9b1680ae 565 * @retval None
bogdanm 86:04dd9b1680ae 566 */
bogdanm 86:04dd9b1680ae 567 #define __HAL_RTC_WRITEPROTECTION_ENABLE(__HANDLE__) \
bogdanm 86:04dd9b1680ae 568 do{ \
bogdanm 86:04dd9b1680ae 569 (__HANDLE__)->Instance->WPR = 0xFF; \
bogdanm 86:04dd9b1680ae 570 } while(0)
bogdanm 86:04dd9b1680ae 571
bogdanm 86:04dd9b1680ae 572 /**
bogdanm 86:04dd9b1680ae 573 * @brief Enable the RTC ALARMA peripheral.
bogdanm 86:04dd9b1680ae 574 * @param __HANDLE__: specifies the RTC handle.
bogdanm 86:04dd9b1680ae 575 * @retval None
bogdanm 86:04dd9b1680ae 576 */
bogdanm 86:04dd9b1680ae 577 #define __HAL_RTC_ALARMA_ENABLE(__HANDLE__) ((__HANDLE__)->Instance->CR |= (RTC_CR_ALRAE))
bogdanm 86:04dd9b1680ae 578
bogdanm 86:04dd9b1680ae 579 /**
bogdanm 86:04dd9b1680ae 580 * @brief Disable the RTC ALARMA peripheral.
bogdanm 86:04dd9b1680ae 581 * @param __HANDLE__: specifies the RTC handle.
bogdanm 86:04dd9b1680ae 582 * @retval None
bogdanm 86:04dd9b1680ae 583 */
bogdanm 86:04dd9b1680ae 584 #define __HAL_RTC_ALARMA_DISABLE(__HANDLE__) ((__HANDLE__)->Instance->CR &= ~(RTC_CR_ALRAE))
bogdanm 86:04dd9b1680ae 585
bogdanm 86:04dd9b1680ae 586 /**
bogdanm 86:04dd9b1680ae 587 * @brief Enable the RTC ALARMB peripheral.
bogdanm 86:04dd9b1680ae 588 * @param __HANDLE__: specifies the RTC handle.
bogdanm 86:04dd9b1680ae 589 * @retval None
bogdanm 86:04dd9b1680ae 590 */
bogdanm 86:04dd9b1680ae 591 #define __HAL_RTC_ALARMB_ENABLE(__HANDLE__) ((__HANDLE__)->Instance->CR |= (RTC_CR_ALRBE))
bogdanm 86:04dd9b1680ae 592
bogdanm 86:04dd9b1680ae 593 /**
bogdanm 86:04dd9b1680ae 594 * @brief Disable the RTC ALARMB peripheral.
bogdanm 86:04dd9b1680ae 595 * @param __HANDLE__: specifies the RTC handle.
bogdanm 86:04dd9b1680ae 596 * @retval None
bogdanm 86:04dd9b1680ae 597 */
bogdanm 86:04dd9b1680ae 598 #define __HAL_RTC_ALARMB_DISABLE(__HANDLE__) ((__HANDLE__)->Instance->CR &= ~(RTC_CR_ALRBE))
bogdanm 86:04dd9b1680ae 599
bogdanm 86:04dd9b1680ae 600 /**
bogdanm 86:04dd9b1680ae 601 * @brief Enable the RTC Alarm interrupt.
bogdanm 86:04dd9b1680ae 602 * @param __HANDLE__: specifies the RTC handle.
bogdanm 86:04dd9b1680ae 603 * @param __INTERRUPT__: specifies the RTC Alarm interrupt sources to be enabled or disabled.
bogdanm 86:04dd9b1680ae 604 * This parameter can be any combination of the following values:
bogdanm 86:04dd9b1680ae 605 * @arg RTC_IT_ALRA: Alarm A interrupt
bogdanm 86:04dd9b1680ae 606 * @arg RTC_IT_ALRB: Alarm B interrupt
bogdanm 86:04dd9b1680ae 607 * @retval None
bogdanm 86:04dd9b1680ae 608 */
bogdanm 86:04dd9b1680ae 609 #define __HAL_RTC_ALARM_ENABLE_IT(__HANDLE__, __INTERRUPT__) ((__HANDLE__)->Instance->CR |= (__INTERRUPT__))
bogdanm 86:04dd9b1680ae 610
bogdanm 86:04dd9b1680ae 611 /**
bogdanm 86:04dd9b1680ae 612 * @brief Disable the RTC Alarm interrupt.
bogdanm 86:04dd9b1680ae 613 * @param __HANDLE__: specifies the RTC handle.
bogdanm 86:04dd9b1680ae 614 * @param __INTERRUPT__: specifies the RTC Alarm interrupt sources to be enabled or disabled.
bogdanm 86:04dd9b1680ae 615 * This parameter can be any combination of the following values:
bogdanm 86:04dd9b1680ae 616 * @arg RTC_IT_ALRA: Alarm A interrupt
bogdanm 86:04dd9b1680ae 617 * @arg RTC_IT_ALRB: Alarm B interrupt
bogdanm 86:04dd9b1680ae 618 * @retval None
bogdanm 86:04dd9b1680ae 619 */
bogdanm 86:04dd9b1680ae 620 #define __HAL_RTC_ALARM_DISABLE_IT(__HANDLE__, __INTERRUPT__) ((__HANDLE__)->Instance->CR &= ~(__INTERRUPT__))
bogdanm 86:04dd9b1680ae 621
bogdanm 86:04dd9b1680ae 622 /**
bogdanm 86:04dd9b1680ae 623 * @brief Check whether the specified RTC Alarm interrupt has occurred or not.
bogdanm 86:04dd9b1680ae 624 * @param __HANDLE__: specifies the RTC handle.
bogdanm 86:04dd9b1680ae 625 * @param __FLAG__: specifies the RTC Alarm interrupt sources to be enabled or disabled.
bogdanm 86:04dd9b1680ae 626 * This parameter can be:
bogdanm 86:04dd9b1680ae 627 * @arg RTC_IT_ALRA: Alarm A interrupt
bogdanm 86:04dd9b1680ae 628 * @arg RTC_IT_ALRB: Alarm B interrupt
bogdanm 86:04dd9b1680ae 629 * @retval None
bogdanm 86:04dd9b1680ae 630 */
bogdanm 86:04dd9b1680ae 631 #define __HAL_RTC_ALARM_GET_IT(__HANDLE__, __FLAG__) ((((((__HANDLE__)->Instance->ISR)& ((__FLAG__)>> 4)) & 0x0000FFFF) != RESET)? SET : RESET)
bogdanm 86:04dd9b1680ae 632
bogdanm 86:04dd9b1680ae 633 /**
bogdanm 86:04dd9b1680ae 634 * @brief Get the selected RTC Alarm's flag status.
bogdanm 86:04dd9b1680ae 635 * @param __HANDLE__: specifies the RTC handle.
bogdanm 86:04dd9b1680ae 636 * @param __FLAG__: specifies the RTC Alarm Flag sources to be enabled or disabled.
bogdanm 86:04dd9b1680ae 637 * This parameter can be:
bogdanm 86:04dd9b1680ae 638 * @arg RTC_FLAG_ALRAF
bogdanm 86:04dd9b1680ae 639 * @arg RTC_FLAG_ALRBF
bogdanm 86:04dd9b1680ae 640 * @arg RTC_FLAG_ALRAWF
bogdanm 86:04dd9b1680ae 641 * @arg RTC_FLAG_ALRBWF
bogdanm 86:04dd9b1680ae 642 * @retval None
bogdanm 86:04dd9b1680ae 643 */
bogdanm 86:04dd9b1680ae 644 #define __HAL_RTC_ALARM_GET_FLAG(__HANDLE__, __FLAG__) (((((__HANDLE__)->Instance->ISR) & (__FLAG__)) != RESET)? SET : RESET)
bogdanm 86:04dd9b1680ae 645
bogdanm 86:04dd9b1680ae 646 /**
bogdanm 86:04dd9b1680ae 647 * @brief Clear the RTC Alarm's pending flags.
bogdanm 86:04dd9b1680ae 648 * @param __HANDLE__: specifies the RTC handle.
bogdanm 86:04dd9b1680ae 649 * @param __FLAG__: specifies the RTC Alarm Flag sources to be enabled or disabled.
bogdanm 86:04dd9b1680ae 650 * This parameter can be:
bogdanm 86:04dd9b1680ae 651 * @arg RTC_FLAG_ALRAF
bogdanm 86:04dd9b1680ae 652 * @arg RTC_FLAG_ALRBF
bogdanm 86:04dd9b1680ae 653 * @retval None
bogdanm 86:04dd9b1680ae 654 */
bogdanm 86:04dd9b1680ae 655 #define __HAL_RTC_ALARM_CLEAR_FLAG(__HANDLE__, __FLAG__) ((__HANDLE__)->Instance->ISR) = (~(((__FLAG__) | RTC_ISR_INIT)& 0x0000FFFF)|((__HANDLE__)->Instance->ISR & RTC_ISR_INIT))
bogdanm 86:04dd9b1680ae 656
bogdanm 86:04dd9b1680ae 657
bogdanm 86:04dd9b1680ae 658 #define RTC_EXTI_LINE_ALARM_EVENT ((uint32_t)0x00020000) /*!< External interrupt line 17 Connected to the RTC Alarm event */
bogdanm 86:04dd9b1680ae 659 #define RTC_EXTI_LINE_TAMPER_TIMESTAMP_EVENT ((uint32_t)0x00200000) /*!< External interrupt line 21 Connected to the RTC Tamper and Time Stamp events */
bogdanm 86:04dd9b1680ae 660 #define RTC_EXTI_LINE_WAKEUPTIMER_EVENT ((uint32_t)0x00400000) /*!< External interrupt line 22 Connected to the RTC Wakeup event */
bogdanm 86:04dd9b1680ae 661
bogdanm 86:04dd9b1680ae 662 /**
bogdanm 86:04dd9b1680ae 663 * @brief Enable the RTC Exti line.
bogdanm 86:04dd9b1680ae 664 * @param __EXTILINE__: specifies the RTC Exti sources to be enabled or disabled.
bogdanm 86:04dd9b1680ae 665 * This parameter can be:
bogdanm 86:04dd9b1680ae 666 * @arg RTC_EXTI_LINE_ALARM_EVENT
bogdanm 86:04dd9b1680ae 667 * @arg RTC_EXTI_LINE_TAMPER_TIMESTAMP_EVENT
bogdanm 86:04dd9b1680ae 668 * @arg RTC_EXTI_LINE_WAKEUPTIMER_EVENT
bogdanm 86:04dd9b1680ae 669 * @retval None
bogdanm 86:04dd9b1680ae 670 */
bogdanm 86:04dd9b1680ae 671 #define __HAL_RTC_EXTI_ENABLE_IT(__EXTILINE__) (EXTI->IMR |= (__EXTILINE__))
bogdanm 86:04dd9b1680ae 672
bogdanm 86:04dd9b1680ae 673 /* alias define maintained for legacy */
bogdanm 86:04dd9b1680ae 674 #define __HAL_RTC_ENABLE_IT __HAL_RTC_EXTI_ENABLE_IT
bogdanm 86:04dd9b1680ae 675
bogdanm 86:04dd9b1680ae 676 /**
bogdanm 86:04dd9b1680ae 677 * @brief Disable the RTC Exti line.
bogdanm 86:04dd9b1680ae 678 * @param __EXTILINE__: specifies the RTC Exti sources to be enabled or disabled.
bogdanm 86:04dd9b1680ae 679 * This parameter can be:
bogdanm 86:04dd9b1680ae 680 * @arg RTC_EXTI_LINE_ALARM_EVENT
bogdanm 86:04dd9b1680ae 681 * @arg RTC_EXTI_LINE_TAMPER_TIMESTAMP_EVENT
bogdanm 86:04dd9b1680ae 682 * @arg RTC_EXTI_LINE_WAKEUPTIMER_EVENT
bogdanm 86:04dd9b1680ae 683 * @retval None
bogdanm 86:04dd9b1680ae 684 */
bogdanm 86:04dd9b1680ae 685 #define __HAL_RTC_EXTI_DISABLE_IT(__EXTILINE__) (EXTI->IMR &= ~(__EXTILINE__))
bogdanm 86:04dd9b1680ae 686
bogdanm 86:04dd9b1680ae 687 /* alias define maintained for legacy */
bogdanm 86:04dd9b1680ae 688 #define __HAL_RTC_DISABLE_IT __HAL_RTC_EXTI_DISABLE_IT
bogdanm 86:04dd9b1680ae 689
bogdanm 86:04dd9b1680ae 690 /**
bogdanm 86:04dd9b1680ae 691 * @brief Generates a Software interrupt on selected EXTI line.
bogdanm 86:04dd9b1680ae 692 * @param __EXTILINE__: specifies the RTC Exti sources to be enabled or disabled.
bogdanm 86:04dd9b1680ae 693 * This parameter can be:
bogdanm 86:04dd9b1680ae 694 * @arg RTC_EXTI_LINE_ALARM_EVENT
bogdanm 86:04dd9b1680ae 695 * @arg RTC_EXTI_LINE_TAMPER_TIMESTAMP_EVENT
bogdanm 86:04dd9b1680ae 696 * @arg RTC_EXTI_LINE_WAKEUPTIMER_EVENT
bogdanm 86:04dd9b1680ae 697 * @retval None
bogdanm 86:04dd9b1680ae 698 */
bogdanm 86:04dd9b1680ae 699 #define __HAL_RTC_EXTI_GENERATE_SWIT(__EXTI_LINE__) (EXTI->SWIER |= (__EXTI_LINE__))
bogdanm 86:04dd9b1680ae 700
bogdanm 86:04dd9b1680ae 701 /**
bogdanm 86:04dd9b1680ae 702 * @brief Clear the RTC Exti flags.
bogdanm 86:04dd9b1680ae 703 * @param __FLAG__: specifies the RTC Exti sources to be enabled or disabled.
bogdanm 86:04dd9b1680ae 704 * This parameter can be:
bogdanm 86:04dd9b1680ae 705 * @arg RTC_EXTI_LINE_ALARM_EVENT
bogdanm 86:04dd9b1680ae 706 * @arg RTC_EXTI_LINE_TAMPER_TIMESTAMP_EVENT
bogdanm 86:04dd9b1680ae 707 * @arg RTC_EXTI_LINE_WAKEUPTIMER_EVENT
bogdanm 86:04dd9b1680ae 708 * @retval None
bogdanm 86:04dd9b1680ae 709 */
bogdanm 86:04dd9b1680ae 710 #define __HAL_RTC_EXTI_CLEAR_FLAG(__FLAG__) (EXTI->PR = (__FLAG__))
bogdanm 86:04dd9b1680ae 711
bogdanm 86:04dd9b1680ae 712 /* alias define maintained for legacy */
bogdanm 86:04dd9b1680ae 713 #define __HAL_RTC_CLEAR_FLAG __HAL_RTC_EXTI_CLEAR_FLAG
bogdanm 86:04dd9b1680ae 714
bogdanm 86:04dd9b1680ae 715
bogdanm 86:04dd9b1680ae 716 /* Include RTC HAL Extension module */
bogdanm 86:04dd9b1680ae 717 #include "stm32f4xx_hal_rtc_ex.h"
bogdanm 86:04dd9b1680ae 718
bogdanm 86:04dd9b1680ae 719 /* Exported functions --------------------------------------------------------*/
bogdanm 86:04dd9b1680ae 720
bogdanm 86:04dd9b1680ae 721 /* Initialization and de-initialization functions ****************************/
bogdanm 86:04dd9b1680ae 722 HAL_StatusTypeDef HAL_RTC_Init(RTC_HandleTypeDef *hrtc);
bogdanm 86:04dd9b1680ae 723 HAL_StatusTypeDef HAL_RTC_DeInit(RTC_HandleTypeDef *hrtc);
bogdanm 86:04dd9b1680ae 724 void HAL_RTC_MspInit(RTC_HandleTypeDef *hrtc);
bogdanm 86:04dd9b1680ae 725 void HAL_RTC_MspDeInit(RTC_HandleTypeDef *hrtc);
bogdanm 86:04dd9b1680ae 726
bogdanm 86:04dd9b1680ae 727 /* RTC Time and Date functions ************************************************/
bogdanm 86:04dd9b1680ae 728 HAL_StatusTypeDef HAL_RTC_SetTime(RTC_HandleTypeDef *hrtc, RTC_TimeTypeDef *sTime, uint32_t Format);
bogdanm 86:04dd9b1680ae 729 HAL_StatusTypeDef HAL_RTC_GetTime(RTC_HandleTypeDef *hrtc, RTC_TimeTypeDef *sTime, uint32_t Format);
bogdanm 86:04dd9b1680ae 730 HAL_StatusTypeDef HAL_RTC_SetDate(RTC_HandleTypeDef *hrtc, RTC_DateTypeDef *sDate, uint32_t Format);
bogdanm 86:04dd9b1680ae 731 HAL_StatusTypeDef HAL_RTC_GetDate(RTC_HandleTypeDef *hrtc, RTC_DateTypeDef *sDate, uint32_t Format);
bogdanm 86:04dd9b1680ae 732
bogdanm 86:04dd9b1680ae 733 /* RTC Alarm functions ********************************************************/
bogdanm 86:04dd9b1680ae 734 HAL_StatusTypeDef HAL_RTC_SetAlarm(RTC_HandleTypeDef *hrtc, RTC_AlarmTypeDef *sAlarm, uint32_t Format);
bogdanm 86:04dd9b1680ae 735 HAL_StatusTypeDef HAL_RTC_SetAlarm_IT(RTC_HandleTypeDef *hrtc, RTC_AlarmTypeDef *sAlarm, uint32_t Format);
bogdanm 86:04dd9b1680ae 736 HAL_StatusTypeDef HAL_RTC_DeactivateAlarm(RTC_HandleTypeDef *hrtc, uint32_t Alarm);
bogdanm 86:04dd9b1680ae 737 HAL_StatusTypeDef HAL_RTC_GetAlarm(RTC_HandleTypeDef *hrtc, RTC_AlarmTypeDef *sAlarm, uint32_t Alarm, uint32_t Format);
bogdanm 86:04dd9b1680ae 738 void HAL_RTC_AlarmIRQHandler(RTC_HandleTypeDef *hrtc);
bogdanm 86:04dd9b1680ae 739 HAL_StatusTypeDef HAL_RTC_PollForAlarmAEvent(RTC_HandleTypeDef *hrtc, uint32_t Timeout);
bogdanm 86:04dd9b1680ae 740 void HAL_RTC_AlarmAEventCallback(RTC_HandleTypeDef *hrtc);
bogdanm 86:04dd9b1680ae 741
bogdanm 86:04dd9b1680ae 742 /* Peripheral Control functions ***********************************************/
bogdanm 86:04dd9b1680ae 743 HAL_StatusTypeDef HAL_RTC_WaitForSynchro(RTC_HandleTypeDef* hrtc);
bogdanm 86:04dd9b1680ae 744
bogdanm 86:04dd9b1680ae 745 /* Peripheral State functions *************************************************/
bogdanm 86:04dd9b1680ae 746 HAL_RTCStateTypeDef HAL_RTC_GetState(RTC_HandleTypeDef *hrtc);
bogdanm 86:04dd9b1680ae 747
bogdanm 86:04dd9b1680ae 748 HAL_StatusTypeDef RTC_EnterInitMode(RTC_HandleTypeDef* hrtc);
bogdanm 86:04dd9b1680ae 749 uint8_t RTC_ByteToBcd2(uint8_t Value);
bogdanm 86:04dd9b1680ae 750 uint8_t RTC_Bcd2ToByte(uint8_t Value);
bogdanm 86:04dd9b1680ae 751
bogdanm 86:04dd9b1680ae 752 /**
bogdanm 86:04dd9b1680ae 753 * @}
bogdanm 86:04dd9b1680ae 754 */
bogdanm 86:04dd9b1680ae 755
bogdanm 86:04dd9b1680ae 756 /**
bogdanm 86:04dd9b1680ae 757 * @}
bogdanm 86:04dd9b1680ae 758 */
bogdanm 86:04dd9b1680ae 759
bogdanm 86:04dd9b1680ae 760 #ifdef __cplusplus
bogdanm 86:04dd9b1680ae 761 }
bogdanm 86:04dd9b1680ae 762 #endif
bogdanm 86:04dd9b1680ae 763
bogdanm 86:04dd9b1680ae 764 #endif /* __STM32F4xx_HAL_RTC_H */
bogdanm 86:04dd9b1680ae 765
bogdanm 86:04dd9b1680ae 766 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/