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

Dependents:   1-RenBuggyTimed RenBED_RGB RenBED_RGB_PWM RenBED_RGB

Fork of mbed by mbed official

Committer:
elijahorr
Date:
Thu Apr 14 07:28:54 2016 +0000
Revision:
121:672067c3ada4
Parent:
110:165afa46840b
.

Who changed what in which revision?

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