mbed library sources. Supersedes mbed-src.

Dependents:   Nucleo_Hello_Encoder BLE_iBeaconScan AM1805_DEMO DISCO-F429ZI_ExportTemplate1 ... more

Committer:
<>
Date:
Fri Oct 28 11:17:30 2016 +0100
Revision:
149:156823d33999
Child:
184:08ed48f1de7f
This updates the lib to the mbed lib v128

NOTE: This release includes a restructuring of the file and directory locations and thus some
include paths in your code may need updating accordingly.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
<> 149:156823d33999 1 /**
<> 149:156823d33999 2 ******************************************************************************
<> 149:156823d33999 3 * @file stm32l1xx_hal_rtc.h
<> 149:156823d33999 4 * @author MCD Application Team
<> 149:156823d33999 5 * @version V1.2.0
<> 149:156823d33999 6 * @date 01-July-2016
<> 149:156823d33999 7 * @brief Header file of RTC HAL module.
<> 149:156823d33999 8 ******************************************************************************
<> 149:156823d33999 9 * @attention
<> 149:156823d33999 10 *
<> 149:156823d33999 11 * <h2><center>&copy; COPYRIGHT(c) 2016 STMicroelectronics</center></h2>
<> 149:156823d33999 12 *
<> 149:156823d33999 13 * Redistribution and use in source and binary forms, with or without modification,
<> 149:156823d33999 14 * are permitted provided that the following conditions are met:
<> 149:156823d33999 15 * 1. Redistributions of source code must retain the above copyright notice,
<> 149:156823d33999 16 * this list of conditions and the following disclaimer.
<> 149:156823d33999 17 * 2. Redistributions in binary form must reproduce the above copyright notice,
<> 149:156823d33999 18 * this list of conditions and the following disclaimer in the documentation
<> 149:156823d33999 19 * and/or other materials provided with the distribution.
<> 149:156823d33999 20 * 3. Neither the name of STMicroelectronics nor the names of its contributors
<> 149:156823d33999 21 * may be used to endorse or promote products derived from this software
<> 149:156823d33999 22 * without specific prior written permission.
<> 149:156823d33999 23 *
<> 149:156823d33999 24 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
<> 149:156823d33999 25 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
<> 149:156823d33999 26 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
<> 149:156823d33999 27 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
<> 149:156823d33999 28 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
<> 149:156823d33999 29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
<> 149:156823d33999 30 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
<> 149:156823d33999 31 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
<> 149:156823d33999 32 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
<> 149:156823d33999 33 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
<> 149:156823d33999 34 *
<> 149:156823d33999 35 ******************************************************************************
<> 149:156823d33999 36 */
<> 149:156823d33999 37
<> 149:156823d33999 38 /* Define to prevent recursive inclusion -------------------------------------*/
<> 149:156823d33999 39 #ifndef __STM32L1xx_HAL_RTC_H
<> 149:156823d33999 40 #define __STM32L1xx_HAL_RTC_H
<> 149:156823d33999 41
<> 149:156823d33999 42 #ifdef __cplusplus
<> 149:156823d33999 43 extern "C" {
<> 149:156823d33999 44 #endif
<> 149:156823d33999 45
<> 149:156823d33999 46 /* Includes ------------------------------------------------------------------*/
<> 149:156823d33999 47 #include "stm32l1xx_hal_def.h"
<> 149:156823d33999 48
<> 149:156823d33999 49 /** @addtogroup STM32L1xx_HAL_Driver
<> 149:156823d33999 50 * @{
<> 149:156823d33999 51 */
<> 149:156823d33999 52
<> 149:156823d33999 53 /** @addtogroup RTC
<> 149:156823d33999 54 * @{
<> 149:156823d33999 55 */
<> 149:156823d33999 56
<> 149:156823d33999 57 /* Exported types ------------------------------------------------------------*/
<> 149:156823d33999 58 /** @defgroup RTC_Exported_Types RTC Exported Types
<> 149:156823d33999 59 * @{
<> 149:156823d33999 60 */
<> 149:156823d33999 61
<> 149:156823d33999 62 /**
<> 149:156823d33999 63 * @brief HAL State structures definition
<> 149:156823d33999 64 */
<> 149:156823d33999 65 typedef enum
<> 149:156823d33999 66 {
<> 149:156823d33999 67 HAL_RTC_STATE_RESET = 0x00, /*!< RTC not yet initialized or disabled */
<> 149:156823d33999 68 HAL_RTC_STATE_READY = 0x01, /*!< RTC initialized and ready for use */
<> 149:156823d33999 69 HAL_RTC_STATE_BUSY = 0x02, /*!< RTC process is ongoing */
<> 149:156823d33999 70 HAL_RTC_STATE_TIMEOUT = 0x03, /*!< RTC timeout state */
<> 149:156823d33999 71 HAL_RTC_STATE_ERROR = 0x04 /*!< RTC error state */
<> 149:156823d33999 72
<> 149:156823d33999 73 }HAL_RTCStateTypeDef;
<> 149:156823d33999 74
<> 149:156823d33999 75 /**
<> 149:156823d33999 76 * @brief RTC Configuration Structure definition
<> 149:156823d33999 77 */
<> 149:156823d33999 78 typedef struct
<> 149:156823d33999 79 {
<> 149:156823d33999 80 uint32_t HourFormat; /*!< Specifies the RTC Hour Format.
<> 149:156823d33999 81 This parameter can be a value of @ref RTC_Hour_Formats */
<> 149:156823d33999 82
<> 149:156823d33999 83 uint32_t AsynchPrediv; /*!< Specifies the RTC Asynchronous Predivider value.
<> 149:156823d33999 84 This parameter must be a number between Min_Data = 0x00 and Max_Data = 0x7F */
<> 149:156823d33999 85
<> 149:156823d33999 86 uint32_t SynchPrediv; /*!< Specifies the RTC Synchronous Predivider value.
<> 149:156823d33999 87 This parameter must be a number between Min_Data = 0x00 and Max_Data = 0x7FFF */
<> 149:156823d33999 88
<> 149:156823d33999 89 uint32_t OutPut; /*!< Specifies which signal will be routed to the RTC output.
<> 149:156823d33999 90 This parameter can be a value of @ref RTCEx_Output_selection_Definitions */
<> 149:156823d33999 91
<> 149:156823d33999 92 uint32_t OutPutPolarity; /*!< Specifies the polarity of the output signal.
<> 149:156823d33999 93 This parameter can be a value of @ref RTC_Output_Polarity_Definitions */
<> 149:156823d33999 94
<> 149:156823d33999 95 uint32_t OutPutType; /*!< Specifies the RTC Output Pin mode.
<> 149:156823d33999 96 This parameter can be a value of @ref RTC_Output_Type_ALARM_OUT */
<> 149:156823d33999 97 }RTC_InitTypeDef;
<> 149:156823d33999 98
<> 149:156823d33999 99 /**
<> 149:156823d33999 100 * @brief RTC Date structure definition
<> 149:156823d33999 101 */
<> 149:156823d33999 102 typedef struct
<> 149:156823d33999 103 {
<> 149:156823d33999 104 uint8_t WeekDay; /*!< Specifies the RTC Date WeekDay.
<> 149:156823d33999 105 This parameter can be a value of @ref RTC_WeekDay_Definitions */
<> 149:156823d33999 106
<> 149:156823d33999 107 uint8_t Month; /*!< Specifies the RTC Date Month (in BCD format).
<> 149:156823d33999 108 This parameter can be a value of @ref RTC_Month_Date_Definitions */
<> 149:156823d33999 109
<> 149:156823d33999 110 uint8_t Date; /*!< Specifies the RTC Date.
<> 149:156823d33999 111 This parameter must be a number between Min_Data = 1 and Max_Data = 31 */
<> 149:156823d33999 112
<> 149:156823d33999 113 uint8_t Year; /*!< Specifies the RTC Date Year.
<> 149:156823d33999 114 This parameter must be a number between Min_Data = 0 and Max_Data = 99 */
<> 149:156823d33999 115
<> 149:156823d33999 116 }RTC_DateTypeDef;
<> 149:156823d33999 117
<> 149:156823d33999 118 /**
<> 149:156823d33999 119 * @brief Time Handle Structure definition
<> 149:156823d33999 120 */
<> 149:156823d33999 121 typedef struct
<> 149:156823d33999 122 {
<> 149:156823d33999 123 RTC_TypeDef *Instance; /*!< Register base address */
<> 149:156823d33999 124
<> 149:156823d33999 125 RTC_InitTypeDef Init; /*!< RTC required parameters */
<> 149:156823d33999 126
<> 149:156823d33999 127 HAL_LockTypeDef Lock; /*!< RTC locking object */
<> 149:156823d33999 128
<> 149:156823d33999 129 __IO HAL_RTCStateTypeDef State; /*!< Time communication state */
<> 149:156823d33999 130
<> 149:156823d33999 131 }RTC_HandleTypeDef;
<> 149:156823d33999 132
<> 149:156823d33999 133 /**
<> 149:156823d33999 134 * @}
<> 149:156823d33999 135 */
<> 149:156823d33999 136
<> 149:156823d33999 137 /* Exported constants --------------------------------------------------------*/
<> 149:156823d33999 138 /** @defgroup RTC_Exported_Constants RTC Exported Constants
<> 149:156823d33999 139 * @{
<> 149:156823d33999 140 */
<> 149:156823d33999 141
<> 149:156823d33999 142 /** @defgroup RTC_Timeout_Value Default Timeout Value
<> 149:156823d33999 143 * @{
<> 149:156823d33999 144 */
<> 149:156823d33999 145 #define RTC_TIMEOUT_VALUE 1000
<> 149:156823d33999 146 /**
<> 149:156823d33999 147 * @}
<> 149:156823d33999 148 */
<> 149:156823d33999 149
<> 149:156823d33999 150 /** @defgroup RTC_Hour_Formats Hour Formats
<> 149:156823d33999 151 * @{
<> 149:156823d33999 152 */
<> 149:156823d33999 153 #define RTC_HOURFORMAT_24 (0x00000000U)
<> 149:156823d33999 154 #define RTC_HOURFORMAT_12 (0x00000040U)
<> 149:156823d33999 155
<> 149:156823d33999 156 #define IS_RTC_HOUR_FORMAT(FORMAT) (((FORMAT) == RTC_HOURFORMAT_12) || \
<> 149:156823d33999 157 ((FORMAT) == RTC_HOURFORMAT_24))
<> 149:156823d33999 158 /**
<> 149:156823d33999 159 * @}
<> 149:156823d33999 160 */
<> 149:156823d33999 161
<> 149:156823d33999 162 /** @defgroup RTC_Output_Polarity_Definitions Outpout Polarity
<> 149:156823d33999 163 * @{
<> 149:156823d33999 164 */
<> 149:156823d33999 165 #define RTC_OUTPUT_POLARITY_HIGH (0x00000000U)
<> 149:156823d33999 166 #define RTC_OUTPUT_POLARITY_LOW (0x00100000U)
<> 149:156823d33999 167
<> 149:156823d33999 168 #define IS_RTC_OUTPUT_POL(POL) (((POL) == RTC_OUTPUT_POLARITY_HIGH) || \
<> 149:156823d33999 169 ((POL) == RTC_OUTPUT_POLARITY_LOW))
<> 149:156823d33999 170 /**
<> 149:156823d33999 171 * @}
<> 149:156823d33999 172 */
<> 149:156823d33999 173
<> 149:156823d33999 174 /** @defgroup RTC_Output_Type_ALARM_OUT Alarm Output Type
<> 149:156823d33999 175 * @{
<> 149:156823d33999 176 */
<> 149:156823d33999 177 #define RTC_OUTPUT_TYPE_OPENDRAIN (0x00000000U)
<> 149:156823d33999 178 #define RTC_OUTPUT_TYPE_PUSHPULL (0x00040000U)
<> 149:156823d33999 179
<> 149:156823d33999 180 #define IS_RTC_OUTPUT_TYPE(TYPE) (((TYPE) == RTC_OUTPUT_TYPE_OPENDRAIN) || \
<> 149:156823d33999 181 ((TYPE) == RTC_OUTPUT_TYPE_PUSHPULL))
<> 149:156823d33999 182
<> 149:156823d33999 183 /**
<> 149:156823d33999 184 * @}
<> 149:156823d33999 185 */
<> 149:156823d33999 186
<> 149:156823d33999 187 /** @defgroup RTC_Asynchronous_Predivider Asynchronous Predivider
<> 149:156823d33999 188 * @{
<> 149:156823d33999 189 */
<> 149:156823d33999 190 #define IS_RTC_ASYNCH_PREDIV(PREDIV) ((PREDIV) <= (uint32_t)0x7F)
<> 149:156823d33999 191 /**
<> 149:156823d33999 192 * @}
<> 149:156823d33999 193 */
<> 149:156823d33999 194
<> 149:156823d33999 195 /** @defgroup RTC_Time_Definitions Time Definitions
<> 149:156823d33999 196 * @{
<> 149:156823d33999 197 */
<> 149:156823d33999 198 #define IS_RTC_HOUR12(HOUR) (((HOUR) > (uint32_t)0) && ((HOUR) <= (uint32_t)12))
<> 149:156823d33999 199 #define IS_RTC_HOUR24(HOUR) ((HOUR) <= (uint32_t)23)
<> 149:156823d33999 200 #define IS_RTC_MINUTES(MINUTES) ((MINUTES) <= (uint32_t)59)
<> 149:156823d33999 201 #define IS_RTC_SECONDS(SECONDS) ((SECONDS) <= (uint32_t)59)
<> 149:156823d33999 202 /**
<> 149:156823d33999 203 * @}
<> 149:156823d33999 204 */
<> 149:156823d33999 205
<> 149:156823d33999 206 /** @defgroup RTC_AM_PM_Definitions AM PM Definitions
<> 149:156823d33999 207 * @{
<> 149:156823d33999 208 */
<> 149:156823d33999 209 #define RTC_HOURFORMAT12_AM ((uint8_t)0x00)
<> 149:156823d33999 210 #define RTC_HOURFORMAT12_PM ((uint8_t)0x40)
<> 149:156823d33999 211
<> 149:156823d33999 212 #define IS_RTC_HOURFORMAT12(PM) (((PM) == RTC_HOURFORMAT12_AM) || ((PM) == RTC_HOURFORMAT12_PM))
<> 149:156823d33999 213 /**
<> 149:156823d33999 214 * @}
<> 149:156823d33999 215 */
<> 149:156823d33999 216
<> 149:156823d33999 217 /** @defgroup RTC_DayLightSaving_Definitions DayLightSaving
<> 149:156823d33999 218 * @{
<> 149:156823d33999 219 */
<> 149:156823d33999 220 #define RTC_DAYLIGHTSAVING_SUB1H (0x00020000U)
<> 149:156823d33999 221 #define RTC_DAYLIGHTSAVING_ADD1H (0x00010000U)
<> 149:156823d33999 222 #define RTC_DAYLIGHTSAVING_NONE (0x00000000U)
<> 149:156823d33999 223
<> 149:156823d33999 224 #define IS_RTC_DAYLIGHT_SAVING(SAVE) (((SAVE) == RTC_DAYLIGHTSAVING_SUB1H) || \
<> 149:156823d33999 225 ((SAVE) == RTC_DAYLIGHTSAVING_ADD1H) || \
<> 149:156823d33999 226 ((SAVE) == RTC_DAYLIGHTSAVING_NONE))
<> 149:156823d33999 227 /**
<> 149:156823d33999 228 * @}
<> 149:156823d33999 229 */
<> 149:156823d33999 230
<> 149:156823d33999 231 /** @defgroup RTC_StoreOperation_Definitions StoreOperation
<> 149:156823d33999 232 * @{
<> 149:156823d33999 233 */
<> 149:156823d33999 234 #define RTC_STOREOPERATION_RESET (0x00000000U)
<> 149:156823d33999 235 #define RTC_STOREOPERATION_SET (0x00040000U)
<> 149:156823d33999 236
<> 149:156823d33999 237 #define IS_RTC_STORE_OPERATION(OPERATION) (((OPERATION) == RTC_STOREOPERATION_RESET) || \
<> 149:156823d33999 238 ((OPERATION) == RTC_STOREOPERATION_SET))
<> 149:156823d33999 239 /**
<> 149:156823d33999 240 * @}
<> 149:156823d33999 241 */
<> 149:156823d33999 242
<> 149:156823d33999 243 /** @defgroup RTC_Input_parameter_format_definitions Input Parameter Format
<> 149:156823d33999 244 * @{
<> 149:156823d33999 245 */
<> 149:156823d33999 246 #define RTC_FORMAT_BIN (0x000000000U)
<> 149:156823d33999 247 #define RTC_FORMAT_BCD (0x000000001U)
<> 149:156823d33999 248
<> 149:156823d33999 249 #define IS_RTC_FORMAT(FORMAT) (((FORMAT) == RTC_FORMAT_BIN) || ((FORMAT) == RTC_FORMAT_BCD))
<> 149:156823d33999 250 /**
<> 149:156823d33999 251 * @}
<> 149:156823d33999 252 */
<> 149:156823d33999 253
<> 149:156823d33999 254 /** @defgroup RTC_Year_Date_Definitions Year Definitions
<> 149:156823d33999 255 * @{
<> 149:156823d33999 256 */
<> 149:156823d33999 257 #define IS_RTC_YEAR(YEAR) ((YEAR) <= (uint32_t)99)
<> 149:156823d33999 258 /**
<> 149:156823d33999 259 * @}
<> 149:156823d33999 260 */
<> 149:156823d33999 261
<> 149:156823d33999 262 /** @defgroup RTC_Month_Date_Definitions Month Definitions
<> 149:156823d33999 263 * @{
<> 149:156823d33999 264 */
<> 149:156823d33999 265
<> 149:156823d33999 266 /* Coded in BCD format */
<> 149:156823d33999 267 #define RTC_MONTH_JANUARY ((uint8_t)0x01)
<> 149:156823d33999 268 #define RTC_MONTH_FEBRUARY ((uint8_t)0x02)
<> 149:156823d33999 269 #define RTC_MONTH_MARCH ((uint8_t)0x03)
<> 149:156823d33999 270 #define RTC_MONTH_APRIL ((uint8_t)0x04)
<> 149:156823d33999 271 #define RTC_MONTH_MAY ((uint8_t)0x05)
<> 149:156823d33999 272 #define RTC_MONTH_JUNE ((uint8_t)0x06)
<> 149:156823d33999 273 #define RTC_MONTH_JULY ((uint8_t)0x07)
<> 149:156823d33999 274 #define RTC_MONTH_AUGUST ((uint8_t)0x08)
<> 149:156823d33999 275 #define RTC_MONTH_SEPTEMBER ((uint8_t)0x09)
<> 149:156823d33999 276 #define RTC_MONTH_OCTOBER ((uint8_t)0x10)
<> 149:156823d33999 277 #define RTC_MONTH_NOVEMBER ((uint8_t)0x11)
<> 149:156823d33999 278 #define RTC_MONTH_DECEMBER ((uint8_t)0x12)
<> 149:156823d33999 279
<> 149:156823d33999 280 #define IS_RTC_MONTH(MONTH) (((MONTH) >= (uint32_t)1) && ((MONTH) <= (uint32_t)12))
<> 149:156823d33999 281 #define IS_RTC_DATE(DATE) (((DATE) >= (uint32_t)1) && ((DATE) <= (uint32_t)31))
<> 149:156823d33999 282 /**
<> 149:156823d33999 283 * @}
<> 149:156823d33999 284 */
<> 149:156823d33999 285
<> 149:156823d33999 286 /** @defgroup RTC_WeekDay_Definitions WeekDay Definitions
<> 149:156823d33999 287 * @{
<> 149:156823d33999 288 */
<> 149:156823d33999 289 #define RTC_WEEKDAY_MONDAY ((uint8_t)0x01)
<> 149:156823d33999 290 #define RTC_WEEKDAY_TUESDAY ((uint8_t)0x02)
<> 149:156823d33999 291 #define RTC_WEEKDAY_WEDNESDAY ((uint8_t)0x03)
<> 149:156823d33999 292 #define RTC_WEEKDAY_THURSDAY ((uint8_t)0x04)
<> 149:156823d33999 293 #define RTC_WEEKDAY_FRIDAY ((uint8_t)0x05)
<> 149:156823d33999 294 #define RTC_WEEKDAY_SATURDAY ((uint8_t)0x06)
<> 149:156823d33999 295 #define RTC_WEEKDAY_SUNDAY ((uint8_t)0x07)
<> 149:156823d33999 296
<> 149:156823d33999 297 #define IS_RTC_WEEKDAY(WEEKDAY) (((WEEKDAY) == RTC_WEEKDAY_MONDAY) || \
<> 149:156823d33999 298 ((WEEKDAY) == RTC_WEEKDAY_TUESDAY) || \
<> 149:156823d33999 299 ((WEEKDAY) == RTC_WEEKDAY_WEDNESDAY) || \
<> 149:156823d33999 300 ((WEEKDAY) == RTC_WEEKDAY_THURSDAY) || \
<> 149:156823d33999 301 ((WEEKDAY) == RTC_WEEKDAY_FRIDAY) || \
<> 149:156823d33999 302 ((WEEKDAY) == RTC_WEEKDAY_SATURDAY) || \
<> 149:156823d33999 303 ((WEEKDAY) == RTC_WEEKDAY_SUNDAY))
<> 149:156823d33999 304 /**
<> 149:156823d33999 305 * @}
<> 149:156823d33999 306 */
<> 149:156823d33999 307
<> 149:156823d33999 308 /** @defgroup RTC_Alarm_Definitions Alarm Definitions
<> 149:156823d33999 309 * @{
<> 149:156823d33999 310 */
<> 149:156823d33999 311 #define IS_RTC_ALARM_DATE_WEEKDAY_DATE(DATE) (((DATE) >(uint32_t) 0) && ((DATE) <= (uint32_t)31))
<> 149:156823d33999 312 #define IS_RTC_ALARM_DATE_WEEKDAY_WEEKDAY(WEEKDAY) (((WEEKDAY) == RTC_WEEKDAY_MONDAY) || \
<> 149:156823d33999 313 ((WEEKDAY) == RTC_WEEKDAY_TUESDAY) || \
<> 149:156823d33999 314 ((WEEKDAY) == RTC_WEEKDAY_WEDNESDAY) || \
<> 149:156823d33999 315 ((WEEKDAY) == RTC_WEEKDAY_THURSDAY) || \
<> 149:156823d33999 316 ((WEEKDAY) == RTC_WEEKDAY_FRIDAY) || \
<> 149:156823d33999 317 ((WEEKDAY) == RTC_WEEKDAY_SATURDAY) || \
<> 149:156823d33999 318 ((WEEKDAY) == RTC_WEEKDAY_SUNDAY))
<> 149:156823d33999 319 /**
<> 149:156823d33999 320 * @}
<> 149:156823d33999 321 */
<> 149:156823d33999 322
<> 149:156823d33999 323
<> 149:156823d33999 324 /** @defgroup RTC_AlarmDateWeekDay_Definitions AlarmDateWeekDay Definitions
<> 149:156823d33999 325 * @{
<> 149:156823d33999 326 */
<> 149:156823d33999 327 #define RTC_ALARMDATEWEEKDAYSEL_DATE (0x00000000U)
<> 149:156823d33999 328 #define RTC_ALARMDATEWEEKDAYSEL_WEEKDAY (0x40000000U)
<> 149:156823d33999 329
<> 149:156823d33999 330 #define IS_RTC_ALARM_DATE_WEEKDAY_SEL(SEL) (((SEL) == RTC_ALARMDATEWEEKDAYSEL_DATE) || \
<> 149:156823d33999 331 ((SEL) == RTC_ALARMDATEWEEKDAYSEL_WEEKDAY))
<> 149:156823d33999 332 /**
<> 149:156823d33999 333 * @}
<> 149:156823d33999 334 */
<> 149:156823d33999 335
<> 149:156823d33999 336
<> 149:156823d33999 337 /** @defgroup RTC_AlarmMask_Definitions Alarm Mask Definitions
<> 149:156823d33999 338 * @{
<> 149:156823d33999 339 */
<> 149:156823d33999 340 #define RTC_ALARMMASK_NONE (0x00000000U)
<> 149:156823d33999 341 #define RTC_ALARMMASK_DATEWEEKDAY RTC_ALRMAR_MSK4
<> 149:156823d33999 342 #define RTC_ALARMMASK_HOURS RTC_ALRMAR_MSK3
<> 149:156823d33999 343 #define RTC_ALARMMASK_MINUTES RTC_ALRMAR_MSK2
<> 149:156823d33999 344 #define RTC_ALARMMASK_SECONDS RTC_ALRMAR_MSK1
<> 149:156823d33999 345 #define RTC_ALARMMASK_ALL (0x80808080U)
<> 149:156823d33999 346
<> 149:156823d33999 347 #define IS_RTC_ALARM_MASK(MASK) (((MASK) & 0x7F7F7F7F) == (uint32_t)RESET)
<> 149:156823d33999 348 /**
<> 149:156823d33999 349 * @}
<> 149:156823d33999 350 */
<> 149:156823d33999 351
<> 149:156823d33999 352 /** @defgroup RTC_Alarms_Definitions Alarms Definitions
<> 149:156823d33999 353 * @{
<> 149:156823d33999 354 */
<> 149:156823d33999 355 #define RTC_ALARM_A RTC_CR_ALRAE
<> 149:156823d33999 356 #define RTC_ALARM_B RTC_CR_ALRBE
<> 149:156823d33999 357
<> 149:156823d33999 358 #define IS_RTC_ALARM(ALARM) (((ALARM) == RTC_ALARM_A) || ((ALARM) == RTC_ALARM_B))
<> 149:156823d33999 359 /**
<> 149:156823d33999 360 * @}
<> 149:156823d33999 361 */
<> 149:156823d33999 362
<> 149:156823d33999 363 /**
<> 149:156823d33999 364 * @}
<> 149:156823d33999 365 */
<> 149:156823d33999 366
<> 149:156823d33999 367 /* Exported macro ------------------------------------------------------------*/
<> 149:156823d33999 368 /** @defgroup RTC_Exported_macros RTC Exported Macros
<> 149:156823d33999 369 * @{
<> 149:156823d33999 370 */
<> 149:156823d33999 371
<> 149:156823d33999 372 /** @brief Reset RTC handle state
<> 149:156823d33999 373 * @param __HANDLE__: RTC handle.
<> 149:156823d33999 374 * @retval None
<> 149:156823d33999 375 */
<> 149:156823d33999 376 #define __HAL_RTC_RESET_HANDLE_STATE(__HANDLE__) ((__HANDLE__)->State = HAL_RTC_STATE_RESET)
<> 149:156823d33999 377
<> 149:156823d33999 378 /**
<> 149:156823d33999 379 * @brief Disable the write protection for RTC registers.
<> 149:156823d33999 380 * @param __HANDLE__: specifies the RTC handle.
<> 149:156823d33999 381 * @retval None
<> 149:156823d33999 382 */
<> 149:156823d33999 383 #define __HAL_RTC_WRITEPROTECTION_DISABLE(__HANDLE__) \
<> 149:156823d33999 384 do{ \
<> 149:156823d33999 385 (__HANDLE__)->Instance->WPR = 0xCA; \
<> 149:156823d33999 386 (__HANDLE__)->Instance->WPR = 0x53; \
<> 149:156823d33999 387 } while(0)
<> 149:156823d33999 388
<> 149:156823d33999 389 /**
<> 149:156823d33999 390 * @brief Enable the write protection for RTC registers.
<> 149:156823d33999 391 * @param __HANDLE__: specifies the RTC handle.
<> 149:156823d33999 392 * @retval None
<> 149:156823d33999 393 */
<> 149:156823d33999 394 #define __HAL_RTC_WRITEPROTECTION_ENABLE(__HANDLE__) \
<> 149:156823d33999 395 do{ \
<> 149:156823d33999 396 (__HANDLE__)->Instance->WPR = 0xFF; \
<> 149:156823d33999 397 } while(0)
<> 149:156823d33999 398
<> 149:156823d33999 399
<> 149:156823d33999 400 /**
<> 149:156823d33999 401 * @brief Enable the RTC ALARMA peripheral.
<> 149:156823d33999 402 * @param __HANDLE__: specifies the RTC handle.
<> 149:156823d33999 403 * @retval None
<> 149:156823d33999 404 */
<> 149:156823d33999 405 #define __HAL_RTC_ALARMA_ENABLE(__HANDLE__) ((__HANDLE__)->Instance->CR |= (RTC_CR_ALRAE))
<> 149:156823d33999 406
<> 149:156823d33999 407 /**
<> 149:156823d33999 408 * @brief Disable the RTC ALARMA peripheral.
<> 149:156823d33999 409 * @param __HANDLE__: specifies the RTC handle.
<> 149:156823d33999 410 * @retval None
<> 149:156823d33999 411 */
<> 149:156823d33999 412 #define __HAL_RTC_ALARMA_DISABLE(__HANDLE__) ((__HANDLE__)->Instance->CR &= ~(RTC_CR_ALRAE))
<> 149:156823d33999 413
<> 149:156823d33999 414 /**
<> 149:156823d33999 415 * @brief Enable the RTC ALARMB peripheral.
<> 149:156823d33999 416 * @param __HANDLE__: specifies the RTC handle.
<> 149:156823d33999 417 * @retval None
<> 149:156823d33999 418 */
<> 149:156823d33999 419 #define __HAL_RTC_ALARMB_ENABLE(__HANDLE__) ((__HANDLE__)->Instance->CR |= (RTC_CR_ALRBE))
<> 149:156823d33999 420
<> 149:156823d33999 421 /**
<> 149:156823d33999 422 * @brief Disable the RTC ALARMB peripheral.
<> 149:156823d33999 423 * @param __HANDLE__: specifies the RTC handle.
<> 149:156823d33999 424 * @retval None
<> 149:156823d33999 425 */
<> 149:156823d33999 426 #define __HAL_RTC_ALARMB_DISABLE(__HANDLE__) ((__HANDLE__)->Instance->CR &= ~(RTC_CR_ALRBE))
<> 149:156823d33999 427
<> 149:156823d33999 428 /**
<> 149:156823d33999 429 * @brief Enable the RTC Alarm interrupt.
<> 149:156823d33999 430 * @param __HANDLE__: specifies the RTC handle.
<> 149:156823d33999 431 * @param __INTERRUPT__: specifies the RTC Alarm interrupt sources to be enabled or disabled.
<> 149:156823d33999 432 * This parameter can be any combination of the following values:
<> 149:156823d33999 433 * @arg RTC_IT_ALRA: Alarm A interrupt
<> 149:156823d33999 434 * @arg RTC_IT_ALRB: Alarm B interrupt
<> 149:156823d33999 435 * @retval None
<> 149:156823d33999 436 */
<> 149:156823d33999 437 #define __HAL_RTC_ALARM_ENABLE_IT(__HANDLE__, __INTERRUPT__) ((__HANDLE__)->Instance->CR |= (__INTERRUPT__))
<> 149:156823d33999 438
<> 149:156823d33999 439 /**
<> 149:156823d33999 440 * @brief Disable the RTC Alarm interrupt.
<> 149:156823d33999 441 * @param __HANDLE__: specifies the RTC handle.
<> 149:156823d33999 442 * @param __INTERRUPT__: specifies the RTC Alarm interrupt sources to be enabled or disabled.
<> 149:156823d33999 443 * This parameter can be any combination of the following values:
<> 149:156823d33999 444 * @arg RTC_IT_ALRA: Alarm A interrupt
<> 149:156823d33999 445 * @arg RTC_IT_ALRB: Alarm B interrupt
<> 149:156823d33999 446 * @retval None
<> 149:156823d33999 447 */
<> 149:156823d33999 448 #define __HAL_RTC_ALARM_DISABLE_IT(__HANDLE__, __INTERRUPT__) ((__HANDLE__)->Instance->CR &= ~(__INTERRUPT__))
<> 149:156823d33999 449
<> 149:156823d33999 450 /**
<> 149:156823d33999 451 * @brief Check whether the specified RTC Alarm interrupt has occurred or not.
<> 149:156823d33999 452 * @param __HANDLE__: specifies the RTC handle.
<> 149:156823d33999 453 * @param __INTERRUPT__: specifies the RTC Alarm interrupt sources to check.
<> 149:156823d33999 454 * This parameter can be:
<> 149:156823d33999 455 * @arg RTC_IT_ALRA: Alarm A interrupt
<> 149:156823d33999 456 * @arg RTC_IT_ALRB: Alarm B interrupt
<> 149:156823d33999 457 * @retval None
<> 149:156823d33999 458 */
<> 149:156823d33999 459 #define __HAL_RTC_ALARM_GET_IT(__HANDLE__, __INTERRUPT__) (((((__HANDLE__)->Instance->ISR)& ((__INTERRUPT__)>> 4)) != RESET)? SET : RESET)
<> 149:156823d33999 460
<> 149:156823d33999 461 /**
<> 149:156823d33999 462 * @brief Check whether the specified RTC Alarm interrupt has been enabled or not.
<> 149:156823d33999 463 * @param __HANDLE__: specifies the RTC handle.
<> 149:156823d33999 464 * @param __INTERRUPT__: specifies the RTC Alarm interrupt sources to check.
<> 149:156823d33999 465 * This parameter can be:
<> 149:156823d33999 466 * @arg RTC_IT_ALRA: Alarm A interrupt
<> 149:156823d33999 467 * @arg RTC_IT_ALRB: Alarm B interrupt
<> 149:156823d33999 468 * @retval None
<> 149:156823d33999 469 */
<> 149:156823d33999 470 #define __HAL_RTC_ALARM_GET_IT_SOURCE(__HANDLE__, __INTERRUPT__) (((((__HANDLE__)->Instance->CR) & (__INTERRUPT__)) != RESET) ? SET : RESET)
<> 149:156823d33999 471
<> 149:156823d33999 472 /**
<> 149:156823d33999 473 * @brief Get the selected RTC Alarm's flag status.
<> 149:156823d33999 474 * @param __HANDLE__: specifies the RTC handle.
<> 149:156823d33999 475 * @param __FLAG__: specifies the RTC Alarm Flag sources to check.
<> 149:156823d33999 476 * This parameter can be:
<> 149:156823d33999 477 * @arg RTC_FLAG_ALRAF
<> 149:156823d33999 478 * @arg RTC_FLAG_ALRBF
<> 149:156823d33999 479 * @arg RTC_FLAG_ALRAWF
<> 149:156823d33999 480 * @arg RTC_FLAG_ALRBWF
<> 149:156823d33999 481 * @retval None
<> 149:156823d33999 482 */
<> 149:156823d33999 483 #define __HAL_RTC_ALARM_GET_FLAG(__HANDLE__, __FLAG__) (((((__HANDLE__)->Instance->ISR) & (__FLAG__)) != RESET)? SET : RESET)
<> 149:156823d33999 484
<> 149:156823d33999 485 /**
<> 149:156823d33999 486 * @brief Clear the RTC Alarm's pending flags.
<> 149:156823d33999 487 * @param __HANDLE__: specifies the RTC handle.
<> 149:156823d33999 488 * @param __FLAG__: specifies the RTC Alarm Flag sources to clear.
<> 149:156823d33999 489 * This parameter can be:
<> 149:156823d33999 490 * @arg RTC_FLAG_ALRAF
<> 149:156823d33999 491 * @arg RTC_FLAG_ALRBF
<> 149:156823d33999 492 * @retval None
<> 149:156823d33999 493 */
<> 149:156823d33999 494 #define __HAL_RTC_ALARM_CLEAR_FLAG(__HANDLE__, __FLAG__) ((__HANDLE__)->Instance->ISR) = (~((__FLAG__) | RTC_ISR_INIT) | ((__HANDLE__)->Instance->ISR & RTC_ISR_INIT))
<> 149:156823d33999 495
<> 149:156823d33999 496 /**
<> 149:156823d33999 497 * @brief Enable interrupt on the RTC Alarm associated Exti line.
<> 149:156823d33999 498 * @retval None
<> 149:156823d33999 499 */
<> 149:156823d33999 500 #define __HAL_RTC_ALARM_EXTI_ENABLE_IT() (EXTI->IMR |= RTC_EXTI_LINE_ALARM_EVENT)
<> 149:156823d33999 501
<> 149:156823d33999 502 /**
<> 149:156823d33999 503 * @brief Disable interrupt on the RTC Alarm associated Exti line.
<> 149:156823d33999 504 * @retval None
<> 149:156823d33999 505 */
<> 149:156823d33999 506 #define __HAL_RTC_ALARM_EXTI_DISABLE_IT() (EXTI->IMR &= ~(RTC_EXTI_LINE_ALARM_EVENT))
<> 149:156823d33999 507
<> 149:156823d33999 508 /**
<> 149:156823d33999 509 * @brief Enable event on the RTC Alarm associated Exti line.
<> 149:156823d33999 510 * @retval None.
<> 149:156823d33999 511 */
<> 149:156823d33999 512 #define __HAL_RTC_ALARM_EXTI_ENABLE_EVENT() (EXTI->EMR |= RTC_EXTI_LINE_ALARM_EVENT)
<> 149:156823d33999 513
<> 149:156823d33999 514 /**
<> 149:156823d33999 515 * @brief Disable event on the RTC Alarm associated Exti line.
<> 149:156823d33999 516 * @retval None.
<> 149:156823d33999 517 */
<> 149:156823d33999 518 #define __HAL_RTC_ALARM_EXTI_DISABLE_EVENT() (EXTI->EMR &= ~(RTC_EXTI_LINE_ALARM_EVENT))
<> 149:156823d33999 519
<> 149:156823d33999 520 /**
<> 149:156823d33999 521 * @brief Enable falling edge trigger on the RTC Alarm associated Exti line.
<> 149:156823d33999 522 * @retval None.
<> 149:156823d33999 523 */
<> 149:156823d33999 524 #define __HAL_RTC_ALARM_EXTI_ENABLE_FALLING_EDGE() (EXTI->FTSR |= RTC_EXTI_LINE_ALARM_EVENT)
<> 149:156823d33999 525
<> 149:156823d33999 526 /**
<> 149:156823d33999 527 * @brief Disable falling edge trigger on the RTC Alarm associated Exti line.
<> 149:156823d33999 528 * @retval None.
<> 149:156823d33999 529 */
<> 149:156823d33999 530 #define __HAL_RTC_ALARM_EXTI_DISABLE_FALLING_EDGE() (EXTI->FTSR &= ~(RTC_EXTI_LINE_ALARM_EVENT))
<> 149:156823d33999 531
<> 149:156823d33999 532 /**
<> 149:156823d33999 533 * @brief Enable rising edge trigger on the RTC Alarm associated Exti line.
<> 149:156823d33999 534 * @retval None.
<> 149:156823d33999 535 */
<> 149:156823d33999 536 #define __HAL_RTC_ALARM_EXTI_ENABLE_RISING_EDGE() (EXTI->RTSR |= RTC_EXTI_LINE_ALARM_EVENT)
<> 149:156823d33999 537
<> 149:156823d33999 538 /**
<> 149:156823d33999 539 * @brief Disable rising edge trigger on the RTC Alarm associated Exti line.
<> 149:156823d33999 540 * @retval None.
<> 149:156823d33999 541 */
<> 149:156823d33999 542 #define __HAL_RTC_ALARM_EXTI_DISABLE_RISING_EDGE() (EXTI->RTSR &= ~(RTC_EXTI_LINE_ALARM_EVENT))
<> 149:156823d33999 543
<> 149:156823d33999 544 /**
<> 149:156823d33999 545 * @brief Enable rising & falling edge trigger on the RTC Alarm associated Exti line.
<> 149:156823d33999 546 * @retval None.
<> 149:156823d33999 547 */
<> 149:156823d33999 548 #define __HAL_RTC_ALARM_EXTI_ENABLE_RISING_FALLING_EDGE() do { __HAL_RTC_ALARM_EXTI_ENABLE_RISING_EDGE();__HAL_RTC_ALARM_EXTI_ENABLE_FALLING_EDGE(); } while(0);
<> 149:156823d33999 549
<> 149:156823d33999 550 /**
<> 149:156823d33999 551 * @brief Disable rising & falling edge trigger on the RTC Alarm associated Exti line.
<> 149:156823d33999 552 * @retval None.
<> 149:156823d33999 553 */
<> 149:156823d33999 554 #define __HAL_RTC_ALARM_EXTI_DISABLE_RISING_FALLING_EDGE() do { __HAL_RTC_ALARM_EXTI_DISABLE_RISING_EDGE();__HAL_RTC_ALARM_EXTI_DISABLE_FALLING_EDGE(); } while(0);
<> 149:156823d33999 555
<> 149:156823d33999 556 /**
<> 149:156823d33999 557 * @brief Check whether the RTC Alarm associated Exti line interrupt flag is set or not.
<> 149:156823d33999 558 * @retval Line Status.
<> 149:156823d33999 559 */
<> 149:156823d33999 560 #define __HAL_RTC_ALARM_EXTI_GET_FLAG() (EXTI->PR & RTC_EXTI_LINE_ALARM_EVENT)
<> 149:156823d33999 561
<> 149:156823d33999 562 /**
<> 149:156823d33999 563 * @brief Clear the RTC Alarm associated Exti line flag.
<> 149:156823d33999 564 * @retval None.
<> 149:156823d33999 565 */
<> 149:156823d33999 566 #define __HAL_RTC_ALARM_EXTI_CLEAR_FLAG() (EXTI->PR = RTC_EXTI_LINE_ALARM_EVENT)
<> 149:156823d33999 567
<> 149:156823d33999 568 /**
<> 149:156823d33999 569 * @brief Generate a Software interrupt on RTC Alarm associated Exti line.
<> 149:156823d33999 570 * @retval None.
<> 149:156823d33999 571 */
<> 149:156823d33999 572 #define __HAL_RTC_ALARM_EXTI_GENERATE_SWIT() (EXTI->SWIER |= RTC_EXTI_LINE_ALARM_EVENT)
<> 149:156823d33999 573
<> 149:156823d33999 574 /**
<> 149:156823d33999 575 * @}
<> 149:156823d33999 576 */
<> 149:156823d33999 577
<> 149:156823d33999 578 /* Include RTC HAL Extension module */
<> 149:156823d33999 579 #include "stm32l1xx_hal_rtc_ex.h"
<> 149:156823d33999 580
<> 149:156823d33999 581 /* Exported functions --------------------------------------------------------*/
<> 149:156823d33999 582 /** @addtogroup RTC_Exported_Functions
<> 149:156823d33999 583 * @{
<> 149:156823d33999 584 */
<> 149:156823d33999 585
<> 149:156823d33999 586
<> 149:156823d33999 587 /* Initialization and de-initialization functions ****************************/
<> 149:156823d33999 588 /** @addtogroup RTC_Exported_Functions_Group1
<> 149:156823d33999 589 * @{
<> 149:156823d33999 590 */
<> 149:156823d33999 591 HAL_StatusTypeDef HAL_RTC_Init(RTC_HandleTypeDef *hrtc);
<> 149:156823d33999 592 HAL_StatusTypeDef HAL_RTC_DeInit(RTC_HandleTypeDef *hrtc);
<> 149:156823d33999 593 void HAL_RTC_MspInit(RTC_HandleTypeDef *hrtc);
<> 149:156823d33999 594 void HAL_RTC_MspDeInit(RTC_HandleTypeDef *hrtc);
<> 149:156823d33999 595 /**
<> 149:156823d33999 596 * @}
<> 149:156823d33999 597 */
<> 149:156823d33999 598
<> 149:156823d33999 599 /* RTC Time and Date functions ************************************************/
<> 149:156823d33999 600 /** @addtogroup RTC_Exported_Functions_Group1
<> 149:156823d33999 601 * @{
<> 149:156823d33999 602 */
<> 149:156823d33999 603 HAL_StatusTypeDef HAL_RTC_SetTime(RTC_HandleTypeDef *hrtc, RTC_TimeTypeDef *sTime, uint32_t Format);
<> 149:156823d33999 604 HAL_StatusTypeDef HAL_RTC_GetTime(RTC_HandleTypeDef *hrtc, RTC_TimeTypeDef *sTime, uint32_t Format);
<> 149:156823d33999 605 HAL_StatusTypeDef HAL_RTC_SetDate(RTC_HandleTypeDef *hrtc, RTC_DateTypeDef *sDate, uint32_t Format);
<> 149:156823d33999 606 HAL_StatusTypeDef HAL_RTC_GetDate(RTC_HandleTypeDef *hrtc, RTC_DateTypeDef *sDate, uint32_t Format);
<> 149:156823d33999 607 /**
<> 149:156823d33999 608 * @}
<> 149:156823d33999 609 */
<> 149:156823d33999 610
<> 149:156823d33999 611 /* RTC Alarm functions ********************************************************/
<> 149:156823d33999 612 /** @addtogroup RTC_Exported_Functions_Group2
<> 149:156823d33999 613 * @{
<> 149:156823d33999 614 */
<> 149:156823d33999 615 HAL_StatusTypeDef HAL_RTC_SetAlarm(RTC_HandleTypeDef *hrtc, RTC_AlarmTypeDef *sAlarm, uint32_t Format);
<> 149:156823d33999 616 HAL_StatusTypeDef HAL_RTC_SetAlarm_IT(RTC_HandleTypeDef *hrtc, RTC_AlarmTypeDef *sAlarm, uint32_t Format);
<> 149:156823d33999 617 HAL_StatusTypeDef HAL_RTC_DeactivateAlarm(RTC_HandleTypeDef *hrtc, uint32_t Alarm);
<> 149:156823d33999 618 HAL_StatusTypeDef HAL_RTC_GetAlarm(RTC_HandleTypeDef *hrtc, RTC_AlarmTypeDef *sAlarm, uint32_t Alarm, uint32_t Format);
<> 149:156823d33999 619 void HAL_RTC_AlarmIRQHandler(RTC_HandleTypeDef *hrtc);
<> 149:156823d33999 620 HAL_StatusTypeDef HAL_RTC_PollForAlarmAEvent(RTC_HandleTypeDef *hrtc, uint32_t Timeout);
<> 149:156823d33999 621 void HAL_RTC_AlarmAEventCallback(RTC_HandleTypeDef *hrtc);
<> 149:156823d33999 622 /**
<> 149:156823d33999 623 * @}
<> 149:156823d33999 624 */
<> 149:156823d33999 625
<> 149:156823d33999 626 /* Peripheral Control functions ***********************************************/
<> 149:156823d33999 627 /** @addtogroup RTC_Exported_Functions_Group3
<> 149:156823d33999 628 * @{
<> 149:156823d33999 629 */
<> 149:156823d33999 630 HAL_StatusTypeDef HAL_RTC_WaitForSynchro(RTC_HandleTypeDef* hrtc);
<> 149:156823d33999 631 /**
<> 149:156823d33999 632 * @}
<> 149:156823d33999 633 */
<> 149:156823d33999 634
<> 149:156823d33999 635 /* Peripheral State functions *************************************************/
<> 149:156823d33999 636 /** @addtogroup RTC_Exported_Functions_Group5
<> 149:156823d33999 637 * @{
<> 149:156823d33999 638 */
<> 149:156823d33999 639 HAL_RTCStateTypeDef HAL_RTC_GetState(RTC_HandleTypeDef *hrtc);
<> 149:156823d33999 640 /**
<> 149:156823d33999 641 * @}
<> 149:156823d33999 642 */
<> 149:156823d33999 643
<> 149:156823d33999 644 /**
<> 149:156823d33999 645 * @}
<> 149:156823d33999 646 */
<> 149:156823d33999 647 /* Private functions **********************************************************/
<> 149:156823d33999 648 /** @addtogroup RTC_Internal_Functions
<> 149:156823d33999 649 * @{
<> 149:156823d33999 650 */
<> 149:156823d33999 651 /* Private types -------------------------------------------------------------*/
<> 149:156823d33999 652 /* Private variables ---------------------------------------------------------*/
<> 149:156823d33999 653 /* Private constants ---------------------------------------------------------*/
<> 149:156823d33999 654 /** @defgroup RTC_Private_Constants RTC Private Constants
<> 149:156823d33999 655 * @{
<> 149:156823d33999 656 */
<> 149:156823d33999 657
<> 149:156823d33999 658 #define RTC_EXTI_LINE_ALARM_EVENT ((uint32_t)EXTI_IMR_MR17) /*!< External interrupt line 17 Connected to the RTC Alarm event */
<> 149:156823d33999 659
<> 149:156823d33999 660 /**
<> 149:156823d33999 661 * @}
<> 149:156823d33999 662 */
<> 149:156823d33999 663
<> 149:156823d33999 664 /* Private macros ------------------------------------------------------------*/
<> 149:156823d33999 665 /** @defgroup RTC_Private_Macros RTC Private Macros
<> 149:156823d33999 666 * @{
<> 149:156823d33999 667 */
<> 149:156823d33999 668
<> 149:156823d33999 669 /**
<> 149:156823d33999 670 * @}
<> 149:156823d33999 671 */
<> 149:156823d33999 672
<> 149:156823d33999 673 /* Private functions ---------------------------------------------------------*/
<> 149:156823d33999 674 /** @defgroup RTC_Private_Functions RTC Private Functions
<> 149:156823d33999 675 * @{
<> 149:156823d33999 676 */
<> 149:156823d33999 677 HAL_StatusTypeDef RTC_EnterInitMode(RTC_HandleTypeDef* hrtc);
<> 149:156823d33999 678 uint8_t RTC_ByteToBcd2(uint8_t Value);
<> 149:156823d33999 679 uint8_t RTC_Bcd2ToByte(uint8_t Value);
<> 149:156823d33999 680
<> 149:156823d33999 681 /**
<> 149:156823d33999 682 * @}
<> 149:156823d33999 683 */
<> 149:156823d33999 684
<> 149:156823d33999 685 /**
<> 149:156823d33999 686 * @}
<> 149:156823d33999 687 */
<> 149:156823d33999 688
<> 149:156823d33999 689 /**
<> 149:156823d33999 690 * @}
<> 149:156823d33999 691 */
<> 149:156823d33999 692
<> 149:156823d33999 693 /**
<> 149:156823d33999 694 * @}
<> 149:156823d33999 695 */
<> 149:156823d33999 696
<> 149:156823d33999 697 #ifdef __cplusplus
<> 149:156823d33999 698 }
<> 149:156823d33999 699 #endif
<> 149:156823d33999 700
<> 149:156823d33999 701 #endif /* __STM32L1xx_HAL_RTC_H */
<> 149:156823d33999 702
<> 149:156823d33999 703 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/