Fork of the official mbed C/C SDK provides the software platform and libraries to build your applications for RenBED.

Dependents:   1-RenBuggyTimed RenBED_RGB RenBED_RGB_PWM RenBED_RGB

Fork of mbed by mbed official

Committer:
elijahorr
Date:
Thu Apr 14 07:28:54 2016 +0000
Revision:
121:672067c3ada4
Parent:
112:6f327212ef96
.

Who changed what in which revision?

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