Ricardo Benitez / mbed

Fork of mbed by mbed official

Committer:
Kojto
Date:
Tue Mar 15 14:34:00 2016 +0000
Revision:
116:c0f6e94411f5
Release 116 of the mbed library

Changes:
- new targets - NUCLEO_L073RZ
- fixes to IOTSS BEID platform
- LPC824, LPC1549 and LPC11U68 - fix PWMOut SCT bugs
- STM32F7 - Cube driver
- STM32F4 - add RTC LSI macro, defined as 0
- STM32F3 - fix multiple ADC clock initialization
- retarget - binary mode fix for GCC

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Kojto 116:c0f6e94411f5 1 /**
Kojto 116:c0f6e94411f5 2 ******************************************************************************
Kojto 116:c0f6e94411f5 3 * @file stm32l0xx_hal_rtc_ex.h
Kojto 116:c0f6e94411f5 4 * @author MCD Application Team
Kojto 116:c0f6e94411f5 5 * @version V1.2.0
Kojto 116:c0f6e94411f5 6 * @date 06-February-2015
Kojto 116:c0f6e94411f5 7 * @brief Header file of RTC HAL Extended module.
Kojto 116:c0f6e94411f5 8 ******************************************************************************
Kojto 116:c0f6e94411f5 9 * @attention
Kojto 116:c0f6e94411f5 10 *
Kojto 116:c0f6e94411f5 11 * <h2><center>&copy; COPYRIGHT(c) 2015 STMicroelectronics</center></h2>
Kojto 116:c0f6e94411f5 12 *
Kojto 116:c0f6e94411f5 13 * Redistribution and use in source and binary forms, with or without modification,
Kojto 116:c0f6e94411f5 14 * are permitted provided that the following conditions are met:
Kojto 116:c0f6e94411f5 15 * 1. Redistributions of source code must retain the above copyright notice,
Kojto 116:c0f6e94411f5 16 * this list of conditions and the following disclaimer.
Kojto 116:c0f6e94411f5 17 * 2. Redistributions in binary form must reproduce the above copyright notice,
Kojto 116:c0f6e94411f5 18 * this list of conditions and the following disclaimer in the documentation
Kojto 116:c0f6e94411f5 19 * and/or other materials provided with the distribution.
Kojto 116:c0f6e94411f5 20 * 3. Neither the name of STMicroelectronics nor the names of its contributors
Kojto 116:c0f6e94411f5 21 * may be used to endorse or promote products derived from this software
Kojto 116:c0f6e94411f5 22 * without specific prior written permission.
Kojto 116:c0f6e94411f5 23 *
Kojto 116:c0f6e94411f5 24 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
Kojto 116:c0f6e94411f5 25 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
Kojto 116:c0f6e94411f5 26 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
Kojto 116:c0f6e94411f5 27 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
Kojto 116:c0f6e94411f5 28 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
Kojto 116:c0f6e94411f5 29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
Kojto 116:c0f6e94411f5 30 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
Kojto 116:c0f6e94411f5 31 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
Kojto 116:c0f6e94411f5 32 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
Kojto 116:c0f6e94411f5 33 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Kojto 116:c0f6e94411f5 34 *
Kojto 116:c0f6e94411f5 35 ******************************************************************************
Kojto 116:c0f6e94411f5 36 */
Kojto 116:c0f6e94411f5 37
Kojto 116:c0f6e94411f5 38 /* Define to prevent recursive inclusion -------------------------------------*/
Kojto 116:c0f6e94411f5 39 #ifndef __STM32L0xx_HAL_RTC_EX_H
Kojto 116:c0f6e94411f5 40 #define __STM32L0xx_HAL_RTC_EX_H
Kojto 116:c0f6e94411f5 41
Kojto 116:c0f6e94411f5 42 #ifdef __cplusplus
Kojto 116:c0f6e94411f5 43 extern "C" {
Kojto 116:c0f6e94411f5 44 #endif
Kojto 116:c0f6e94411f5 45
Kojto 116:c0f6e94411f5 46 /* Includes ------------------------------------------------------------------*/
Kojto 116:c0f6e94411f5 47 #include "stm32l0xx_hal_def.h"
Kojto 116:c0f6e94411f5 48
Kojto 116:c0f6e94411f5 49 /** @addtogroup STM32L0xx_HAL_Driver
Kojto 116:c0f6e94411f5 50 * @{
Kojto 116:c0f6e94411f5 51 */
Kojto 116:c0f6e94411f5 52
Kojto 116:c0f6e94411f5 53 /** @defgroup RTCEx RTCEx
Kojto 116:c0f6e94411f5 54 * @{
Kojto 116:c0f6e94411f5 55 */
Kojto 116:c0f6e94411f5 56
Kojto 116:c0f6e94411f5 57 /* Exported types ------------------------------------------------------------*/
Kojto 116:c0f6e94411f5 58
Kojto 116:c0f6e94411f5 59 /** @defgroup RTCEx_Exported_Types RTC Extended Exported Types
Kojto 116:c0f6e94411f5 60 * @{
Kojto 116:c0f6e94411f5 61 */
Kojto 116:c0f6e94411f5 62
Kojto 116:c0f6e94411f5 63 /**
Kojto 116:c0f6e94411f5 64 * @brief RTC Tamper structure definition
Kojto 116:c0f6e94411f5 65 */
Kojto 116:c0f6e94411f5 66 typedef struct
Kojto 116:c0f6e94411f5 67 {
Kojto 116:c0f6e94411f5 68 uint32_t Tamper; /*!< Specifies the Tamper Pin.
Kojto 116:c0f6e94411f5 69 This parameter can be a value of @ref RTCEx_Tamper_Pins_Definitions */
Kojto 116:c0f6e94411f5 70
Kojto 116:c0f6e94411f5 71 uint32_t Interrupt; /*!< Specifies the Tamper Interrupt.
Kojto 116:c0f6e94411f5 72 This parameter can be a value of @ref RTCEx_Tamper_Interrupt_Definitions */
Kojto 116:c0f6e94411f5 73
Kojto 116:c0f6e94411f5 74 uint32_t Trigger; /*!< Specifies the Tamper Trigger.
Kojto 116:c0f6e94411f5 75 This parameter can be a value of @ref RTCEx_Tamper_Trigger_Definitions */
Kojto 116:c0f6e94411f5 76
Kojto 116:c0f6e94411f5 77 uint32_t NoErase; /*!< Specifies the Tamper no erase mode.
Kojto 116:c0f6e94411f5 78 This parameter can be a value of @ref RTCEx_Tamper_EraseBackUp_Definitions */
Kojto 116:c0f6e94411f5 79
Kojto 116:c0f6e94411f5 80 uint32_t MaskFlag; /*!< Specifies the Tamper Flag masking.
Kojto 116:c0f6e94411f5 81 This parameter can be a value of @ref RTCEx_Tamper_MaskFlag_Definitions */
Kojto 116:c0f6e94411f5 82
Kojto 116:c0f6e94411f5 83 uint32_t Filter; /*!< Specifies the RTC Filter Tamper.
Kojto 116:c0f6e94411f5 84 This parameter can be a value of @ref RTCEx_Tamper_Filter_Definitions */
Kojto 116:c0f6e94411f5 85
Kojto 116:c0f6e94411f5 86 uint32_t SamplingFrequency; /*!< Specifies the sampling frequency.
Kojto 116:c0f6e94411f5 87 This parameter can be a value of @ref RTCEx_Tamper_Sampling_Frequencies_Definitions */
Kojto 116:c0f6e94411f5 88
Kojto 116:c0f6e94411f5 89 uint32_t PrechargeDuration; /*!< Specifies the Precharge Duration .
Kojto 116:c0f6e94411f5 90 This parameter can be a value of @ref RTCEx_Tamper_Pin_Precharge_Duration_Definitions */
Kojto 116:c0f6e94411f5 91
Kojto 116:c0f6e94411f5 92 uint32_t TamperPullUp; /*!< Specifies the Tamper PullUp .
Kojto 116:c0f6e94411f5 93 This parameter can be a value of @ref RTCEx_Tamper_Pull_UP_Definitions */
Kojto 116:c0f6e94411f5 94
Kojto 116:c0f6e94411f5 95 uint32_t TimeStampOnTamperDetection; /*!< Specifies the TimeStampOnTamperDetection.
Kojto 116:c0f6e94411f5 96 This parameter can be a value of @ref RTCEx_Tamper_TimeStampOnTamperDetection_Definitions */
Kojto 116:c0f6e94411f5 97 }RTC_TamperTypeDef;
Kojto 116:c0f6e94411f5 98 /**
Kojto 116:c0f6e94411f5 99 * @}
Kojto 116:c0f6e94411f5 100 */
Kojto 116:c0f6e94411f5 101
Kojto 116:c0f6e94411f5 102 /* Exported constants --------------------------------------------------------*/
Kojto 116:c0f6e94411f5 103 /** @defgroup RTCEx_Exported_Constants RTC Extended Exported Constants
Kojto 116:c0f6e94411f5 104 * @{
Kojto 116:c0f6e94411f5 105 */
Kojto 116:c0f6e94411f5 106
Kojto 116:c0f6e94411f5 107
Kojto 116:c0f6e94411f5 108 /** @defgroup RTCEx_Interrupts_Definitions RTC Extended Interrupts Definitions
Kojto 116:c0f6e94411f5 109 * @{
Kojto 116:c0f6e94411f5 110 */
Kojto 116:c0f6e94411f5 111 #if defined (STM32L083xx) || defined (STM32L082xx) || defined (STM32L081xx) || \
Kojto 116:c0f6e94411f5 112 defined (STM32L073xx) || defined (STM32L072xx) || defined (STM32L071xx)
Kojto 116:c0f6e94411f5 113
Kojto 116:c0f6e94411f5 114 #define RTC_IT_TAMP3 RTC_TAMPCR_TAMP3IE
Kojto 116:c0f6e94411f5 115
Kojto 116:c0f6e94411f5 116 #endif /* (STM32L083xx) || (STM32L082xx) || (STM32L081xx) ||
Kojto 116:c0f6e94411f5 117 * (STM32L073xx) || (STM32L072xx) || (STM32L071xx)
Kojto 116:c0f6e94411f5 118 */
Kojto 116:c0f6e94411f5 119 /**
Kojto 116:c0f6e94411f5 120 * @}
Kojto 116:c0f6e94411f5 121 */
Kojto 116:c0f6e94411f5 122
Kojto 116:c0f6e94411f5 123
Kojto 116:c0f6e94411f5 124 /** @defgroup RTCEx_Flags_Definitions RTC Extended Flags Definitions
Kojto 116:c0f6e94411f5 125 * @{
Kojto 116:c0f6e94411f5 126 */
Kojto 116:c0f6e94411f5 127 #if defined (STM32L083xx) || defined (STM32L082xx) || defined (STM32L081xx) || \
Kojto 116:c0f6e94411f5 128 defined (STM32L073xx) || defined (STM32L072xx) || defined (STM32L071xx)
Kojto 116:c0f6e94411f5 129
Kojto 116:c0f6e94411f5 130 #define RTC_FLAG_TAMP3F RTC_ISR_TAMP3F
Kojto 116:c0f6e94411f5 131
Kojto 116:c0f6e94411f5 132 #endif /* (STM32L083xx) || (STM32L082xx) || (STM32L081xx) ||
Kojto 116:c0f6e94411f5 133 * (STM32L073xx) || (STM32L072xx) || (STM32L071xx)
Kojto 116:c0f6e94411f5 134 */
Kojto 116:c0f6e94411f5 135
Kojto 116:c0f6e94411f5 136 /**
Kojto 116:c0f6e94411f5 137 * @}
Kojto 116:c0f6e94411f5 138 */
Kojto 116:c0f6e94411f5 139
Kojto 116:c0f6e94411f5 140 /** @defgroup RTCEx_Backup_Registers_Definitions RTC Extended Backup Registers Definition
Kojto 116:c0f6e94411f5 141 * @{
Kojto 116:c0f6e94411f5 142 */
Kojto 116:c0f6e94411f5 143 #define RTC_BKP_DR0 ((uint32_t)0x00000000)
Kojto 116:c0f6e94411f5 144 #define RTC_BKP_DR1 ((uint32_t)0x00000001)
Kojto 116:c0f6e94411f5 145 #define RTC_BKP_DR2 ((uint32_t)0x00000002)
Kojto 116:c0f6e94411f5 146 #define RTC_BKP_DR3 ((uint32_t)0x00000003)
Kojto 116:c0f6e94411f5 147 #define RTC_BKP_DR4 ((uint32_t)0x00000004)
Kojto 116:c0f6e94411f5 148
Kojto 116:c0f6e94411f5 149 #define IS_RTC_BKP(__BKP__) (((__BKP__) == RTC_BKP_DR0) || \
Kojto 116:c0f6e94411f5 150 ((__BKP__) == RTC_BKP_DR1) || \
Kojto 116:c0f6e94411f5 151 ((__BKP__) == RTC_BKP_DR2) || \
Kojto 116:c0f6e94411f5 152 ((__BKP__) == RTC_BKP_DR3) || \
Kojto 116:c0f6e94411f5 153 ((__BKP__) == RTC_BKP_DR4))
Kojto 116:c0f6e94411f5 154 /**
Kojto 116:c0f6e94411f5 155 * @}
Kojto 116:c0f6e94411f5 156 */
Kojto 116:c0f6e94411f5 157
Kojto 116:c0f6e94411f5 158 /** @defgroup RTC_Mask_Definition RTC Mask Definition
Kojto 116:c0f6e94411f5 159 * @{
Kojto 116:c0f6e94411f5 160 */
Kojto 116:c0f6e94411f5 161
Kojto 116:c0f6e94411f5 162 /* Masks Definition */
Kojto 116:c0f6e94411f5 163
Kojto 116:c0f6e94411f5 164 #if defined (STM32L083xx) || defined (STM32L082xx) || defined (STM32L081xx) || \
Kojto 116:c0f6e94411f5 165 defined (STM32L073xx) || defined (STM32L072xx) || defined (STM32L071xx)
Kojto 116:c0f6e94411f5 166
Kojto 116:c0f6e94411f5 167 #define RTC_FLAGS_MASK ((uint32_t) (RTC_FLAG_RECALPF | RTC_FLAG_TAMP3F | RTC_FLAG_TAMP2F | \
Kojto 116:c0f6e94411f5 168 RTC_FLAG_TAMP1F| RTC_FLAG_TSOVF | RTC_FLAG_TSF | \
Kojto 116:c0f6e94411f5 169 RTC_FLAG_WUTF | RTC_FLAG_ALRBF | RTC_FLAG_ALRAF | \
Kojto 116:c0f6e94411f5 170 RTC_FLAG_INIT | RTC_FLAG_INITF | RTC_FLAG_RSF | \
Kojto 116:c0f6e94411f5 171 RTC_FLAG_INITS | RTC_FLAG_SHPF | RTC_FLAG_WUTWF | \
Kojto 116:c0f6e94411f5 172 RTC_FLAG_ALRBWF | RTC_FLAG_ALRAWF))
Kojto 116:c0f6e94411f5 173
Kojto 116:c0f6e94411f5 174 #define RTC_TAMPCR_TAMPXE ((uint32_t) (RTC_TAMPCR_TAMP3E | RTC_TAMPCR_TAMP2E | RTC_TAMPCR_TAMP1E))
Kojto 116:c0f6e94411f5 175
Kojto 116:c0f6e94411f5 176 #else
Kojto 116:c0f6e94411f5 177
Kojto 116:c0f6e94411f5 178 #define RTC_FLAGS_MASK ((uint32_t) (RTC_FLAG_RECALPF | RTC_FLAG_TAMP2F | RTC_FLAG_TAMP1F| \
Kojto 116:c0f6e94411f5 179 RTC_FLAG_TSOVF | RTC_FLAG_TSF | RTC_FLAG_WUTF | \
Kojto 116:c0f6e94411f5 180 RTC_FLAG_ALRBF | RTC_FLAG_ALRAF | RTC_FLAG_INIT | \
Kojto 116:c0f6e94411f5 181 RTC_FLAG_INITF | RTC_FLAG_RSF | RTC_FLAG_INITS | \
Kojto 116:c0f6e94411f5 182 RTC_FLAG_SHPF | RTC_FLAG_WUTWF |RTC_FLAG_ALRBWF | \
Kojto 116:c0f6e94411f5 183 RTC_FLAG_ALRAWF))
Kojto 116:c0f6e94411f5 184
Kojto 116:c0f6e94411f5 185 #define RTC_TAMPCR_TAMPXE ((uint32_t) (RTC_TAMPCR_TAMP2E | RTC_TAMPCR_TAMP1E))
Kojto 116:c0f6e94411f5 186
Kojto 116:c0f6e94411f5 187 #endif /* (STM32L083xx) || (STM32L082xx) || (STM32L081xx) ||
Kojto 116:c0f6e94411f5 188 * (STM32L073xx) || (STM32L072xx) || (STM32L071xx)
Kojto 116:c0f6e94411f5 189 */
Kojto 116:c0f6e94411f5 190 /**
Kojto 116:c0f6e94411f5 191 * @}
Kojto 116:c0f6e94411f5 192 */
Kojto 116:c0f6e94411f5 193
Kojto 116:c0f6e94411f5 194 /** @defgroup RTCEx_Time_Stamp_Edges_definitions RTC Extended Time Stamp Edges definition
Kojto 116:c0f6e94411f5 195 * @{
Kojto 116:c0f6e94411f5 196 */
Kojto 116:c0f6e94411f5 197 #define RTC_TIMESTAMPEDGE_RISING ((uint32_t)0x00000000)
Kojto 116:c0f6e94411f5 198 #define RTC_TIMESTAMPEDGE_FALLING RTC_CR_TSEDGE
Kojto 116:c0f6e94411f5 199
Kojto 116:c0f6e94411f5 200 #define IS_TIMESTAMP_EDGE(__EDGE__) (((__EDGE__) == RTC_TIMESTAMPEDGE_RISING) || \
Kojto 116:c0f6e94411f5 201 ((__EDGE__) == RTC_TIMESTAMPEDGE_FALLING))
Kojto 116:c0f6e94411f5 202 /**
Kojto 116:c0f6e94411f5 203 * @}
Kojto 116:c0f6e94411f5 204 */
Kojto 116:c0f6e94411f5 205
Kojto 116:c0f6e94411f5 206 /** @defgroup RTCEx_Tamper_Pins_Definitions RTC Extended Tamper Pins Definition
Kojto 116:c0f6e94411f5 207 * @{
Kojto 116:c0f6e94411f5 208 */
Kojto 116:c0f6e94411f5 209
Kojto 116:c0f6e94411f5 210 #define RTC_TAMPER_1 RTC_TAMPCR_TAMP1E
Kojto 116:c0f6e94411f5 211 #define RTC_TAMPER_2 RTC_TAMPCR_TAMP2E
Kojto 116:c0f6e94411f5 212
Kojto 116:c0f6e94411f5 213 #if defined (STM32L083xx) || defined (STM32L082xx) || defined (STM32L081xx) || \
Kojto 116:c0f6e94411f5 214 defined (STM32L073xx) || defined (STM32L072xx) || defined (STM32L071xx)
Kojto 116:c0f6e94411f5 215
Kojto 116:c0f6e94411f5 216 #define RTC_TAMPER_3 RTC_TAMPCR_TAMP3E
Kojto 116:c0f6e94411f5 217
Kojto 116:c0f6e94411f5 218 #endif /* (STM32L083xx) || (STM32L082xx) || (STM32L081xx) ||
Kojto 116:c0f6e94411f5 219 * (STM32L073xx) || (STM32L072xx) || (STM32L071xx)
Kojto 116:c0f6e94411f5 220 */
Kojto 116:c0f6e94411f5 221
Kojto 116:c0f6e94411f5 222 #define IS_RTC_TAMPER(__TAMPER__) ((((__TAMPER__) & ((uint32_t)(0xFFFFFFFF ^ RTC_TAMPCR_TAMPXE))) == 0x00) && ((__TAMPER__) != (uint32_t)RESET))
Kojto 116:c0f6e94411f5 223
Kojto 116:c0f6e94411f5 224 /**
Kojto 116:c0f6e94411f5 225 * @}
Kojto 116:c0f6e94411f5 226 */
Kojto 116:c0f6e94411f5 227
Kojto 116:c0f6e94411f5 228
Kojto 116:c0f6e94411f5 229 /** @defgroup RTCEx_Tamper_Interrupt_Definitions RTC Extended Tamper Interrupt Definitions
Kojto 116:c0f6e94411f5 230 * @{
Kojto 116:c0f6e94411f5 231 */
Kojto 116:c0f6e94411f5 232
Kojto 116:c0f6e94411f5 233 #define RTC_TAMPER1_INTERRUPT RTC_TAMPCR_TAMP1IE
Kojto 116:c0f6e94411f5 234 #define RTC_TAMPER2_INTERRUPT RTC_TAMPCR_TAMP2IE
Kojto 116:c0f6e94411f5 235 #define RTC_ALL_TAMPER_INTERRUPT RTC_TAMPCR_TAMPIE
Kojto 116:c0f6e94411f5 236
Kojto 116:c0f6e94411f5 237 #if defined (STM32L083xx) || defined (STM32L082xx) || defined (STM32L081xx) || \
Kojto 116:c0f6e94411f5 238 defined (STM32L073xx) || defined (STM32L072xx) || defined (STM32L071xx)
Kojto 116:c0f6e94411f5 239
Kojto 116:c0f6e94411f5 240 #define RTC_TAMPER3_INTERRUPT RTC_TAMPCR_TAMP3IE
Kojto 116:c0f6e94411f5 241 #define IS_RTC_TAMPER_INTERRUPT(__INTERRUPT__) (((__INTERRUPT__) == RTC_TAMPER1_INTERRUPT) || \
Kojto 116:c0f6e94411f5 242 ((__INTERRUPT__) == RTC_TAMPER2_INTERRUPT) || \
Kojto 116:c0f6e94411f5 243 ((__INTERRUPT__) == RTC_TAMPER3_INTERRUPT) || \
Kojto 116:c0f6e94411f5 244 ((__INTERRUPT__) == RTC_ALL_TAMPER_INTERRUPT ))
Kojto 116:c0f6e94411f5 245
Kojto 116:c0f6e94411f5 246 #else
Kojto 116:c0f6e94411f5 247
Kojto 116:c0f6e94411f5 248 #define IS_RTC_TAMPER_INTERRUPT(__INTERRUPT__) (((__INTERRUPT__) == RTC_TAMPER1_INTERRUPT) || \
Kojto 116:c0f6e94411f5 249 ((__INTERRUPT__) == RTC_TAMPER2_INTERRUPT) || \
Kojto 116:c0f6e94411f5 250 ((__INTERRUPT__) == RTC_ALL_TAMPER_INTERRUPT ))
Kojto 116:c0f6e94411f5 251
Kojto 116:c0f6e94411f5 252 #endif /* (STM32L083xx) || (STM32L082xx) || (STM32L081xx) ||
Kojto 116:c0f6e94411f5 253 * (STM32L073xx) || (STM32L072xx) || (STM32L071xx)
Kojto 116:c0f6e94411f5 254 */
Kojto 116:c0f6e94411f5 255
Kojto 116:c0f6e94411f5 256 /**
Kojto 116:c0f6e94411f5 257 * @}
Kojto 116:c0f6e94411f5 258 */
Kojto 116:c0f6e94411f5 259
Kojto 116:c0f6e94411f5 260 /** @defgroup RTCEx_TimeStamp_Pin_Selections RTC Extended TimeStamp Pin Selection
Kojto 116:c0f6e94411f5 261 * @{
Kojto 116:c0f6e94411f5 262 */
Kojto 116:c0f6e94411f5 263 #define RTC_TIMESTAMPPIN_PC13 ((uint32_t)0x00000000)
Kojto 116:c0f6e94411f5 264
Kojto 116:c0f6e94411f5 265 #define IS_RTC_TIMESTAMP_PIN(__PIN__) (((__PIN__) == RTC_TIMESTAMPPIN_PC13))
Kojto 116:c0f6e94411f5 266 /**
Kojto 116:c0f6e94411f5 267 * @}
Kojto 116:c0f6e94411f5 268 */
Kojto 116:c0f6e94411f5 269
Kojto 116:c0f6e94411f5 270 /** @defgroup RTCEx_Tamper_Trigger_Definitions RTC Extended Tamper Trigger Definition
Kojto 116:c0f6e94411f5 271 * @{
Kojto 116:c0f6e94411f5 272 */
Kojto 116:c0f6e94411f5 273 #define RTC_TAMPERTRIGGER_RISINGEDGE ((uint32_t)0x00000000)
Kojto 116:c0f6e94411f5 274 #define RTC_TAMPERTRIGGER_FALLINGEDGE RTC_TAMPCR_TAMP1TRG
Kojto 116:c0f6e94411f5 275 #define RTC_TAMPERTRIGGER_LOWLEVEL RTC_TAMPERTRIGGER_RISINGEDGE
Kojto 116:c0f6e94411f5 276 #define RTC_TAMPERTRIGGER_HIGHLEVEL RTC_TAMPERTRIGGER_FALLINGEDGE
Kojto 116:c0f6e94411f5 277
Kojto 116:c0f6e94411f5 278 #define IS_RTC_TAMPER_TRIGGER(__TRIGGER__) (((__TRIGGER__) == RTC_TAMPERTRIGGER_RISINGEDGE) || \
Kojto 116:c0f6e94411f5 279 ((__TRIGGER__) == RTC_TAMPERTRIGGER_FALLINGEDGE) || \
Kojto 116:c0f6e94411f5 280 ((__TRIGGER__) == RTC_TAMPERTRIGGER_LOWLEVEL) || \
Kojto 116:c0f6e94411f5 281 ((__TRIGGER__) == RTC_TAMPERTRIGGER_HIGHLEVEL))
Kojto 116:c0f6e94411f5 282
Kojto 116:c0f6e94411f5 283 /**
Kojto 116:c0f6e94411f5 284 * @}
Kojto 116:c0f6e94411f5 285 */
Kojto 116:c0f6e94411f5 286
Kojto 116:c0f6e94411f5 287 /** @defgroup RTCEx_Tamper_EraseBackUp_Definitions RTC Extended Tamper EraseBackUp Definitions
Kojto 116:c0f6e94411f5 288 * @{
Kojto 116:c0f6e94411f5 289 */
Kojto 116:c0f6e94411f5 290 #define RTC_TAMPER_ERASE_BACKUP_ENABLE ((uint32_t)0x00000000)
Kojto 116:c0f6e94411f5 291 #define RTC_TAMPER_ERASE_BACKUP_DISABLE RTC_TAMPCR_TAMP1NOERASE
Kojto 116:c0f6e94411f5 292
Kojto 116:c0f6e94411f5 293 #define IS_RTC_TAMPER_ERASE_MODE(__MODE__) (((__MODE__) == RTC_TAMPER_ERASE_BACKUP_ENABLE) || \
Kojto 116:c0f6e94411f5 294 ((__MODE__) == RTC_TAMPER_ERASE_BACKUP_DISABLE))
Kojto 116:c0f6e94411f5 295 /**
Kojto 116:c0f6e94411f5 296 * @}
Kojto 116:c0f6e94411f5 297 */
Kojto 116:c0f6e94411f5 298
Kojto 116:c0f6e94411f5 299 /** @defgroup RTCEx_Tamper_MaskFlag_Definitions RTC Extended Tamper MaskFlag Definitions
Kojto 116:c0f6e94411f5 300 * @{
Kojto 116:c0f6e94411f5 301 */
Kojto 116:c0f6e94411f5 302 #define RTC_TAMPERMASK_FLAG_DISABLE ((uint32_t)0x00000000)
Kojto 116:c0f6e94411f5 303 #define RTC_TAMPERMASK_FLAG_ENABLE RTC_TAMPCR_TAMP1MF
Kojto 116:c0f6e94411f5 304
Kojto 116:c0f6e94411f5 305 #define IS_RTC_TAMPER_MASKFLAG_STATE(__STATE__) (((__STATE__) == RTC_TAMPERMASK_FLAG_ENABLE ) || \
Kojto 116:c0f6e94411f5 306 ((__STATE__) == RTC_TAMPERMASK_FLAG_DISABLE))
Kojto 116:c0f6e94411f5 307 /**
Kojto 116:c0f6e94411f5 308 * @}
Kojto 116:c0f6e94411f5 309 */
Kojto 116:c0f6e94411f5 310
Kojto 116:c0f6e94411f5 311 /** @defgroup RTCEx_Tamper_Filter_Definitions RTC Extended Tamper Filter Definitions
Kojto 116:c0f6e94411f5 312 * @{
Kojto 116:c0f6e94411f5 313 */
Kojto 116:c0f6e94411f5 314 #define RTC_TAMPERFILTER_DISABLE ((uint32_t)0x00000000) /*!< Tamper filter is disabled */
Kojto 116:c0f6e94411f5 315
Kojto 116:c0f6e94411f5 316 #define RTC_TAMPERFILTER_2SAMPLE RTC_TAMPCR_TAMPFLT_0 /*!< Tamper is activated after 2
Kojto 116:c0f6e94411f5 317 consecutive samples at the active level */
Kojto 116:c0f6e94411f5 318 #define RTC_TAMPERFILTER_4SAMPLE RTC_TAMPCR_TAMPFLT_1 /*!< Tamper is activated after 4
Kojto 116:c0f6e94411f5 319 consecutive samples at the active level */
Kojto 116:c0f6e94411f5 320 #define RTC_TAMPERFILTER_8SAMPLE RTC_TAMPCR_TAMPFLT /*!< Tamper is activated after 8
Kojto 116:c0f6e94411f5 321 consecutive samples at the active leve. */
Kojto 116:c0f6e94411f5 322
Kojto 116:c0f6e94411f5 323 #define IS_RTC_TAMPER_FILTER(__FILTER__) (((__FILTER__) == RTC_TAMPERFILTER_DISABLE) || \
Kojto 116:c0f6e94411f5 324 ((__FILTER__) == RTC_TAMPERFILTER_2SAMPLE) || \
Kojto 116:c0f6e94411f5 325 ((__FILTER__) == RTC_TAMPERFILTER_4SAMPLE) || \
Kojto 116:c0f6e94411f5 326 ((__FILTER__) == RTC_TAMPERFILTER_8SAMPLE))
Kojto 116:c0f6e94411f5 327 /**
Kojto 116:c0f6e94411f5 328 * @}
Kojto 116:c0f6e94411f5 329 */
Kojto 116:c0f6e94411f5 330
Kojto 116:c0f6e94411f5 331 /** @defgroup RTCEx_Tamper_Sampling_Frequencies_Definitions RTC Extended Tamper Sampling Frequencies Definitions
Kojto 116:c0f6e94411f5 332 * @{
Kojto 116:c0f6e94411f5 333 */
Kojto 116:c0f6e94411f5 334 #define RTC_TAMPERSAMPLINGFREQ_RTCCLK_DIV32768 ((uint32_t)0x00000000) /*!< Each of the tamper inputs are sampled
Kojto 116:c0f6e94411f5 335 with a frequency = RTCCLK / 32768 */
Kojto 116:c0f6e94411f5 336 #define RTC_TAMPERSAMPLINGFREQ_RTCCLK_DIV16384 RTC_TAMPCR_TAMPFREQ_0 /*!< Each of the tamper inputs are sampled
Kojto 116:c0f6e94411f5 337 with a frequency = RTCCLK / 16384 */
Kojto 116:c0f6e94411f5 338 #define RTC_TAMPERSAMPLINGFREQ_RTCCLK_DIV8192 RTC_TAMPCR_TAMPFREQ_1 /*!< Each of the tamper inputs are sampled
Kojto 116:c0f6e94411f5 339 with a frequency = RTCCLK / 8192 */
Kojto 116:c0f6e94411f5 340 #define RTC_TAMPERSAMPLINGFREQ_RTCCLK_DIV4096 ((uint32_t) (RTC_TAMPCR_TAMPFREQ_0 | RTC_TAMPCR_TAMPFREQ_1)) /*!< Each of the tamper inputs are sampled
Kojto 116:c0f6e94411f5 341 with a frequency = RTCCLK / 4096 */
Kojto 116:c0f6e94411f5 342 #define RTC_TAMPERSAMPLINGFREQ_RTCCLK_DIV2048 RTC_TAMPCR_TAMPFREQ_2 /*!< Each of the tamper inputs are sampled
Kojto 116:c0f6e94411f5 343 with a frequency = RTCCLK / 2048 */
Kojto 116:c0f6e94411f5 344 #define RTC_TAMPERSAMPLINGFREQ_RTCCLK_DIV1024 ((uint32_t) (RTC_TAMPCR_TAMPFREQ_0 | RTC_TAMPCR_TAMPFREQ_2)) /*!< Each of the tamper inputs are sampled
Kojto 116:c0f6e94411f5 345 with a frequency = RTCCLK / 1024 */
Kojto 116:c0f6e94411f5 346 #define RTC_TAMPERSAMPLINGFREQ_RTCCLK_DIV512 ((uint32_t) (RTC_TAMPCR_TAMPFREQ_1 | RTC_TAMPCR_TAMPFREQ_2)) /*!< Each of the tamper inputs are sampled
Kojto 116:c0f6e94411f5 347 with a frequency = RTCCLK / 512 */
Kojto 116:c0f6e94411f5 348 #define RTC_TAMPERSAMPLINGFREQ_RTCCLK_DIV256 ((uint32_t) (RTC_TAMPCR_TAMPFREQ_0 | RTC_TAMPCR_TAMPFREQ_1 | \
Kojto 116:c0f6e94411f5 349 RTC_TAMPCR_TAMPFREQ_2)) /*!< Each of the tamper inputs are sampled
Kojto 116:c0f6e94411f5 350 with a frequency = RTCCLK / 256 */
Kojto 116:c0f6e94411f5 351
Kojto 116:c0f6e94411f5 352 #define IS_RTC_TAMPER_SAMPLING_FREQ(__FREQ__) (((__FREQ__) == RTC_TAMPERSAMPLINGFREQ_RTCCLK_DIV32768)|| \
Kojto 116:c0f6e94411f5 353 ((__FREQ__) == RTC_TAMPERSAMPLINGFREQ_RTCCLK_DIV16384)|| \
Kojto 116:c0f6e94411f5 354 ((__FREQ__) == RTC_TAMPERSAMPLINGFREQ_RTCCLK_DIV8192) || \
Kojto 116:c0f6e94411f5 355 ((__FREQ__) == RTC_TAMPERSAMPLINGFREQ_RTCCLK_DIV4096) || \
Kojto 116:c0f6e94411f5 356 ((__FREQ__) == RTC_TAMPERSAMPLINGFREQ_RTCCLK_DIV2048) || \
Kojto 116:c0f6e94411f5 357 ((__FREQ__) == RTC_TAMPERSAMPLINGFREQ_RTCCLK_DIV1024) || \
Kojto 116:c0f6e94411f5 358 ((__FREQ__) == RTC_TAMPERSAMPLINGFREQ_RTCCLK_DIV512) || \
Kojto 116:c0f6e94411f5 359 ((__FREQ__) == RTC_TAMPERSAMPLINGFREQ_RTCCLK_DIV256))
Kojto 116:c0f6e94411f5 360 /**
Kojto 116:c0f6e94411f5 361 * @}
Kojto 116:c0f6e94411f5 362 */
Kojto 116:c0f6e94411f5 363
Kojto 116:c0f6e94411f5 364 /** @defgroup RTCEx_Tamper_Pin_Precharge_Duration_Definitions RTC Extended Tamper Pin Precharge Duration Definitions
Kojto 116:c0f6e94411f5 365 * @{
Kojto 116:c0f6e94411f5 366 */
Kojto 116:c0f6e94411f5 367 #define RTC_TAMPERPRECHARGEDURATION_1RTCCLK ((uint32_t)0x00000000) /*!< Tamper pins are pre-charged before
Kojto 116:c0f6e94411f5 368 sampling during 1 RTCCLK cycle */
Kojto 116:c0f6e94411f5 369 #define RTC_TAMPERPRECHARGEDURATION_2RTCCLK RTC_TAMPCR_TAMPPRCH_0 /*!< Tamper pins are pre-charged before
Kojto 116:c0f6e94411f5 370 sampling during 2 RTCCLK cycles */
Kojto 116:c0f6e94411f5 371 #define RTC_TAMPERPRECHARGEDURATION_4RTCCLK RTC_TAMPCR_TAMPPRCH_1 /*!< Tamper pins are pre-charged before
Kojto 116:c0f6e94411f5 372 sampling during 4 RTCCLK cycles */
Kojto 116:c0f6e94411f5 373 #define RTC_TAMPERPRECHARGEDURATION_8RTCCLK ((uint32_t)(RTC_TAMPCR_TAMPPRCH_0 | RTC_TAMPCR_TAMPPRCH_1)) /*!< Tamper pins are pre-charged before
Kojto 116:c0f6e94411f5 374 sampling during 8 RTCCLK cycles */
Kojto 116:c0f6e94411f5 375
Kojto 116:c0f6e94411f5 376 #define IS_RTC_TAMPER_PRECHARGE_DURATION(__DURATION_) (((__DURATION_) == RTC_TAMPERPRECHARGEDURATION_1RTCCLK) || \
Kojto 116:c0f6e94411f5 377 ((__DURATION_) == RTC_TAMPERPRECHARGEDURATION_2RTCCLK) || \
Kojto 116:c0f6e94411f5 378 ((__DURATION_) == RTC_TAMPERPRECHARGEDURATION_4RTCCLK) || \
Kojto 116:c0f6e94411f5 379 ((__DURATION_) == RTC_TAMPERPRECHARGEDURATION_8RTCCLK))
Kojto 116:c0f6e94411f5 380 /**
Kojto 116:c0f6e94411f5 381 * @}
Kojto 116:c0f6e94411f5 382 */
Kojto 116:c0f6e94411f5 383
Kojto 116:c0f6e94411f5 384 /** @defgroup RTCEx_Tamper_TimeStampOnTamperDetection_Definitions RTC Extended Tamper TimeStampOnTamperDetection Definitions
Kojto 116:c0f6e94411f5 385 * @{
Kojto 116:c0f6e94411f5 386 */
Kojto 116:c0f6e94411f5 387 #define RTC_TIMESTAMPONTAMPERDETECTION_ENABLE RTC_TAMPCR_TAMPTS /*!< TimeStamp on Tamper Detection event saved */
Kojto 116:c0f6e94411f5 388 #define RTC_TIMESTAMPONTAMPERDETECTION_DISABLE ((uint32_t)0x00000000) /*!< TimeStamp on Tamper Detection event is not saved */
Kojto 116:c0f6e94411f5 389
Kojto 116:c0f6e94411f5 390 #define IS_RTC_TAMPER_TIMESTAMPONTAMPER_DETECTION(__DETECTION__) (((__DETECTION__) == RTC_TIMESTAMPONTAMPERDETECTION_ENABLE) || \
Kojto 116:c0f6e94411f5 391 ((__DETECTION__) == RTC_TIMESTAMPONTAMPERDETECTION_DISABLE))
Kojto 116:c0f6e94411f5 392 /**
Kojto 116:c0f6e94411f5 393 * @}
Kojto 116:c0f6e94411f5 394 */
Kojto 116:c0f6e94411f5 395
Kojto 116:c0f6e94411f5 396 /** @defgroup RTCEx_Tamper_Pull_UP_Definitions RTC Extended Tamper Pull UP Definitions
Kojto 116:c0f6e94411f5 397 * @{
Kojto 116:c0f6e94411f5 398 */
Kojto 116:c0f6e94411f5 399 #define RTC_TAMPER_PULLUP_ENABLE ((uint32_t)0x00000000) /*!< Tamper pins are pre-charged before sampling */
Kojto 116:c0f6e94411f5 400 #define RTC_TAMPER_PULLUP_DISABLE RTC_TAMPCR_TAMPPUDIS /*!< Tamper pins pre-charge is disabled */
Kojto 116:c0f6e94411f5 401
Kojto 116:c0f6e94411f5 402 #define IS_RTC_TAMPER_PULLUP_STATE(__STATE__) (((__STATE__) == RTC_TAMPER_PULLUP_ENABLE) || \
Kojto 116:c0f6e94411f5 403 ((__STATE__) == RTC_TAMPER_PULLUP_DISABLE))
Kojto 116:c0f6e94411f5 404 /**
Kojto 116:c0f6e94411f5 405 * @}
Kojto 116:c0f6e94411f5 406 */
Kojto 116:c0f6e94411f5 407
Kojto 116:c0f6e94411f5 408 /** @defgroup RTCEx_Wakeup_Timer_Definitions RTC Extended Wakeup Timer Definitions
Kojto 116:c0f6e94411f5 409 * @{
Kojto 116:c0f6e94411f5 410 */
Kojto 116:c0f6e94411f5 411 #define RTC_WAKEUPCLOCK_RTCCLK_DIV16 ((uint32_t)0x00000000)
Kojto 116:c0f6e94411f5 412 #define RTC_WAKEUPCLOCK_RTCCLK_DIV8 RTC_CR_WUCKSEL_0
Kojto 116:c0f6e94411f5 413 #define RTC_WAKEUPCLOCK_RTCCLK_DIV4 RTC_CR_WUCKSEL_1
Kojto 116:c0f6e94411f5 414 #define RTC_WAKEUPCLOCK_RTCCLK_DIV2 ((uint32_t) (RTC_CR_WUCKSEL_0 | RTC_CR_WUCKSEL_1))
Kojto 116:c0f6e94411f5 415 #define RTC_WAKEUPCLOCK_CK_SPRE_16BITS RTC_CR_WUCKSEL_2
Kojto 116:c0f6e94411f5 416 #define RTC_WAKEUPCLOCK_CK_SPRE_17BITS ((uint32_t) (RTC_CR_WUCKSEL_1 | RTC_CR_WUCKSEL_2))
Kojto 116:c0f6e94411f5 417
Kojto 116:c0f6e94411f5 418 #define IS_RTC_WAKEUP_CLOCK(__CLOCK__) (((__CLOCK__) == RTC_WAKEUPCLOCK_RTCCLK_DIV16) || \
Kojto 116:c0f6e94411f5 419 ((__CLOCK__) == RTC_WAKEUPCLOCK_RTCCLK_DIV8) || \
Kojto 116:c0f6e94411f5 420 ((__CLOCK__) == RTC_WAKEUPCLOCK_RTCCLK_DIV4) || \
Kojto 116:c0f6e94411f5 421 ((__CLOCK__) == RTC_WAKEUPCLOCK_RTCCLK_DIV2) || \
Kojto 116:c0f6e94411f5 422 ((__CLOCK__) == RTC_WAKEUPCLOCK_CK_SPRE_16BITS) || \
Kojto 116:c0f6e94411f5 423 ((__CLOCK__) == RTC_WAKEUPCLOCK_CK_SPRE_17BITS))
Kojto 116:c0f6e94411f5 424
Kojto 116:c0f6e94411f5 425 #define IS_RTC_WAKEUP_COUNTER(__COUNTER__) ((__COUNTER__) <= RTC_WUTR_WUT)
Kojto 116:c0f6e94411f5 426 /**
Kojto 116:c0f6e94411f5 427 * @}
Kojto 116:c0f6e94411f5 428 */
Kojto 116:c0f6e94411f5 429
Kojto 116:c0f6e94411f5 430 /** @defgroup RTCEx_Smooth_calib_period_Definitions RTC Extended Smooth calib period Definitions
Kojto 116:c0f6e94411f5 431 * @{
Kojto 116:c0f6e94411f5 432 */
Kojto 116:c0f6e94411f5 433 #define RTC_SMOOTHCALIB_PERIOD_32SEC ((uint32_t)0x00000000) /*!< If RTCCLK = 32768 Hz, Smooth calibation
Kojto 116:c0f6e94411f5 434 period is 32s, else 2exp20 RTCCLK pulses */
Kojto 116:c0f6e94411f5 435 #define RTC_SMOOTHCALIB_PERIOD_16SEC RTC_CAL_CALW16 /*!< If RTCCLK = 32768 Hz, Smooth calibation
Kojto 116:c0f6e94411f5 436 period is 16s, else 2exp19 RTCCLK pulses */
Kojto 116:c0f6e94411f5 437 #define RTC_SMOOTHCALIB_PERIOD_8SEC RTC_CAL_CALW8 /*!< If RTCCLK = 32768 Hz, Smooth calibation
Kojto 116:c0f6e94411f5 438 period is 8s, else 2exp18 RTCCLK pulses */
Kojto 116:c0f6e94411f5 439
Kojto 116:c0f6e94411f5 440 #define IS_RTC_SMOOTH_CALIB_PERIOD(__PERIOD__) (((__PERIOD__) == RTC_SMOOTHCALIB_PERIOD_32SEC) || \
Kojto 116:c0f6e94411f5 441 ((__PERIOD__) == RTC_SMOOTHCALIB_PERIOD_16SEC) || \
Kojto 116:c0f6e94411f5 442 ((__PERIOD__) == RTC_SMOOTHCALIB_PERIOD_8SEC))
Kojto 116:c0f6e94411f5 443 /**
Kojto 116:c0f6e94411f5 444 * @}
Kojto 116:c0f6e94411f5 445 */
Kojto 116:c0f6e94411f5 446
Kojto 116:c0f6e94411f5 447 /** @defgroup RTCEx_Smooth_calib_Plus_pulses_Definitions RTC Extended Smooth calib Plus pulses Definitions
Kojto 116:c0f6e94411f5 448 * @{
Kojto 116:c0f6e94411f5 449 */
Kojto 116:c0f6e94411f5 450 #define RTC_SMOOTHCALIB_PLUSPULSES_SET RTC_CAL_CALP /*!< The number of RTCCLK pulses added
Kojto 116:c0f6e94411f5 451 during a X -second window = Y - CALM[8:0]
Kojto 116:c0f6e94411f5 452 with Y = 512, 256, 128 when X = 32, 16, 8 */
Kojto 116:c0f6e94411f5 453 #define RTC_SMOOTHCALIB_PLUSPULSES_RESET ((uint32_t)0x00000000) /*!< The number of RTCCLK pulses subbstited
Kojto 116:c0f6e94411f5 454 during a 32-second window = CALM[8:0] */
Kojto 116:c0f6e94411f5 455
Kojto 116:c0f6e94411f5 456 #define IS_RTC_SMOOTH_CALIB_PLUS(__PLUS__) (((__PLUS__) == RTC_SMOOTHCALIB_PLUSPULSES_SET) || \
Kojto 116:c0f6e94411f5 457 ((__PLUS__) == RTC_SMOOTHCALIB_PLUSPULSES_RESET))
Kojto 116:c0f6e94411f5 458 /**
Kojto 116:c0f6e94411f5 459 * @}
Kojto 116:c0f6e94411f5 460 */
Kojto 116:c0f6e94411f5 461
Kojto 116:c0f6e94411f5 462 /** @defgroup RTCEx_Smooth_calib_Minus_pulses_Definitions RTC Extended Smooth calib Minus pulses Definitions
Kojto 116:c0f6e94411f5 463 * @{
Kojto 116:c0f6e94411f5 464 */
Kojto 116:c0f6e94411f5 465 #define IS_RTC_SMOOTH_CALIB_MINUS(__VALUE__) ((__VALUE__) <= RTC_CAL_CALM)
Kojto 116:c0f6e94411f5 466 /**
Kojto 116:c0f6e94411f5 467 * @}
Kojto 116:c0f6e94411f5 468 */
Kojto 116:c0f6e94411f5 469
Kojto 116:c0f6e94411f5 470 /** @defgroup RTCEx_Add_1_Second_Parameter_Definition RTC Extended Add 1 Second Parameter Definitions
Kojto 116:c0f6e94411f5 471 * @{
Kojto 116:c0f6e94411f5 472 */
Kojto 116:c0f6e94411f5 473 #define RTC_SHIFTADD1S_RESET ((uint32_t)0x00000000)
Kojto 116:c0f6e94411f5 474 #define RTC_SHIFTADD1S_SET RTC_SHIFTR_ADD1S
Kojto 116:c0f6e94411f5 475
Kojto 116:c0f6e94411f5 476 #define IS_RTC_SHIFT_ADD1S(__SEL__) (((__SEL__) == RTC_SHIFTADD1S_RESET) || \
Kojto 116:c0f6e94411f5 477 ((__SEL__) == RTC_SHIFTADD1S_SET))
Kojto 116:c0f6e94411f5 478 /**
Kojto 116:c0f6e94411f5 479 * @}
Kojto 116:c0f6e94411f5 480 */
Kojto 116:c0f6e94411f5 481
Kojto 116:c0f6e94411f5 482 /** @defgroup RTCEx_Substract_Fraction_Of_Second_Value RTC Extended Substract Fraction Of Second Value
Kojto 116:c0f6e94411f5 483 * @{
Kojto 116:c0f6e94411f5 484 */
Kojto 116:c0f6e94411f5 485 #define IS_RTC_SHIFT_SUBFS(__FS__) ((__FS__) <= RTC_SHIFTR_SUBFS)
Kojto 116:c0f6e94411f5 486 /**
Kojto 116:c0f6e94411f5 487 * @}
Kojto 116:c0f6e94411f5 488 */
Kojto 116:c0f6e94411f5 489
Kojto 116:c0f6e94411f5 490 /** @defgroup RTCEx_Calib_Output_selection_Definitions RTC Extended Calib Output selection Definitions
Kojto 116:c0f6e94411f5 491 * @{
Kojto 116:c0f6e94411f5 492 */
Kojto 116:c0f6e94411f5 493 #define RTC_CALIBOUTPUT_512HZ ((uint32_t)0x00000000)
Kojto 116:c0f6e94411f5 494 #define RTC_CALIBOUTPUT_1HZ RTC_CR_COSEL
Kojto 116:c0f6e94411f5 495
Kojto 116:c0f6e94411f5 496 #define IS_RTC_CALIB_OUTPUT(__OUTPUT__) (((__OUTPUT__) == RTC_CALIBOUTPUT_512HZ) || \
Kojto 116:c0f6e94411f5 497 ((__OUTPUT__) == RTC_CALIBOUTPUT_1HZ))
Kojto 116:c0f6e94411f5 498 /**
Kojto 116:c0f6e94411f5 499 * @}
Kojto 116:c0f6e94411f5 500 */
Kojto 116:c0f6e94411f5 501
Kojto 116:c0f6e94411f5 502 /**
Kojto 116:c0f6e94411f5 503 * @}
Kojto 116:c0f6e94411f5 504 */
Kojto 116:c0f6e94411f5 505
Kojto 116:c0f6e94411f5 506 /* Exported macro ------------------------------------------------------------*/
Kojto 116:c0f6e94411f5 507 /** @defgroup RTCEx_Exported_Macros RTC Extended Exported Macros
Kojto 116:c0f6e94411f5 508 * @{
Kojto 116:c0f6e94411f5 509 */
Kojto 116:c0f6e94411f5 510
Kojto 116:c0f6e94411f5 511 /**
Kojto 116:c0f6e94411f5 512 * @brief Enable the RTC WakeUp Timer peripheral.
Kojto 116:c0f6e94411f5 513 * @param __HANDLE__: specifies the RTC handle.
Kojto 116:c0f6e94411f5 514 * @retval None
Kojto 116:c0f6e94411f5 515 */
Kojto 116:c0f6e94411f5 516 #define __HAL_RTC_WAKEUPTIMER_ENABLE(__HANDLE__) ((__HANDLE__)->Instance->CR |= (RTC_CR_WUTE))
Kojto 116:c0f6e94411f5 517
Kojto 116:c0f6e94411f5 518 /**
Kojto 116:c0f6e94411f5 519 * @brief Enable the RTC TimeStamp peripheral.
Kojto 116:c0f6e94411f5 520 * @param __HANDLE__: specifies the RTC handle.
Kojto 116:c0f6e94411f5 521 * @retval None
Kojto 116:c0f6e94411f5 522 */
Kojto 116:c0f6e94411f5 523 #define __HAL_RTC_TIMESTAMP_ENABLE(__HANDLE__) ((__HANDLE__)->Instance->CR |= (RTC_CR_TSE))
Kojto 116:c0f6e94411f5 524
Kojto 116:c0f6e94411f5 525 /**
Kojto 116:c0f6e94411f5 526 * @brief Disable the RTC WakeUp Timer peripheral.
Kojto 116:c0f6e94411f5 527 * @param __HANDLE__: specifies the RTC handle.
Kojto 116:c0f6e94411f5 528 * @retval None
Kojto 116:c0f6e94411f5 529 */
Kojto 116:c0f6e94411f5 530 #define __HAL_RTC_WAKEUPTIMER_DISABLE(__HANDLE__) ((__HANDLE__)->Instance->CR &= ~(RTC_CR_WUTE))
Kojto 116:c0f6e94411f5 531
Kojto 116:c0f6e94411f5 532 /**
Kojto 116:c0f6e94411f5 533 * @brief Disable the RTC TimeStamp peripheral.
Kojto 116:c0f6e94411f5 534 * @param __HANDLE__: specifies the RTC handle.
Kojto 116:c0f6e94411f5 535 * @retval None
Kojto 116:c0f6e94411f5 536 */
Kojto 116:c0f6e94411f5 537 #define __HAL_RTC_TIMESTAMP_DISABLE(__HANDLE__) ((__HANDLE__)->Instance->CR &= ~(RTC_CR_TSE))
Kojto 116:c0f6e94411f5 538
Kojto 116:c0f6e94411f5 539 /**
Kojto 116:c0f6e94411f5 540 * @brief Enable the RTC calibration output.
Kojto 116:c0f6e94411f5 541 * @param __HANDLE__: specifies the RTC handle.
Kojto 116:c0f6e94411f5 542 * @retval None
Kojto 116:c0f6e94411f5 543 */
Kojto 116:c0f6e94411f5 544 #define __HAL_RTC_CALIBRATION_OUTPUT_ENABLE(__HANDLE__) ((__HANDLE__)->Instance->CR |= (RTC_CR_COE))
Kojto 116:c0f6e94411f5 545
Kojto 116:c0f6e94411f5 546 /**
Kojto 116:c0f6e94411f5 547 * @brief Disable the calibration output.
Kojto 116:c0f6e94411f5 548 * @param __HANDLE__: specifies the RTC handle.
Kojto 116:c0f6e94411f5 549 * @retval None
Kojto 116:c0f6e94411f5 550 */
Kojto 116:c0f6e94411f5 551 #define __HAL_RTC_CALIBRATION_OUTPUT_DISABLE(__HANDLE__) ((__HANDLE__)->Instance->CR &= ~(RTC_CR_COE))
Kojto 116:c0f6e94411f5 552
Kojto 116:c0f6e94411f5 553 /**
Kojto 116:c0f6e94411f5 554 * @brief Enable the clock reference detection.
Kojto 116:c0f6e94411f5 555 * @param __HANDLE__: specifies the RTC handle.
Kojto 116:c0f6e94411f5 556 * @retval None
Kojto 116:c0f6e94411f5 557 */
Kojto 116:c0f6e94411f5 558 #define __HAL_RTC_CLOCKREF_DETECTION_ENABLE(__HANDLE__) ((__HANDLE__)->Instance->CR |= (RTC_CR_REFCKON))
Kojto 116:c0f6e94411f5 559
Kojto 116:c0f6e94411f5 560 /**
Kojto 116:c0f6e94411f5 561 * @brief Disable the clock reference detection.
Kojto 116:c0f6e94411f5 562 * @param __HANDLE__: specifies the RTC handle.
Kojto 116:c0f6e94411f5 563 * @retval None
Kojto 116:c0f6e94411f5 564 */
Kojto 116:c0f6e94411f5 565 #define __HAL_RTC_CLOCKREF_DETECTION_DISABLE(__HANDLE__) ((__HANDLE__)->Instance->CR &= ~(RTC_CR_REFCKON))
Kojto 116:c0f6e94411f5 566
Kojto 116:c0f6e94411f5 567 /**
Kojto 116:c0f6e94411f5 568 * @brief Enable the RTC TimeStamp interrupt.
Kojto 116:c0f6e94411f5 569 * @param __HANDLE__: specifies the RTC handle.
Kojto 116:c0f6e94411f5 570 * @param __INTERRUPT__: specifies the RTC TimeStamp interrupt sources to be enabled or disabled.
Kojto 116:c0f6e94411f5 571 * This parameter can be:
Kojto 116:c0f6e94411f5 572 * @arg RTC_IT_TS: TimeStamp interrupt
Kojto 116:c0f6e94411f5 573 * @retval None
Kojto 116:c0f6e94411f5 574 */
Kojto 116:c0f6e94411f5 575 #define __HAL_RTC_TIMESTAMP_ENABLE_IT(__HANDLE__, __INTERRUPT__) ((__HANDLE__)->Instance->CR |= (__INTERRUPT__))
Kojto 116:c0f6e94411f5 576
Kojto 116:c0f6e94411f5 577 /**
Kojto 116:c0f6e94411f5 578 * @brief Enable the RTC WakeUpTimer interrupt.
Kojto 116:c0f6e94411f5 579 * @param __HANDLE__: specifies the RTC handle.
Kojto 116:c0f6e94411f5 580 * @param __INTERRUPT__: specifies the RTC WakeUpTimer interrupt sources to be enabled or disabled.
Kojto 116:c0f6e94411f5 581 * This parameter can be:
Kojto 116:c0f6e94411f5 582 * @arg RTC_IT_WUT: WakeUpTimer A interrupt
Kojto 116:c0f6e94411f5 583 * @retval None
Kojto 116:c0f6e94411f5 584 */
Kojto 116:c0f6e94411f5 585 #define __HAL_RTC_WAKEUPTIMER_ENABLE_IT(__HANDLE__, __INTERRUPT__) ((__HANDLE__)->Instance->CR |= (__INTERRUPT__))
Kojto 116:c0f6e94411f5 586
Kojto 116:c0f6e94411f5 587 /**
Kojto 116:c0f6e94411f5 588 * @brief Disable the RTC TimeStamp interrupt.
Kojto 116:c0f6e94411f5 589 * @param __HANDLE__: specifies the RTC handle.
Kojto 116:c0f6e94411f5 590 * @param __INTERRUPT__: specifies the RTC TimeStamp interrupt sources to be enabled or disabled.
Kojto 116:c0f6e94411f5 591 * This parameter can be:
Kojto 116:c0f6e94411f5 592 * @arg RTC_IT_TS: TimeStamp interrupt
Kojto 116:c0f6e94411f5 593 * @retval None
Kojto 116:c0f6e94411f5 594 */
Kojto 116:c0f6e94411f5 595 #define __HAL_RTC_TIMESTAMP_DISABLE_IT(__HANDLE__, __INTERRUPT__) ((__HANDLE__)->Instance->CR &= ~(__INTERRUPT__))
Kojto 116:c0f6e94411f5 596
Kojto 116:c0f6e94411f5 597 /**
Kojto 116:c0f6e94411f5 598 * @brief Disable the RTC WakeUpTimer interrupt.
Kojto 116:c0f6e94411f5 599 * @param __HANDLE__: specifies the RTC handle.
Kojto 116:c0f6e94411f5 600 * @param __INTERRUPT__: specifies the RTC WakeUpTimer interrupt sources to be enabled or disabled.
Kojto 116:c0f6e94411f5 601 * This parameter can be:
Kojto 116:c0f6e94411f5 602 * @arg RTC_IT_WUT: WakeUpTimer A interrupt
Kojto 116:c0f6e94411f5 603 * @retval None
Kojto 116:c0f6e94411f5 604 */
Kojto 116:c0f6e94411f5 605 #define __HAL_RTC_WAKEUPTIMER_DISABLE_IT(__HANDLE__, __INTERRUPT__) ((__HANDLE__)->Instance->CR &= ~(__INTERRUPT__))
Kojto 116:c0f6e94411f5 606
Kojto 116:c0f6e94411f5 607 /**
Kojto 116:c0f6e94411f5 608 * @brief Check whether the specified RTC Tamper interrupt has occurred or not.
Kojto 116:c0f6e94411f5 609 * @param __HANDLE__: specifies the RTC handle.
Kojto 116:c0f6e94411f5 610 * @param __FLAG__: specifies the RTC Tamper interrupt sources to be enabled or disabled.
Kojto 116:c0f6e94411f5 611 * This parameter can be:
Kojto 116:c0f6e94411f5 612 * @arg RTC_IT_TAMP1
Kojto 116:c0f6e94411f5 613 * @retval None
Kojto 116:c0f6e94411f5 614 */
Kojto 116:c0f6e94411f5 615 #define __HAL_RTC_TAMPER_GET_IT(__HANDLE__, __FLAG__) (((((__HANDLE__)->Instance->ISR) & ((__FLAG__)>> 4)) != RESET)? SET : RESET)
Kojto 116:c0f6e94411f5 616
Kojto 116:c0f6e94411f5 617 /**
Kojto 116:c0f6e94411f5 618 * @brief Check whether the specified RTC WakeUpTimer interrupt has occurred or not.
Kojto 116:c0f6e94411f5 619 * @param __HANDLE__: specifies the RTC handle.
Kojto 116:c0f6e94411f5 620 * @param __FLAG__: specifies the RTC WakeUpTimer interrupt sources to be enabled or disabled.
Kojto 116:c0f6e94411f5 621 * This parameter can be:
Kojto 116:c0f6e94411f5 622 * @arg RTC_IT_WUT: WakeUpTimer A interrupt
Kojto 116:c0f6e94411f5 623 * @retval None
Kojto 116:c0f6e94411f5 624 */
Kojto 116:c0f6e94411f5 625 #define __HAL_RTC_WAKEUPTIMER_GET_IT(__HANDLE__, __FLAG__) (((((__HANDLE__)->Instance->ISR) & ((__FLAG__)>> 4)) != RESET)? SET : RESET)
Kojto 116:c0f6e94411f5 626
Kojto 116:c0f6e94411f5 627 /**
Kojto 116:c0f6e94411f5 628 * @brief Check whether the specified RTC TimeStamp interrupt has occurred or not.
Kojto 116:c0f6e94411f5 629 * @param __HANDLE__: specifies the RTC handle.
Kojto 116:c0f6e94411f5 630 * @param __FLAG__: specifies the RTC TimeStamp interrupt sources to be enabled or disabled.
Kojto 116:c0f6e94411f5 631 * This parameter can be:
Kojto 116:c0f6e94411f5 632 * @arg RTC_IT_TS: TimeStamp interrupt
Kojto 116:c0f6e94411f5 633 * @retval None
Kojto 116:c0f6e94411f5 634 */
Kojto 116:c0f6e94411f5 635 #define __HAL_RTC_TIMESTAMP_GET_IT(__HANDLE__, __FLAG__) (((((__HANDLE__)->Instance->ISR) & ((__FLAG__)>> 4)) != RESET)? SET : RESET)
Kojto 116:c0f6e94411f5 636
Kojto 116:c0f6e94411f5 637 /**
Kojto 116:c0f6e94411f5 638 * @brief Get the selected RTC TimeStamp's flag status.
Kojto 116:c0f6e94411f5 639 * @param __HANDLE__: specifies the RTC handle.
Kojto 116:c0f6e94411f5 640 * @param __FLAG__: specifies the RTC TimeStamp Flag sources to be enabled or disabled.
Kojto 116:c0f6e94411f5 641 * This parameter can be:
Kojto 116:c0f6e94411f5 642 * @arg RTC_FLAG_TSF
Kojto 116:c0f6e94411f5 643 * @arg RTC_FLAG_TSOVF
Kojto 116:c0f6e94411f5 644 * @retval None
Kojto 116:c0f6e94411f5 645 */
Kojto 116:c0f6e94411f5 646 #define __HAL_RTC_TIMESTAMP_GET_FLAG(__HANDLE__, __FLAG__) (((((__HANDLE__)->Instance->ISR) & (__FLAG__)) != RESET)? SET : RESET)
Kojto 116:c0f6e94411f5 647
Kojto 116:c0f6e94411f5 648 /**
Kojto 116:c0f6e94411f5 649 * @brief Get the selected RTC WakeUpTimer's flag status.
Kojto 116:c0f6e94411f5 650 * @param __HANDLE__: specifies the RTC handle.
Kojto 116:c0f6e94411f5 651 * @param __FLAG__: specifies the RTC WakeUpTimer Flag sources to be enabled or disabled.
Kojto 116:c0f6e94411f5 652 * This parameter can be:
Kojto 116:c0f6e94411f5 653 * @arg RTC_FLAG_WUTF
Kojto 116:c0f6e94411f5 654 * @arg RTC_FLAG_WUTWF
Kojto 116:c0f6e94411f5 655 * @retval None
Kojto 116:c0f6e94411f5 656 */
Kojto 116:c0f6e94411f5 657 #define __HAL_RTC_WAKEUPTIMER_GET_FLAG(__HANDLE__, __FLAG__) (((((__HANDLE__)->Instance->ISR) & (__FLAG__)) != RESET)? SET : RESET)
Kojto 116:c0f6e94411f5 658
Kojto 116:c0f6e94411f5 659 /**
Kojto 116:c0f6e94411f5 660 * @brief Get the selected RTC Tamper's flag status.
Kojto 116:c0f6e94411f5 661 * @param __HANDLE__: specifies the RTC handle.
Kojto 116:c0f6e94411f5 662 * @param __FLAG__: specifies the RTC Tamper Flag sources to be enabled or disabled.
Kojto 116:c0f6e94411f5 663 * This parameter can be:
Kojto 116:c0f6e94411f5 664 * @arg RTC_FLAG_TAMP1F
Kojto 116:c0f6e94411f5 665 * @retval None
Kojto 116:c0f6e94411f5 666 */
Kojto 116:c0f6e94411f5 667 #define __HAL_RTC_TAMPER_GET_FLAG(__HANDLE__, __FLAG__) (((((__HANDLE__)->Instance->ISR) & (__FLAG__)) != RESET)? SET : RESET)
Kojto 116:c0f6e94411f5 668
Kojto 116:c0f6e94411f5 669 /**
Kojto 116:c0f6e94411f5 670 * @brief Get the selected RTC shift operation's flag status.
Kojto 116:c0f6e94411f5 671 * @param __HANDLE__: specifies the RTC handle.
Kojto 116:c0f6e94411f5 672 * @param __FLAG__: specifies the RTC shift operation Flag is pending or not.
Kojto 116:c0f6e94411f5 673 * This parameter can be:
Kojto 116:c0f6e94411f5 674 * @arg RTC_FLAG_SHPF
Kojto 116:c0f6e94411f5 675 * @retval None
Kojto 116:c0f6e94411f5 676 */
Kojto 116:c0f6e94411f5 677 #define __HAL_RTC_SHIFT_GET_FLAG(__HANDLE__, __FLAG__) (((((__HANDLE__)->Instance->ISR) & (__FLAG__)) != RESET)? SET : RESET)
Kojto 116:c0f6e94411f5 678
Kojto 116:c0f6e94411f5 679 /**
Kojto 116:c0f6e94411f5 680 * @brief Clear the RTC Time Stamp's pending flags.
Kojto 116:c0f6e94411f5 681 * @param __HANDLE__: specifies the RTC handle.
Kojto 116:c0f6e94411f5 682 * @param __FLAG__: specifies the RTC Alarm Flag sources to be enabled or disabled.
Kojto 116:c0f6e94411f5 683 * This parameter can be:
Kojto 116:c0f6e94411f5 684 * @arg RTC_FLAG_TSF
Kojto 116:c0f6e94411f5 685 * @retval None
Kojto 116:c0f6e94411f5 686 */
Kojto 116:c0f6e94411f5 687 #define __HAL_RTC_TIMESTAMP_CLEAR_FLAG(__HANDLE__, __FLAG__) ((__HANDLE__)->Instance->ISR) = (~(((__FLAG__) | RTC_ISR_INIT)& RTC_FLAGS_MASK)|((__HANDLE__)->Instance->ISR & RTC_ISR_INIT))
Kojto 116:c0f6e94411f5 688
Kojto 116:c0f6e94411f5 689 /**
Kojto 116:c0f6e94411f5 690 * @brief Clear the RTC Tamper's pending flags.
Kojto 116:c0f6e94411f5 691 * @param __HANDLE__: specifies the RTC handle.
Kojto 116:c0f6e94411f5 692 * @param __FLAG__: specifies the RTC Tamper Flag sources to be enabled or disabled.
Kojto 116:c0f6e94411f5 693 * This parameter can be:
Kojto 116:c0f6e94411f5 694 * @arg RTC_FLAG_TAMP1F
Kojto 116:c0f6e94411f5 695 * @retval None
Kojto 116:c0f6e94411f5 696 */
Kojto 116:c0f6e94411f5 697 #define __HAL_RTC_TAMPER_CLEAR_FLAG(__HANDLE__, __FLAG__) ((__HANDLE__)->Instance->ISR) = (~(((__FLAG__) | RTC_ISR_INIT)& RTC_FLAGS_MASK)|((__HANDLE__)->Instance->ISR & RTC_ISR_INIT))
Kojto 116:c0f6e94411f5 698
Kojto 116:c0f6e94411f5 699 /**
Kojto 116:c0f6e94411f5 700 * @brief Clear the RTC Wake Up timer's pending flags.
Kojto 116:c0f6e94411f5 701 * @param __HANDLE__: specifies the RTC handle.
Kojto 116:c0f6e94411f5 702 * @param __FLAG__: specifies the RTC Tamper Flag sources to be enabled or disabled.
Kojto 116:c0f6e94411f5 703 * This parameter can be:
Kojto 116:c0f6e94411f5 704 * @arg RTC_FLAG_WUTF
Kojto 116:c0f6e94411f5 705 * @retval None
Kojto 116:c0f6e94411f5 706 */
Kojto 116:c0f6e94411f5 707 #define __HAL_RTC_WAKEUPTIMER_CLEAR_FLAG(__HANDLE__, __FLAG__) ((__HANDLE__)->Instance->ISR) = (~(((__FLAG__) | RTC_ISR_INIT)& RTC_FLAGS_MASK)|((__HANDLE__)->Instance->ISR & RTC_ISR_INIT))
Kojto 116:c0f6e94411f5 708
Kojto 116:c0f6e94411f5 709 /* WAKE-UP TIMER EXTI */
Kojto 116:c0f6e94411f5 710 /* ------------------ */
Kojto 116:c0f6e94411f5 711 /**
Kojto 116:c0f6e94411f5 712 * @brief Enable interrupt on the RTC WakeUp Timer associated Exti line.
Kojto 116:c0f6e94411f5 713 * @retval None
Kojto 116:c0f6e94411f5 714 */
Kojto 116:c0f6e94411f5 715 #define __HAL_RTC_WAKEUPTIMER_EXTI_ENABLE_IT() (EXTI->IMR |= RTC_EXTI_LINE_WAKEUPTIMER_EVENT)
Kojto 116:c0f6e94411f5 716
Kojto 116:c0f6e94411f5 717 /**
Kojto 116:c0f6e94411f5 718 * @brief Disable interrupt on the RTC WakeUp Timer associated Exti line.
Kojto 116:c0f6e94411f5 719 * @retval None
Kojto 116:c0f6e94411f5 720 */
Kojto 116:c0f6e94411f5 721 #define __HAL_RTC_WAKEUPTIMER_EXTI_DISABLE_IT() (EXTI->IMR &= ~(RTC_EXTI_LINE_WAKEUPTIMER_EVENT))
Kojto 116:c0f6e94411f5 722
Kojto 116:c0f6e94411f5 723 /**
Kojto 116:c0f6e94411f5 724 * @brief Enable event on the RTC WakeUp Timer associated Exti line.
Kojto 116:c0f6e94411f5 725 * @retval None.
Kojto 116:c0f6e94411f5 726 */
Kojto 116:c0f6e94411f5 727 #define __HAL_RTC_WAKEUPTIMER_EXTI_ENABLE_EVENT() (EXTI->EMR |= RTC_EXTI_LINE_WAKEUPTIMER_EVENT)
Kojto 116:c0f6e94411f5 728
Kojto 116:c0f6e94411f5 729 /**
Kojto 116:c0f6e94411f5 730 * @brief Disable event on the RTC WakeUp Timer associated Exti line.
Kojto 116:c0f6e94411f5 731 * @retval None.
Kojto 116:c0f6e94411f5 732 */
Kojto 116:c0f6e94411f5 733 #define __HAL_RTC_WAKEUPTIMER_EXTI_DISABLE_EVENT() (EXTI->EMR &= ~(RTC_EXTI_LINE_WAKEUPTIMER_EVENT))
Kojto 116:c0f6e94411f5 734
Kojto 116:c0f6e94411f5 735 /**
Kojto 116:c0f6e94411f5 736 * @brief Enable falling edge trigger on the RTC WakeUp Timer associated Exti line.
Kojto 116:c0f6e94411f5 737 * @retval None.
Kojto 116:c0f6e94411f5 738 */
Kojto 116:c0f6e94411f5 739 #define __HAL_RTC_WAKEUPTIMER_EXTI_ENABLE_FALLING_EDGE() (EXTI->FTSR |= RTC_EXTI_LINE_WAKEUPTIMER_EVENT)
Kojto 116:c0f6e94411f5 740
Kojto 116:c0f6e94411f5 741 /**
Kojto 116:c0f6e94411f5 742 * @brief Disable falling edge trigger on the RTC WakeUp Timer associated Exti line.
Kojto 116:c0f6e94411f5 743 * @retval None.
Kojto 116:c0f6e94411f5 744 */
Kojto 116:c0f6e94411f5 745 #define __HAL_RTC_WAKEUPTIMER_EXTI_DISABLE_FALLING_EDGE() (EXTI->FTSR &= ~(RTC_EXTI_LINE_WAKEUPTIMER_EVENT))
Kojto 116:c0f6e94411f5 746
Kojto 116:c0f6e94411f5 747 /**
Kojto 116:c0f6e94411f5 748 * @brief Enable rising edge trigger on the RTC WakeUp Timer associated Exti line.
Kojto 116:c0f6e94411f5 749 * @retval None.
Kojto 116:c0f6e94411f5 750 */
Kojto 116:c0f6e94411f5 751 #define __HAL_RTC_WAKEUPTIMER_EXTI_ENABLE_RISING_EDGE() (EXTI->RTSR |= RTC_EXTI_LINE_WAKEUPTIMER_EVENT)
Kojto 116:c0f6e94411f5 752
Kojto 116:c0f6e94411f5 753 /**
Kojto 116:c0f6e94411f5 754 * @brief Disable rising edge trigger on the RTC WakeUp Timer associated Exti line.
Kojto 116:c0f6e94411f5 755 * @retval None.
Kojto 116:c0f6e94411f5 756 */
Kojto 116:c0f6e94411f5 757 #define __HAL_RTC_WAKEUPTIMER_EXTI_DISABLE_RISING_EDGE() (EXTI->RTSR &= ~(RTC_EXTI_LINE_WAKEUPTIMER_EVENT))
Kojto 116:c0f6e94411f5 758
Kojto 116:c0f6e94411f5 759 /**
Kojto 116:c0f6e94411f5 760 * @brief Enable rising & falling edge trigger on the RTC WakeUp Timer associated Exti line.
Kojto 116:c0f6e94411f5 761 * @retval None.
Kojto 116:c0f6e94411f5 762 */
Kojto 116:c0f6e94411f5 763 #define __HAL_RTC_WAKEUPTIMER_EXTI_ENABLE_RISING_FALLING_EDGE() __HAL_RTC_WAKEUPTIMER_EXTI_ENABLE_RISING_EDGE();__HAL_RTC_WAKEUPTIMER_EXTI_ENABLE_FALLING_EDGE();
Kojto 116:c0f6e94411f5 764
Kojto 116:c0f6e94411f5 765 /**
Kojto 116:c0f6e94411f5 766 * @brief Disable rising & falling edge trigger on the RTC WakeUp Timer associated Exti line.
Kojto 116:c0f6e94411f5 767 * This parameter can be:
Kojto 116:c0f6e94411f5 768 * @retval None.
Kojto 116:c0f6e94411f5 769 */
Kojto 116:c0f6e94411f5 770 #define __HAL_RTC_WAKEUPTIMER_EXTI_DISABLE_RISING_FALLING_EDGE() __HAL_RTC_WAKEUPTIMER_EXTI_DISABLE_RISING_EDGE();__HAL_RTC_WAKEUPTIMER_EXTI_DISABLE_FALLING_EDGE();
Kojto 116:c0f6e94411f5 771
Kojto 116:c0f6e94411f5 772 /**
Kojto 116:c0f6e94411f5 773 * @brief Check whether the RTC WakeUp Timer associated Exti line interrupt flag is set or not.
Kojto 116:c0f6e94411f5 774 * @retval Line Status.
Kojto 116:c0f6e94411f5 775 */
Kojto 116:c0f6e94411f5 776 #define __HAL_RTC_WAKEUPTIMER_EXTI_GET_FLAG() (EXTI->PR & RTC_EXTI_LINE_WAKEUPTIMER_EVENT)
Kojto 116:c0f6e94411f5 777
Kojto 116:c0f6e94411f5 778 /**
Kojto 116:c0f6e94411f5 779 * @brief Clear the RTC WakeUp Timer associated Exti line flag.
Kojto 116:c0f6e94411f5 780 * @retval None.
Kojto 116:c0f6e94411f5 781 */
Kojto 116:c0f6e94411f5 782 #define __HAL_RTC_WAKEUPTIMER_EXTI_CLEAR_FLAG() (EXTI->PR = RTC_EXTI_LINE_WAKEUPTIMER_EVENT)
Kojto 116:c0f6e94411f5 783
Kojto 116:c0f6e94411f5 784 /**
Kojto 116:c0f6e94411f5 785 * @brief Generate a Software interrupt on the RTC WakeUp Timer associated Exti line.
Kojto 116:c0f6e94411f5 786 * @retval None.
Kojto 116:c0f6e94411f5 787 */
Kojto 116:c0f6e94411f5 788 #define __HAL_RTC_WAKEUPTIMER_EXTI_GENERATE_SWIT() (EXTI->SWIER |= RTC_EXTI_LINE_WAKEUPTIMER_EVENT)
Kojto 116:c0f6e94411f5 789
Kojto 116:c0f6e94411f5 790
Kojto 116:c0f6e94411f5 791 /* TAMPER TIMESTAMP EXTI */
Kojto 116:c0f6e94411f5 792 /* --------------------- */
Kojto 116:c0f6e94411f5 793 /**
Kojto 116:c0f6e94411f5 794 * @brief Enable interrupt on the RTC Tamper and Timestamp associated Exti line.
Kojto 116:c0f6e94411f5 795 * @retval None
Kojto 116:c0f6e94411f5 796 */
Kojto 116:c0f6e94411f5 797 #define __HAL_RTC_TAMPER_TIMESTAMP_EXTI_ENABLE_IT() (EXTI->IMR |= RTC_EXTI_LINE_TAMPER_TIMESTAMP_EVENT)
Kojto 116:c0f6e94411f5 798
Kojto 116:c0f6e94411f5 799 /**
Kojto 116:c0f6e94411f5 800 * @brief Disable interrupt on the RTC Tamper and Timestamp associated Exti line.
Kojto 116:c0f6e94411f5 801 * @retval None
Kojto 116:c0f6e94411f5 802 */
Kojto 116:c0f6e94411f5 803 #define __HAL_RTC_TAMPER_TIMESTAMP_EXTI_DISABLE_IT() (EXTI->IMR &= ~(RTC_EXTI_LINE_TAMPER_TIMESTAMP_EVENT))
Kojto 116:c0f6e94411f5 804
Kojto 116:c0f6e94411f5 805 /**
Kojto 116:c0f6e94411f5 806 * @brief Enable event on the RTC Tamper and Timestamp associated Exti line.
Kojto 116:c0f6e94411f5 807 * @retval None.
Kojto 116:c0f6e94411f5 808 */
Kojto 116:c0f6e94411f5 809 #define __HAL_RTC_TAMPER_TIMESTAMP_EXTI_ENABLE_EVENT() (EXTI->EMR |= RTC_EXTI_LINE_TAMPER_TIMESTAMP_EVENT)
Kojto 116:c0f6e94411f5 810
Kojto 116:c0f6e94411f5 811 /**
Kojto 116:c0f6e94411f5 812 * @brief Disable event on the RTC Tamper and Timestamp associated Exti line.
Kojto 116:c0f6e94411f5 813 * @retval None.
Kojto 116:c0f6e94411f5 814 */
Kojto 116:c0f6e94411f5 815 #define __HAL_RTC_TAMPER_TIMESTAMP_EXTI_DISABLE_EVENT() (EXTI->EMR &= ~(RTC_EXTI_LINE_TAMPER_TIMESTAMP_EVENT))
Kojto 116:c0f6e94411f5 816
Kojto 116:c0f6e94411f5 817 /**
Kojto 116:c0f6e94411f5 818 * @brief Enable falling edge trigger on the RTC Tamper and Timestamp associated Exti line.
Kojto 116:c0f6e94411f5 819 * @retval None.
Kojto 116:c0f6e94411f5 820 */
Kojto 116:c0f6e94411f5 821 #define __HAL_RTC_TAMPER_TIMESTAMP_EXTI_ENABLE_FALLING_EDGE() (EXTI->FTSR |= RTC_EXTI_LINE_TAMPER_TIMESTAMP_EVENT)
Kojto 116:c0f6e94411f5 822
Kojto 116:c0f6e94411f5 823 /**
Kojto 116:c0f6e94411f5 824 * @brief Disable falling edge trigger on the RTC Tamper and Timestamp associated Exti line.
Kojto 116:c0f6e94411f5 825 * @retval None.
Kojto 116:c0f6e94411f5 826 */
Kojto 116:c0f6e94411f5 827 #define __HAL_RTC_TAMPER_TIMESTAMP_EXTI_DISABLE_FALLING_EDGE() (EXTI->FTSR &= ~(RTC_EXTI_LINE_TAMPER_TIMESTAMP_EVENT))
Kojto 116:c0f6e94411f5 828
Kojto 116:c0f6e94411f5 829 /**
Kojto 116:c0f6e94411f5 830 * @brief Enable rising edge trigger on the RTC Tamper and Timestamp associated Exti line.
Kojto 116:c0f6e94411f5 831 * @retval None.
Kojto 116:c0f6e94411f5 832 */
Kojto 116:c0f6e94411f5 833 #define __HAL_RTC_TAMPER_TIMESTAMP_EXTI_ENABLE_RISING_EDGE() (EXTI->RTSR |= RTC_EXTI_LINE_TAMPER_TIMESTAMP_EVENT)
Kojto 116:c0f6e94411f5 834
Kojto 116:c0f6e94411f5 835 /**
Kojto 116:c0f6e94411f5 836 * @brief Disable rising edge trigger on the RTC Tamper and Timestamp associated Exti line.
Kojto 116:c0f6e94411f5 837 * @retval None.
Kojto 116:c0f6e94411f5 838 */
Kojto 116:c0f6e94411f5 839 #define __HAL_RTC_TAMPER_TIMESTAMP_EXTI_DISABLE_RISING_EDGE() (EXTI->RTSR &= ~(RTC_EXTI_LINE_TAMPER_TIMESTAMP_EVENT))
Kojto 116:c0f6e94411f5 840
Kojto 116:c0f6e94411f5 841 /**
Kojto 116:c0f6e94411f5 842 * @brief Enable rising & falling edge trigger on the RTC Tamper and Timestamp associated Exti line.
Kojto 116:c0f6e94411f5 843 * @retval None.
Kojto 116:c0f6e94411f5 844 */
Kojto 116:c0f6e94411f5 845 #define __HAL_RTC_TAMPER_TIMESTAMP_EXTI_ENABLE_RISING_FALLING_EDGE() __HAL_RTC_TAMPER_TIMESTAMP_EXTI_ENABLE_RISING_EDGE();__HAL_RTC_TAMPER_TIMESTAMP_EXTI_ENABLE_FALLING_EDGE();
Kojto 116:c0f6e94411f5 846
Kojto 116:c0f6e94411f5 847 /**
Kojto 116:c0f6e94411f5 848 * @brief Disable rising & falling edge trigger on the RTC Tamper and Timestamp associated Exti line.
Kojto 116:c0f6e94411f5 849 * This parameter can be:
Kojto 116:c0f6e94411f5 850 * @retval None.
Kojto 116:c0f6e94411f5 851 */
Kojto 116:c0f6e94411f5 852 #define __HAL_RTC_TAMPER_TIMESTAMP_EXTI_DISABLE_RISING_FALLING_EDGE() __HAL_RTC_TAMPER_TIMESTAMP_EXTI_DISABLE_RISING_EDGE();__HAL_RTC_TAMPER_TIMESTAMP_EXTI_DISABLE_FALLING_EDGE();
Kojto 116:c0f6e94411f5 853
Kojto 116:c0f6e94411f5 854 /**
Kojto 116:c0f6e94411f5 855 * @brief Check whether the RTC Tamper and Timestamp associated Exti line interrupt flag is set or not.
Kojto 116:c0f6e94411f5 856 * @retval Line Status.
Kojto 116:c0f6e94411f5 857 */
Kojto 116:c0f6e94411f5 858 #define __HAL_RTC_TAMPER_TIMESTAMP_EXTI_GET_FLAG() (EXTI->PR & RTC_EXTI_LINE_WAKEUPTIMER_EVENT)
Kojto 116:c0f6e94411f5 859
Kojto 116:c0f6e94411f5 860 /**
Kojto 116:c0f6e94411f5 861 * @brief Clear the RTC Tamper and Timestamp associated Exti line flag.
Kojto 116:c0f6e94411f5 862 * @retval None.
Kojto 116:c0f6e94411f5 863 */
Kojto 116:c0f6e94411f5 864 #define __HAL_RTC_TAMPER_TIMESTAMP_EXTI_CLEAR_FLAG() (EXTI->PR = RTC_EXTI_LINE_TAMPER_TIMESTAMP_EVENT)
Kojto 116:c0f6e94411f5 865
Kojto 116:c0f6e94411f5 866 /**
Kojto 116:c0f6e94411f5 867 * @brief Generate a Software interrupt on the RTC Tamper and Timestamp associated Exti line
Kojto 116:c0f6e94411f5 868 * @retval None.
Kojto 116:c0f6e94411f5 869 */
Kojto 116:c0f6e94411f5 870 #define __HAL_RTC_TAMPER_TIMESTAMP_EXTI_GENERATE_SWIT() (EXTI->SWIER |= RTC_EXTI_LINE_TAMPER_TIMESTAMP_EVENT)
Kojto 116:c0f6e94411f5 871
Kojto 116:c0f6e94411f5 872
Kojto 116:c0f6e94411f5 873 /**
Kojto 116:c0f6e94411f5 874 * @}
Kojto 116:c0f6e94411f5 875 */
Kojto 116:c0f6e94411f5 876
Kojto 116:c0f6e94411f5 877 /* Exported functions --------------------------------------------------------*/
Kojto 116:c0f6e94411f5 878 /** @defgroup RTCEx_Exported_Functions RTC Extended Exported Functions
Kojto 116:c0f6e94411f5 879 * @{
Kojto 116:c0f6e94411f5 880 */
Kojto 116:c0f6e94411f5 881
Kojto 116:c0f6e94411f5 882 /** @defgroup RTCEx_Exported_Functions_Group1 Extended RTC TimeStamp and Tamper functions
Kojto 116:c0f6e94411f5 883 * @{
Kojto 116:c0f6e94411f5 884 */
Kojto 116:c0f6e94411f5 885
Kojto 116:c0f6e94411f5 886 /* RTC TimeStamp and Tamper functions *****************************************/
Kojto 116:c0f6e94411f5 887 HAL_StatusTypeDef HAL_RTCEx_SetTimeStamp(RTC_HandleTypeDef *hrtc, uint32_t TimeStampEdge, uint32_t RTC_TimeStampPin);
Kojto 116:c0f6e94411f5 888 HAL_StatusTypeDef HAL_RTCEx_SetTimeStamp_IT(RTC_HandleTypeDef *hrtc, uint32_t TimeStampEdge, uint32_t RTC_TimeStampPin);
Kojto 116:c0f6e94411f5 889 HAL_StatusTypeDef HAL_RTCEx_DeactivateTimeStamp(RTC_HandleTypeDef *hrtc);
Kojto 116:c0f6e94411f5 890 HAL_StatusTypeDef HAL_RTCEx_GetTimeStamp(RTC_HandleTypeDef *hrtc, RTC_TimeTypeDef *sTimeStamp, RTC_DateTypeDef *sTimeStampDate, uint32_t Format);
Kojto 116:c0f6e94411f5 891
Kojto 116:c0f6e94411f5 892 HAL_StatusTypeDef HAL_RTCEx_SetTamper(RTC_HandleTypeDef *hrtc, RTC_TamperTypeDef* sTamper);
Kojto 116:c0f6e94411f5 893 HAL_StatusTypeDef HAL_RTCEx_SetTamper_IT(RTC_HandleTypeDef *hrtc, RTC_TamperTypeDef* sTamper);
Kojto 116:c0f6e94411f5 894 HAL_StatusTypeDef HAL_RTCEx_DeactivateTamper(RTC_HandleTypeDef *hrtc, uint32_t Tamper);
Kojto 116:c0f6e94411f5 895 void HAL_RTCEx_TamperTimeStampIRQHandler(RTC_HandleTypeDef *hrtc);
Kojto 116:c0f6e94411f5 896
Kojto 116:c0f6e94411f5 897 void HAL_RTCEx_Tamper1EventCallback(RTC_HandleTypeDef *hrtc);
Kojto 116:c0f6e94411f5 898 void HAL_RTCEx_Tamper2EventCallback(RTC_HandleTypeDef *hrtc);
Kojto 116:c0f6e94411f5 899
Kojto 116:c0f6e94411f5 900 #if defined (STM32L083xx) || defined (STM32L082xx) || defined (STM32L081xx) || \
Kojto 116:c0f6e94411f5 901 defined (STM32L073xx) || defined (STM32L072xx) || defined (STM32L071xx)
Kojto 116:c0f6e94411f5 902
Kojto 116:c0f6e94411f5 903 void HAL_RTCEx_Tamper3EventCallback(RTC_HandleTypeDef *hrtc);
Kojto 116:c0f6e94411f5 904
Kojto 116:c0f6e94411f5 905 #endif /* (STM32L083xx) || (STM32L082xx) || (STM32L081xx) ||
Kojto 116:c0f6e94411f5 906 * (STM32L073xx) || (STM32L072xx) || (STM32L071xx)
Kojto 116:c0f6e94411f5 907 */
Kojto 116:c0f6e94411f5 908
Kojto 116:c0f6e94411f5 909 void HAL_RTCEx_TimeStampEventCallback(RTC_HandleTypeDef *hrtc);
Kojto 116:c0f6e94411f5 910 HAL_StatusTypeDef HAL_RTCEx_PollForTimeStampEvent(RTC_HandleTypeDef *hrtc, uint32_t Timeout);
Kojto 116:c0f6e94411f5 911 HAL_StatusTypeDef HAL_RTCEx_PollForTamper1Event(RTC_HandleTypeDef *hrtc, uint32_t Timeout);
Kojto 116:c0f6e94411f5 912 HAL_StatusTypeDef HAL_RTCEx_PollForTamper2Event(RTC_HandleTypeDef *hrtc, uint32_t Timeout);
Kojto 116:c0f6e94411f5 913
Kojto 116:c0f6e94411f5 914 #if defined (STM32L083xx) || defined (STM32L082xx) || defined (STM32L081xx) || \
Kojto 116:c0f6e94411f5 915 defined (STM32L073xx) || defined (STM32L072xx) || defined (STM32L071xx)
Kojto 116:c0f6e94411f5 916
Kojto 116:c0f6e94411f5 917 HAL_StatusTypeDef HAL_RTCEx_PollForTamper3Event(RTC_HandleTypeDef *hrtc, uint32_t Timeout);
Kojto 116:c0f6e94411f5 918
Kojto 116:c0f6e94411f5 919 #endif /* (STM32L083xx) || (STM32L082xx) || (STM32L081xx) ||
Kojto 116:c0f6e94411f5 920 * (STM32L073xx) || (STM32L072xx) || (STM32L071xx)
Kojto 116:c0f6e94411f5 921 */
Kojto 116:c0f6e94411f5 922
Kojto 116:c0f6e94411f5 923 /**
Kojto 116:c0f6e94411f5 924 * @}
Kojto 116:c0f6e94411f5 925 */
Kojto 116:c0f6e94411f5 926
Kojto 116:c0f6e94411f5 927 /** @defgroup RTCEx_Exported_Functions_Group2 Extended RTC Wake-up functions
Kojto 116:c0f6e94411f5 928 * @{
Kojto 116:c0f6e94411f5 929 */
Kojto 116:c0f6e94411f5 930
Kojto 116:c0f6e94411f5 931 /* RTC Wake-up functions ******************************************************/
Kojto 116:c0f6e94411f5 932 HAL_StatusTypeDef HAL_RTCEx_SetWakeUpTimer(RTC_HandleTypeDef *hrtc, uint32_t WakeUpCounter, uint32_t WakeUpClock);
Kojto 116:c0f6e94411f5 933 HAL_StatusTypeDef HAL_RTCEx_SetWakeUpTimer_IT(RTC_HandleTypeDef *hrtc, uint32_t WakeUpCounter, uint32_t WakeUpClock);
Kojto 116:c0f6e94411f5 934 uint32_t HAL_RTCEx_DeactivateWakeUpTimer(RTC_HandleTypeDef *hrtc);
Kojto 116:c0f6e94411f5 935 uint32_t HAL_RTCEx_GetWakeUpTimer(RTC_HandleTypeDef *hrtc);
Kojto 116:c0f6e94411f5 936 void HAL_RTCEx_WakeUpTimerIRQHandler(RTC_HandleTypeDef *hrtc);
Kojto 116:c0f6e94411f5 937 void HAL_RTCEx_WakeUpTimerEventCallback(RTC_HandleTypeDef *hrtc);
Kojto 116:c0f6e94411f5 938 HAL_StatusTypeDef HAL_RTCEx_PollForWakeUpTimerEvent(RTC_HandleTypeDef *hrtc, uint32_t Timeout);
Kojto 116:c0f6e94411f5 939 /**
Kojto 116:c0f6e94411f5 940 * @}
Kojto 116:c0f6e94411f5 941 */
Kojto 116:c0f6e94411f5 942
Kojto 116:c0f6e94411f5 943 /** @defgroup RTCEx_Exported_Functions_Group3 Extended Peripheral Control functions
Kojto 116:c0f6e94411f5 944 * @{
Kojto 116:c0f6e94411f5 945 */
Kojto 116:c0f6e94411f5 946
Kojto 116:c0f6e94411f5 947 /* Extended Control functions ************************************************/
Kojto 116:c0f6e94411f5 948 void HAL_RTCEx_BKUPWrite(RTC_HandleTypeDef *hrtc, uint32_t BackupRegister, uint32_t Data);
Kojto 116:c0f6e94411f5 949 uint32_t HAL_RTCEx_BKUPRead(RTC_HandleTypeDef *hrtc, uint32_t BackupRegister);
Kojto 116:c0f6e94411f5 950
Kojto 116:c0f6e94411f5 951 HAL_StatusTypeDef HAL_RTCEx_SetSmoothCalib(RTC_HandleTypeDef *hrtc, uint32_t SmoothCalibPeriod, uint32_t SmoothCalibPlusPulses, uint32_t SmouthCalibMinusPulsesValue);
Kojto 116:c0f6e94411f5 952 HAL_StatusTypeDef HAL_RTCEx_SetSynchroShift(RTC_HandleTypeDef *hrtc, uint32_t ShiftAdd1S, uint32_t ShiftSubFS);
Kojto 116:c0f6e94411f5 953 HAL_StatusTypeDef HAL_RTCEx_SetCalibrationOutPut(RTC_HandleTypeDef *hrtc, uint32_t CalibOutput);
Kojto 116:c0f6e94411f5 954 HAL_StatusTypeDef HAL_RTCEx_DeactivateCalibrationOutPut(RTC_HandleTypeDef *hrtc);
Kojto 116:c0f6e94411f5 955 HAL_StatusTypeDef HAL_RTCEx_SetRefClock(RTC_HandleTypeDef *hrtc);
Kojto 116:c0f6e94411f5 956 HAL_StatusTypeDef HAL_RTCEx_DeactivateRefClock(RTC_HandleTypeDef *hrtc);
Kojto 116:c0f6e94411f5 957 HAL_StatusTypeDef HAL_RTCEx_EnableBypassShadow(RTC_HandleTypeDef *hrtc);
Kojto 116:c0f6e94411f5 958 HAL_StatusTypeDef HAL_RTCEx_DisableBypassShadow(RTC_HandleTypeDef *hrtc);
Kojto 116:c0f6e94411f5 959 /**
Kojto 116:c0f6e94411f5 960 * @}
Kojto 116:c0f6e94411f5 961 */
Kojto 116:c0f6e94411f5 962
Kojto 116:c0f6e94411f5 963 /* Extended RTC features functions *******************************************/
Kojto 116:c0f6e94411f5 964 /** @defgroup RTCEx_Exported_Functions_Group4 Extended features functions
Kojto 116:c0f6e94411f5 965 * @{
Kojto 116:c0f6e94411f5 966 */
Kojto 116:c0f6e94411f5 967 void HAL_RTCEx_AlarmBEventCallback(RTC_HandleTypeDef *hrtc);
Kojto 116:c0f6e94411f5 968 HAL_StatusTypeDef HAL_RTCEx_PollForAlarmBEvent(RTC_HandleTypeDef *hrtc, uint32_t Timeout);
Kojto 116:c0f6e94411f5 969
Kojto 116:c0f6e94411f5 970 /**
Kojto 116:c0f6e94411f5 971 * @}
Kojto 116:c0f6e94411f5 972 */
Kojto 116:c0f6e94411f5 973
Kojto 116:c0f6e94411f5 974 /**
Kojto 116:c0f6e94411f5 975 * @}
Kojto 116:c0f6e94411f5 976 */
Kojto 116:c0f6e94411f5 977
Kojto 116:c0f6e94411f5 978 /**
Kojto 116:c0f6e94411f5 979 * @}
Kojto 116:c0f6e94411f5 980 */
Kojto 116:c0f6e94411f5 981
Kojto 116:c0f6e94411f5 982 /**
Kojto 116:c0f6e94411f5 983 * @}
Kojto 116:c0f6e94411f5 984 */
Kojto 116:c0f6e94411f5 985
Kojto 116:c0f6e94411f5 986 #ifdef __cplusplus
Kojto 116:c0f6e94411f5 987 }
Kojto 116:c0f6e94411f5 988 #endif
Kojto 116:c0f6e94411f5 989
Kojto 116:c0f6e94411f5 990 #endif /* __STM32L0xx_HAL_RTC_EX_H */
Kojto 116:c0f6e94411f5 991
Kojto 116:c0f6e94411f5 992 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
Kojto 116:c0f6e94411f5 993