The official mbed C/C SDK provides the software platform and libraries to build your applications.

Fork of mbed by mbed official

Committer:
Mikchel
Date:
Sun May 03 16:04:42 2015 +0000
Revision:
99:7f6c6de930c0
Parent:
93:e188a91d3eaa
12

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Kojto 93:e188a91d3eaa 1 /**
Kojto 93:e188a91d3eaa 2 ******************************************************************************
Kojto 93:e188a91d3eaa 3 * @file stm32f0xx_hal_rtc_ex.h
Kojto 93:e188a91d3eaa 4 * @author MCD Application Team
Kojto 93:e188a91d3eaa 5 * @version V1.2.0
Kojto 93:e188a91d3eaa 6 * @date 11-December-2014
Kojto 93:e188a91d3eaa 7 * @brief Header file of RTC HAL Extension module.
Kojto 93:e188a91d3eaa 8 ******************************************************************************
Kojto 93:e188a91d3eaa 9 * @attention
Kojto 93:e188a91d3eaa 10 *
Kojto 93:e188a91d3eaa 11 * <h2><center>&copy; COPYRIGHT(c) 2014 STMicroelectronics</center></h2>
Kojto 93:e188a91d3eaa 12 *
Kojto 93:e188a91d3eaa 13 * Redistribution and use in source and binary forms, with or without modification,
Kojto 93:e188a91d3eaa 14 * are permitted provided that the following conditions are met:
Kojto 93:e188a91d3eaa 15 * 1. Redistributions of source code must retain the above copyright notice,
Kojto 93:e188a91d3eaa 16 * this list of conditions and the following disclaimer.
Kojto 93:e188a91d3eaa 17 * 2. Redistributions in binary form must reproduce the above copyright notice,
Kojto 93:e188a91d3eaa 18 * this list of conditions and the following disclaimer in the documentation
Kojto 93:e188a91d3eaa 19 * and/or other materials provided with the distribution.
Kojto 93:e188a91d3eaa 20 * 3. Neither the name of STMicroelectronics nor the names of its contributors
Kojto 93:e188a91d3eaa 21 * may be used to endorse or promote products derived from this software
Kojto 93:e188a91d3eaa 22 * without specific prior written permission.
Kojto 93:e188a91d3eaa 23 *
Kojto 93:e188a91d3eaa 24 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
Kojto 93:e188a91d3eaa 25 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
Kojto 93:e188a91d3eaa 26 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
Kojto 93:e188a91d3eaa 27 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
Kojto 93:e188a91d3eaa 28 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
Kojto 93:e188a91d3eaa 29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
Kojto 93:e188a91d3eaa 30 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
Kojto 93:e188a91d3eaa 31 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
Kojto 93:e188a91d3eaa 32 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
Kojto 93:e188a91d3eaa 33 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Kojto 93:e188a91d3eaa 34 *
Kojto 93:e188a91d3eaa 35 ******************************************************************************
Kojto 93:e188a91d3eaa 36 */
Kojto 93:e188a91d3eaa 37
Kojto 93:e188a91d3eaa 38 /* Define to prevent recursive inclusion -------------------------------------*/
Kojto 93:e188a91d3eaa 39 #ifndef __STM32F0xx_HAL_RTC_EX_H
Kojto 93:e188a91d3eaa 40 #define __STM32F0xx_HAL_RTC_EX_H
Kojto 93:e188a91d3eaa 41
Kojto 93:e188a91d3eaa 42 #ifdef __cplusplus
Kojto 93:e188a91d3eaa 43 extern "C" {
Kojto 93:e188a91d3eaa 44 #endif
Kojto 93:e188a91d3eaa 45
Kojto 93:e188a91d3eaa 46 /* Includes ------------------------------------------------------------------*/
Kojto 93:e188a91d3eaa 47 #include "stm32f0xx_hal_def.h"
Kojto 93:e188a91d3eaa 48
Kojto 93:e188a91d3eaa 49 /** @addtogroup STM32F0xx_HAL_Driver
Kojto 93:e188a91d3eaa 50 * @{
Kojto 93:e188a91d3eaa 51 */
Kojto 93:e188a91d3eaa 52
Kojto 93:e188a91d3eaa 53 /** @addtogroup RTCEx
Kojto 93:e188a91d3eaa 54 * @{
Kojto 93:e188a91d3eaa 55 */
Kojto 93:e188a91d3eaa 56
Kojto 93:e188a91d3eaa 57 /* Exported types ------------------------------------------------------------*/
Kojto 93:e188a91d3eaa 58
Kojto 93:e188a91d3eaa 59 /** @defgroup RTCEx_Exported_Types RTCEx Exported Types
Kojto 93:e188a91d3eaa 60 * @{
Kojto 93:e188a91d3eaa 61 */
Kojto 93:e188a91d3eaa 62
Kojto 93:e188a91d3eaa 63 /**
Kojto 93:e188a91d3eaa 64 * @brief RTC Tamper structure definition
Kojto 93:e188a91d3eaa 65 */
Kojto 93:e188a91d3eaa 66 typedef struct
Kojto 93:e188a91d3eaa 67 {
Kojto 93:e188a91d3eaa 68 uint32_t Tamper; /*!< Specifies the Tamper Pin.
Kojto 93:e188a91d3eaa 69 This parameter can be a value of @ref RTCEx_Tamper_Pins_Definitions */
Kojto 93:e188a91d3eaa 70
Kojto 93:e188a91d3eaa 71 uint32_t Trigger; /*!< Specifies the Tamper Trigger.
Kojto 93:e188a91d3eaa 72 This parameter can be a value of @ref RTCEx_Tamper_Trigger_Definitions */
Kojto 93:e188a91d3eaa 73
Kojto 93:e188a91d3eaa 74 uint32_t Filter; /*!< Specifies the RTC Filter Tamper.
Kojto 93:e188a91d3eaa 75 This parameter can be a value of @ref RTCEx_Tamper_Filter_Definitions */
Kojto 93:e188a91d3eaa 76
Kojto 93:e188a91d3eaa 77 uint32_t SamplingFrequency; /*!< Specifies the sampling frequency.
Kojto 93:e188a91d3eaa 78 This parameter can be a value of @ref RTCEx_Tamper_Sampling_Frequencies_Definitions */
Kojto 93:e188a91d3eaa 79
Kojto 93:e188a91d3eaa 80 uint32_t PrechargeDuration; /*!< Specifies the Precharge Duration .
Kojto 93:e188a91d3eaa 81 This parameter can be a value of @ref RTCEx_Tamper_Pin_Precharge_Duration_Definitions */
Kojto 93:e188a91d3eaa 82
Kojto 93:e188a91d3eaa 83 uint32_t TamperPullUp; /*!< Specifies the Tamper PullUp .
Kojto 93:e188a91d3eaa 84 This parameter can be a value of @ref RTCEx_Tamper_Pull_UP_Definitions */
Kojto 93:e188a91d3eaa 85
Kojto 93:e188a91d3eaa 86 uint32_t TimeStampOnTamperDetection; /*!< Specifies the TimeStampOnTamperDetection.
Kojto 93:e188a91d3eaa 87 This parameter can be a value of @ref RTCEx_Tamper_TimeStampOnTamperDetection_Definitions */
Kojto 93:e188a91d3eaa 88 }RTC_TamperTypeDef;
Kojto 93:e188a91d3eaa 89 /**
Kojto 93:e188a91d3eaa 90 * @}
Kojto 93:e188a91d3eaa 91 */
Kojto 93:e188a91d3eaa 92
Kojto 93:e188a91d3eaa 93 /* Exported constants --------------------------------------------------------*/
Kojto 93:e188a91d3eaa 94 /** @defgroup RTCEx_Exported_Constants RTCEx Exported Constants
Kojto 93:e188a91d3eaa 95 * @{
Kojto 93:e188a91d3eaa 96 */
Kojto 93:e188a91d3eaa 97
Kojto 93:e188a91d3eaa 98 /** @defgroup RTCEx_Output_selection_Definitions RTCEx Output Selection Definition
Kojto 93:e188a91d3eaa 99 * @{
Kojto 93:e188a91d3eaa 100 */
Kojto 93:e188a91d3eaa 101 #define RTC_OUTPUT_DISABLE ((uint32_t)0x00000000)
Kojto 93:e188a91d3eaa 102 #define RTC_OUTPUT_ALARMA ((uint32_t)0x00200000)
Kojto 93:e188a91d3eaa 103 #if defined(STM32F071xB) || defined(STM32F072xB) || defined(STM32F078xx) || defined(STM32F091xC) || defined(STM32F098xx)
Kojto 93:e188a91d3eaa 104 #define RTC_OUTPUT_WAKEUP ((uint32_t)0x00600000)
Kojto 93:e188a91d3eaa 105 #endif
Kojto 93:e188a91d3eaa 106
Kojto 93:e188a91d3eaa 107 #if defined(STM32F071xB) || defined(STM32F072xB) || defined(STM32F078xx) || defined(STM32F091xC) || defined(STM32F098xx)
Kojto 93:e188a91d3eaa 108 #define IS_RTC_OUTPUT(OUTPUT) (((OUTPUT) == RTC_OUTPUT_DISABLE) || \
Kojto 93:e188a91d3eaa 109 ((OUTPUT) == RTC_OUTPUT_ALARMA) || \
Kojto 93:e188a91d3eaa 110 ((OUTPUT) == RTC_OUTPUT_WAKEUP))
Kojto 93:e188a91d3eaa 111 #else
Kojto 93:e188a91d3eaa 112 #define IS_RTC_OUTPUT(OUTPUT) (((OUTPUT) == RTC_OUTPUT_DISABLE) || \
Kojto 93:e188a91d3eaa 113 ((OUTPUT) == RTC_OUTPUT_ALARMA))
Kojto 93:e188a91d3eaa 114 #endif
Kojto 93:e188a91d3eaa 115 /**
Kojto 93:e188a91d3eaa 116 * @}
Kojto 93:e188a91d3eaa 117 */
Kojto 93:e188a91d3eaa 118
Kojto 93:e188a91d3eaa 119 #if !defined(STM32F030x6) && !defined(STM32F030x8) && !defined(STM32F030xC) && !defined(STM32F070x6) && !defined(STM32F070xB)
Kojto 93:e188a91d3eaa 120 /** @defgroup RTCEx_Backup_Registers_Definitions RTCEx Backup Registers Definition
Kojto 93:e188a91d3eaa 121 * @{
Kojto 93:e188a91d3eaa 122 */
Kojto 93:e188a91d3eaa 123 #define RTC_BKP_DR0 ((uint32_t)0x00000000)
Kojto 93:e188a91d3eaa 124 #define RTC_BKP_DR1 ((uint32_t)0x00000001)
Kojto 93:e188a91d3eaa 125 #define RTC_BKP_DR2 ((uint32_t)0x00000002)
Kojto 93:e188a91d3eaa 126 #define RTC_BKP_DR3 ((uint32_t)0x00000003)
Kojto 93:e188a91d3eaa 127 #define RTC_BKP_DR4 ((uint32_t)0x00000004)
Kojto 93:e188a91d3eaa 128
Kojto 93:e188a91d3eaa 129 #define IS_RTC_BKP(BKP) ((BKP) < (uint32_t) RTC_BKP_NUMBER)
Kojto 93:e188a91d3eaa 130 /**
Kojto 93:e188a91d3eaa 131 * @}
Kojto 93:e188a91d3eaa 132 */
Kojto 93:e188a91d3eaa 133 #endif /* !defined(STM32F030x6) && !defined(STM32F030x8) && !defined(STM32F030xC) && !defined(STM32F070x6) && !defined(STM32F070xB) */
Kojto 93:e188a91d3eaa 134
Kojto 93:e188a91d3eaa 135 /** @defgroup RTCEx_Time_Stamp_Edges_definitions RTCEx Time Stamp Edges definition
Kojto 93:e188a91d3eaa 136 * @{
Kojto 93:e188a91d3eaa 137 */
Kojto 93:e188a91d3eaa 138 #define RTC_TIMESTAMPEDGE_RISING ((uint32_t)0x00000000)
Kojto 93:e188a91d3eaa 139 #define RTC_TIMESTAMPEDGE_FALLING ((uint32_t)0x00000008)
Kojto 93:e188a91d3eaa 140
Kojto 93:e188a91d3eaa 141 #define IS_TIMESTAMP_EDGE(EDGE) (((EDGE) == RTC_TIMESTAMPEDGE_RISING) || \
Kojto 93:e188a91d3eaa 142 ((EDGE) == RTC_TIMESTAMPEDGE_FALLING))
Kojto 93:e188a91d3eaa 143 /**
Kojto 93:e188a91d3eaa 144 * @}
Kojto 93:e188a91d3eaa 145 */
Kojto 93:e188a91d3eaa 146
Kojto 93:e188a91d3eaa 147 /** @defgroup RTCEx_Tamper_Pins_Definitions RTCEx Tamper Pins Definition
Kojto 93:e188a91d3eaa 148 * @{
Kojto 93:e188a91d3eaa 149 */
Kojto 93:e188a91d3eaa 150 #define RTC_TAMPER_1 RTC_TAFCR_TAMP1E
Kojto 93:e188a91d3eaa 151 #define RTC_TAMPER_2 RTC_TAFCR_TAMP2E
Kojto 93:e188a91d3eaa 152 #if defined(STM32F071xB) || defined(STM32F072xB) || defined(STM32F078xx) || defined(STM32F091xC) || defined(STM32F098xx)
Kojto 93:e188a91d3eaa 153 #define RTC_TAMPER_3 RTC_TAFCR_TAMP3E
Kojto 93:e188a91d3eaa 154 #endif
Kojto 93:e188a91d3eaa 155
Kojto 93:e188a91d3eaa 156 #if defined(STM32F071xB) || defined(STM32F072xB) || defined(STM32F078xx) || defined(STM32F091xC) || defined(STM32F098xx)
Kojto 93:e188a91d3eaa 157 #define IS_TAMPER(TAMPER) (((TAMPER) == RTC_TAMPER_1) || \
Kojto 93:e188a91d3eaa 158 ((TAMPER) == RTC_TAMPER_2) || \
Kojto 93:e188a91d3eaa 159 ((TAMPER) == RTC_TAMPER_3))
Kojto 93:e188a91d3eaa 160 #else
Kojto 93:e188a91d3eaa 161 #define IS_TAMPER(TAMPER) (((TAMPER) == RTC_TAMPER_1) || \
Kojto 93:e188a91d3eaa 162 ((TAMPER) == RTC_TAMPER_2))
Kojto 93:e188a91d3eaa 163 #endif
Kojto 93:e188a91d3eaa 164 /**
Kojto 93:e188a91d3eaa 165 * @}
Kojto 93:e188a91d3eaa 166 */
Kojto 93:e188a91d3eaa 167
Kojto 93:e188a91d3eaa 168 /** @defgroup RTCEx_TimeStamp_Pin_Selections RTCEx TimeStamp Pin Selection
Kojto 93:e188a91d3eaa 169 * @{
Kojto 93:e188a91d3eaa 170 */
Kojto 93:e188a91d3eaa 171 #define RTC_TIMESTAMPPIN_PC13 ((uint32_t)0x00000000)
Kojto 93:e188a91d3eaa 172
Kojto 93:e188a91d3eaa 173 #define IS_RTC_TIMESTAMP_PIN(PIN) (((PIN) == RTC_TIMESTAMPPIN_PC13))
Kojto 93:e188a91d3eaa 174 /**
Kojto 93:e188a91d3eaa 175 * @}
Kojto 93:e188a91d3eaa 176 */
Kojto 93:e188a91d3eaa 177
Kojto 93:e188a91d3eaa 178 /** @defgroup RTCEx_Tamper_Trigger_Definitions RTCEx Tamper Trigger Definition
Kojto 93:e188a91d3eaa 179 * @{
Kojto 93:e188a91d3eaa 180 */
Kojto 93:e188a91d3eaa 181 #define RTC_TAMPERTRIGGER_RISINGEDGE ((uint32_t)0x00000000)
Kojto 93:e188a91d3eaa 182 #define RTC_TAMPERTRIGGER_FALLINGEDGE ((uint32_t)0x00000002)
Kojto 93:e188a91d3eaa 183 #define RTC_TAMPERTRIGGER_LOWLEVEL RTC_TAMPERTRIGGER_RISINGEDGE
Kojto 93:e188a91d3eaa 184 #define RTC_TAMPERTRIGGER_HIGHLEVEL RTC_TAMPERTRIGGER_FALLINGEDGE
Kojto 93:e188a91d3eaa 185
Kojto 93:e188a91d3eaa 186 #define IS_TAMPER_TRIGGER(TRIGGER) (((TRIGGER) == RTC_TAMPERTRIGGER_RISINGEDGE) || \
Kojto 93:e188a91d3eaa 187 ((TRIGGER) == RTC_TAMPERTRIGGER_FALLINGEDGE) || \
Kojto 93:e188a91d3eaa 188 ((TRIGGER) == RTC_TAMPERTRIGGER_LOWLEVEL) || \
Kojto 93:e188a91d3eaa 189 ((TRIGGER) == RTC_TAMPERTRIGGER_HIGHLEVEL))
Kojto 93:e188a91d3eaa 190
Kojto 93:e188a91d3eaa 191 /**
Kojto 93:e188a91d3eaa 192 * @}
Kojto 93:e188a91d3eaa 193 */
Kojto 93:e188a91d3eaa 194
Kojto 93:e188a91d3eaa 195 /** @defgroup RTCEx_Tamper_Filter_Definitions RTCEx Tamper Filter Definition
Kojto 93:e188a91d3eaa 196 * @{
Kojto 93:e188a91d3eaa 197 */
Kojto 93:e188a91d3eaa 198 #define RTC_TAMPERFILTER_DISABLE ((uint32_t)0x00000000) /*!< Tamper filter is disabled */
Kojto 93:e188a91d3eaa 199
Kojto 93:e188a91d3eaa 200 #define RTC_TAMPERFILTER_2SAMPLE ((uint32_t)0x00000800) /*!< Tamper is activated after 2
Kojto 93:e188a91d3eaa 201 consecutive samples at the active level */
Kojto 93:e188a91d3eaa 202 #define RTC_TAMPERFILTER_4SAMPLE ((uint32_t)0x00001000) /*!< Tamper is activated after 4
Kojto 93:e188a91d3eaa 203 consecutive samples at the active level */
Kojto 93:e188a91d3eaa 204 #define RTC_TAMPERFILTER_8SAMPLE ((uint32_t)0x00001800) /*!< Tamper is activated after 8
Kojto 93:e188a91d3eaa 205 consecutive samples at the active level. */
Kojto 93:e188a91d3eaa 206
Kojto 93:e188a91d3eaa 207 #define IS_TAMPER_FILTER(FILTER) (((FILTER) == RTC_TAMPERFILTER_DISABLE) || \
Kojto 93:e188a91d3eaa 208 ((FILTER) == RTC_TAMPERFILTER_2SAMPLE) || \
Kojto 93:e188a91d3eaa 209 ((FILTER) == RTC_TAMPERFILTER_4SAMPLE) || \
Kojto 93:e188a91d3eaa 210 ((FILTER) == RTC_TAMPERFILTER_8SAMPLE))
Kojto 93:e188a91d3eaa 211 /**
Kojto 93:e188a91d3eaa 212 * @}
Kojto 93:e188a91d3eaa 213 */
Kojto 93:e188a91d3eaa 214
Kojto 93:e188a91d3eaa 215 /** @defgroup RTCEx_Tamper_Sampling_Frequencies_Definitions RTCEx Tamper Sampling Frequencies Definition
Kojto 93:e188a91d3eaa 216 * @{
Kojto 93:e188a91d3eaa 217 */
Kojto 93:e188a91d3eaa 218 #define RTC_TAMPERSAMPLINGFREQ_RTCCLK_DIV32768 ((uint32_t)0x00000000) /*!< Each of the tamper inputs are sampled
Kojto 93:e188a91d3eaa 219 with a frequency = RTCCLK / 32768 */
Kojto 93:e188a91d3eaa 220 #define RTC_TAMPERSAMPLINGFREQ_RTCCLK_DIV16384 ((uint32_t)0x00000100) /*!< Each of the tamper inputs are sampled
Kojto 93:e188a91d3eaa 221 with a frequency = RTCCLK / 16384 */
Kojto 93:e188a91d3eaa 222 #define RTC_TAMPERSAMPLINGFREQ_RTCCLK_DIV8192 ((uint32_t)0x00000200) /*!< Each of the tamper inputs are sampled
Kojto 93:e188a91d3eaa 223 with a frequency = RTCCLK / 8192 */
Kojto 93:e188a91d3eaa 224 #define RTC_TAMPERSAMPLINGFREQ_RTCCLK_DIV4096 ((uint32_t)0x00000300) /*!< Each of the tamper inputs are sampled
Kojto 93:e188a91d3eaa 225 with a frequency = RTCCLK / 4096 */
Kojto 93:e188a91d3eaa 226 #define RTC_TAMPERSAMPLINGFREQ_RTCCLK_DIV2048 ((uint32_t)0x00000400) /*!< Each of the tamper inputs are sampled
Kojto 93:e188a91d3eaa 227 with a frequency = RTCCLK / 2048 */
Kojto 93:e188a91d3eaa 228 #define RTC_TAMPERSAMPLINGFREQ_RTCCLK_DIV1024 ((uint32_t)0x00000500) /*!< Each of the tamper inputs are sampled
Kojto 93:e188a91d3eaa 229 with a frequency = RTCCLK / 1024 */
Kojto 93:e188a91d3eaa 230 #define RTC_TAMPERSAMPLINGFREQ_RTCCLK_DIV512 ((uint32_t)0x00000600) /*!< Each of the tamper inputs are sampled
Kojto 93:e188a91d3eaa 231 with a frequency = RTCCLK / 512 */
Kojto 93:e188a91d3eaa 232 #define RTC_TAMPERSAMPLINGFREQ_RTCCLK_DIV256 ((uint32_t)0x00000700) /*!< Each of the tamper inputs are sampled
Kojto 93:e188a91d3eaa 233 with a frequency = RTCCLK / 256 */
Kojto 93:e188a91d3eaa 234
Kojto 93:e188a91d3eaa 235 #define IS_TAMPER_SAMPLING_FREQ(FREQ) (((FREQ) == RTC_TAMPERSAMPLINGFREQ_RTCCLK_DIV32768)|| \
Kojto 93:e188a91d3eaa 236 ((FREQ) == RTC_TAMPERSAMPLINGFREQ_RTCCLK_DIV16384)|| \
Kojto 93:e188a91d3eaa 237 ((FREQ) == RTC_TAMPERSAMPLINGFREQ_RTCCLK_DIV8192) || \
Kojto 93:e188a91d3eaa 238 ((FREQ) == RTC_TAMPERSAMPLINGFREQ_RTCCLK_DIV4096) || \
Kojto 93:e188a91d3eaa 239 ((FREQ) == RTC_TAMPERSAMPLINGFREQ_RTCCLK_DIV2048) || \
Kojto 93:e188a91d3eaa 240 ((FREQ) == RTC_TAMPERSAMPLINGFREQ_RTCCLK_DIV1024) || \
Kojto 93:e188a91d3eaa 241 ((FREQ) == RTC_TAMPERSAMPLINGFREQ_RTCCLK_DIV512) || \
Kojto 93:e188a91d3eaa 242 ((FREQ) == RTC_TAMPERSAMPLINGFREQ_RTCCLK_DIV256))
Kojto 93:e188a91d3eaa 243 /**
Kojto 93:e188a91d3eaa 244 * @}
Kojto 93:e188a91d3eaa 245 */
Kojto 93:e188a91d3eaa 246
Kojto 93:e188a91d3eaa 247 /** @defgroup RTCEx_Tamper_Pin_Precharge_Duration_Definitions RTCEx Tamper Pin Precharge Duration Definition
Kojto 93:e188a91d3eaa 248 * @{
Kojto 93:e188a91d3eaa 249 */
Kojto 93:e188a91d3eaa 250 #define RTC_TAMPERPRECHARGEDURATION_1RTCCLK ((uint32_t)0x00000000) /*!< Tamper pins are pre-charged before
Kojto 93:e188a91d3eaa 251 sampling during 1 RTCCLK cycle */
Kojto 93:e188a91d3eaa 252 #define RTC_TAMPERPRECHARGEDURATION_2RTCCLK ((uint32_t)0x00002000) /*!< Tamper pins are pre-charged before
Kojto 93:e188a91d3eaa 253 sampling during 2 RTCCLK cycles */
Kojto 93:e188a91d3eaa 254 #define RTC_TAMPERPRECHARGEDURATION_4RTCCLK ((uint32_t)0x00004000) /*!< Tamper pins are pre-charged before
Kojto 93:e188a91d3eaa 255 sampling during 4 RTCCLK cycles */
Kojto 93:e188a91d3eaa 256 #define RTC_TAMPERPRECHARGEDURATION_8RTCCLK ((uint32_t)0x00006000) /*!< Tamper pins are pre-charged before
Kojto 93:e188a91d3eaa 257 sampling during 8 RTCCLK cycles */
Kojto 93:e188a91d3eaa 258
Kojto 93:e188a91d3eaa 259 #define IS_TAMPER_PRECHARGE_DURATION(DURATION) (((DURATION) == RTC_TAMPERPRECHARGEDURATION_1RTCCLK) || \
Kojto 93:e188a91d3eaa 260 ((DURATION) == RTC_TAMPERPRECHARGEDURATION_2RTCCLK) || \
Kojto 93:e188a91d3eaa 261 ((DURATION) == RTC_TAMPERPRECHARGEDURATION_4RTCCLK) || \
Kojto 93:e188a91d3eaa 262 ((DURATION) == RTC_TAMPERPRECHARGEDURATION_8RTCCLK))
Kojto 93:e188a91d3eaa 263 /**
Kojto 93:e188a91d3eaa 264 * @}
Kojto 93:e188a91d3eaa 265 */
Kojto 93:e188a91d3eaa 266
Kojto 93:e188a91d3eaa 267 /** @defgroup RTCEx_Tamper_TimeStampOnTamperDetection_Definitions RTCEx Tamper TimeStampOnTamperDetection Definition
Kojto 93:e188a91d3eaa 268 * @{
Kojto 93:e188a91d3eaa 269 */
Kojto 93:e188a91d3eaa 270 #define RTC_TIMESTAMPONTAMPERDETECTION_ENABLE ((uint32_t)RTC_TAFCR_TAMPTS) /*!< TimeStamp on Tamper Detection event saved */
Kojto 93:e188a91d3eaa 271 #define RTC_TIMESTAMPONTAMPERDETECTION_DISABLE ((uint32_t)0x00000000) /*!< TimeStamp on Tamper Detection event is not saved */
Kojto 93:e188a91d3eaa 272
Kojto 93:e188a91d3eaa 273 #define IS_TAMPER_TIMESTAMPONTAMPER_DETECTION(DETECTION) (((DETECTION) == RTC_TIMESTAMPONTAMPERDETECTION_ENABLE) || \
Kojto 93:e188a91d3eaa 274 ((DETECTION) == RTC_TIMESTAMPONTAMPERDETECTION_DISABLE))
Kojto 93:e188a91d3eaa 275 /**
Kojto 93:e188a91d3eaa 276 * @}
Kojto 93:e188a91d3eaa 277 */
Kojto 93:e188a91d3eaa 278
Kojto 93:e188a91d3eaa 279 /** @defgroup RTCEx_Tamper_Pull_UP_Definitions RTCEx Tamper Pull UP Definition
Kojto 93:e188a91d3eaa 280 * @{
Kojto 93:e188a91d3eaa 281 */
Kojto 93:e188a91d3eaa 282 #define RTC_TAMPER_PULLUP_ENABLE ((uint32_t)0x00000000) /*!< TimeStamp on Tamper Detection event saved */
Kojto 93:e188a91d3eaa 283 #define RTC_TAMPER_PULLUP_DISABLE ((uint32_t)RTC_TAFCR_TAMPPUDIS) /*!< TimeStamp on Tamper Detection event is not saved */
Kojto 93:e188a91d3eaa 284
Kojto 93:e188a91d3eaa 285 #define IS_TAMPER_PULLUP_STATE(STATE) (((STATE) == RTC_TAMPER_PULLUP_ENABLE) || \
Kojto 93:e188a91d3eaa 286 ((STATE) == RTC_TAMPER_PULLUP_DISABLE))
Kojto 93:e188a91d3eaa 287 /**
Kojto 93:e188a91d3eaa 288 * @}
Kojto 93:e188a91d3eaa 289 */
Kojto 93:e188a91d3eaa 290
Kojto 93:e188a91d3eaa 291 #if defined(STM32F071xB) || defined(STM32F072xB) || defined(STM32F078xx) || defined(STM32F091xC) || defined(STM32F098xx) || defined(STM32F070xB) || defined(STM32F030xC)
Kojto 93:e188a91d3eaa 292 /** @defgroup RTCEx_Wakeup_Timer_Definitions RTCEx Wakeup Timer Definition
Kojto 93:e188a91d3eaa 293 * @{
Kojto 93:e188a91d3eaa 294 */
Kojto 93:e188a91d3eaa 295 #define RTC_WAKEUPCLOCK_RTCCLK_DIV16 ((uint32_t)0x00000000)
Kojto 93:e188a91d3eaa 296 #define RTC_WAKEUPCLOCK_RTCCLK_DIV8 ((uint32_t)0x00000001)
Kojto 93:e188a91d3eaa 297 #define RTC_WAKEUPCLOCK_RTCCLK_DIV4 ((uint32_t)0x00000002)
Kojto 93:e188a91d3eaa 298 #define RTC_WAKEUPCLOCK_RTCCLK_DIV2 ((uint32_t)0x00000003)
Kojto 93:e188a91d3eaa 299 #define RTC_WAKEUPCLOCK_CK_SPRE_16BITS ((uint32_t)0x00000004)
Kojto 93:e188a91d3eaa 300 #define RTC_WAKEUPCLOCK_CK_SPRE_17BITS ((uint32_t)0x00000006)
Kojto 93:e188a91d3eaa 301
Kojto 93:e188a91d3eaa 302 #define IS_WAKEUP_CLOCK(CLOCK) (((CLOCK) == RTC_WAKEUPCLOCK_RTCCLK_DIV16) || \
Kojto 93:e188a91d3eaa 303 ((CLOCK) == RTC_WAKEUPCLOCK_RTCCLK_DIV8) || \
Kojto 93:e188a91d3eaa 304 ((CLOCK) == RTC_WAKEUPCLOCK_RTCCLK_DIV4) || \
Kojto 93:e188a91d3eaa 305 ((CLOCK) == RTC_WAKEUPCLOCK_RTCCLK_DIV2) || \
Kojto 93:e188a91d3eaa 306 ((CLOCK) == RTC_WAKEUPCLOCK_CK_SPRE_16BITS) || \
Kojto 93:e188a91d3eaa 307 ((CLOCK) == RTC_WAKEUPCLOCK_CK_SPRE_17BITS))
Kojto 93:e188a91d3eaa 308
Kojto 93:e188a91d3eaa 309 #define IS_WAKEUP_COUNTER(COUNTER) ((COUNTER) <= 0xFFFF)
Kojto 93:e188a91d3eaa 310 /**
Kojto 93:e188a91d3eaa 311 * @}
Kojto 93:e188a91d3eaa 312 */
Kojto 93:e188a91d3eaa 313 #endif /* defined(STM32F071xB) || defined(STM32F072xB) || defined(STM32F078xx) || defined(STM32F091xC) || defined(STM32F098xx) || defined(STM32F070xB) || defined(STM32F030xC) */
Kojto 93:e188a91d3eaa 314
Kojto 93:e188a91d3eaa 315 /** @defgroup RTCEx_Smooth_calib_period_Definitions RTCEx Smooth calib period Definition
Kojto 93:e188a91d3eaa 316 * @{
Kojto 93:e188a91d3eaa 317 */
Kojto 93:e188a91d3eaa 318 #define RTC_SMOOTHCALIB_PERIOD_32SEC ((uint32_t)0x00000000) /*!< If RTCCLK = 32768 Hz, Smooth calibation
Kojto 93:e188a91d3eaa 319 period is 32s, else 2exp20 RTCCLK seconds */
Kojto 93:e188a91d3eaa 320 #define RTC_SMOOTHCALIB_PERIOD_16SEC ((uint32_t)0x00002000) /*!< If RTCCLK = 32768 Hz, Smooth calibation
Kojto 93:e188a91d3eaa 321 period is 16s, else 2exp19 RTCCLK seconds */
Kojto 93:e188a91d3eaa 322 #define RTC_SMOOTHCALIB_PERIOD_8SEC ((uint32_t)0x00004000) /*!< If RTCCLK = 32768 Hz, Smooth calibation
Kojto 93:e188a91d3eaa 323 period is 8s, else 2exp18 RTCCLK seconds */
Kojto 93:e188a91d3eaa 324
Kojto 93:e188a91d3eaa 325 #define IS_RTC_SMOOTH_CALIB_PERIOD(PERIOD) (((PERIOD) == RTC_SMOOTHCALIB_PERIOD_32SEC) || \
Kojto 93:e188a91d3eaa 326 ((PERIOD) == RTC_SMOOTHCALIB_PERIOD_16SEC) || \
Kojto 93:e188a91d3eaa 327 ((PERIOD) == RTC_SMOOTHCALIB_PERIOD_8SEC))
Kojto 93:e188a91d3eaa 328 /**
Kojto 93:e188a91d3eaa 329 * @}
Kojto 93:e188a91d3eaa 330 */
Kojto 93:e188a91d3eaa 331
Kojto 93:e188a91d3eaa 332 /** @defgroup RTCEx_Smooth_calib_Plus_pulses_Definitions RTCEx Smooth calib Plus pulses Definition
Kojto 93:e188a91d3eaa 333 * @{
Kojto 93:e188a91d3eaa 334 */
Kojto 93:e188a91d3eaa 335 #define RTC_SMOOTHCALIB_PLUSPULSES_SET ((uint32_t)0x00008000) /*!< The number of RTCCLK pulses added
Kojto 93:e188a91d3eaa 336 during a X -second window = Y - CALM[8:0]
Kojto 93:e188a91d3eaa 337 with Y = 512, 256, 128 when X = 32, 16, 8 */
Kojto 93:e188a91d3eaa 338 #define RTC_SMOOTHCALIB_PLUSPULSES_RESET ((uint32_t)0x00000000) /*!< The number of RTCCLK pulses subbstited
Kojto 93:e188a91d3eaa 339 during a 32-second window = CALM[8:0] */
Kojto 93:e188a91d3eaa 340
Kojto 93:e188a91d3eaa 341 #define IS_RTC_SMOOTH_CALIB_PLUS(PLUS) (((PLUS) == RTC_SMOOTHCALIB_PLUSPULSES_SET) || \
Kojto 93:e188a91d3eaa 342 ((PLUS) == RTC_SMOOTHCALIB_PLUSPULSES_RESET))
Kojto 93:e188a91d3eaa 343 /**
Kojto 93:e188a91d3eaa 344 * @}
Kojto 93:e188a91d3eaa 345 */
Kojto 93:e188a91d3eaa 346
Kojto 93:e188a91d3eaa 347 /** @defgroup RTCEx_Smooth_calib_Minus_pulses_Definitions RTCEx Smooth calib Minus pulses Definition
Kojto 93:e188a91d3eaa 348 * @{
Kojto 93:e188a91d3eaa 349 */
Kojto 93:e188a91d3eaa 350 #define IS_RTC_SMOOTH_CALIB_MINUS(VALUE) ((VALUE) <= 0x000001FF)
Kojto 93:e188a91d3eaa 351 /**
Kojto 93:e188a91d3eaa 352 * @}
Kojto 93:e188a91d3eaa 353 */
Kojto 93:e188a91d3eaa 354
Kojto 93:e188a91d3eaa 355 /** @defgroup RTCEx_Add_1_Second_Parameter_Definition RTCEx Add 1 Second Parameter Definition
Kojto 93:e188a91d3eaa 356 * @{
Kojto 93:e188a91d3eaa 357 */
Kojto 93:e188a91d3eaa 358 #define RTC_SHIFTADD1S_RESET ((uint32_t)0x00000000)
Kojto 93:e188a91d3eaa 359 #define RTC_SHIFTADD1S_SET ((uint32_t)0x80000000)
Kojto 93:e188a91d3eaa 360
Kojto 93:e188a91d3eaa 361 #define IS_RTC_SHIFT_ADD1S(SEL) (((SEL) == RTC_SHIFTADD1S_RESET) || \
Kojto 93:e188a91d3eaa 362 ((SEL) == RTC_SHIFTADD1S_SET))
Kojto 93:e188a91d3eaa 363 /**
Kojto 93:e188a91d3eaa 364 * @}
Kojto 93:e188a91d3eaa 365 */
Kojto 93:e188a91d3eaa 366
Kojto 93:e188a91d3eaa 367 /** @defgroup RTCEx_Substract_Fraction_Of_Second_Value RTCEx Substract Fraction Of Second Value
Kojto 93:e188a91d3eaa 368 * @{
Kojto 93:e188a91d3eaa 369 */
Kojto 93:e188a91d3eaa 370 #define IS_RTC_SHIFT_SUBFS(FS) ((FS) <= 0x00007FFF)
Kojto 93:e188a91d3eaa 371 /**
Kojto 93:e188a91d3eaa 372 * @}
Kojto 93:e188a91d3eaa 373 */
Kojto 93:e188a91d3eaa 374
Kojto 93:e188a91d3eaa 375 /** @defgroup RTCEx_Calib_Output_selection_Definitions RTCEx Calib Output selection Definition
Kojto 93:e188a91d3eaa 376 * @{
Kojto 93:e188a91d3eaa 377 */
Kojto 93:e188a91d3eaa 378 #define RTC_CALIBOUTPUT_512HZ ((uint32_t)0x00000000)
Kojto 93:e188a91d3eaa 379 #define RTC_CALIBOUTPUT_1HZ ((uint32_t)0x00080000)
Kojto 93:e188a91d3eaa 380
Kojto 93:e188a91d3eaa 381 #define IS_RTC_CALIB_OUTPUT(OUTPUT) (((OUTPUT) == RTC_CALIBOUTPUT_512HZ) || \
Kojto 93:e188a91d3eaa 382 ((OUTPUT) == RTC_CALIBOUTPUT_1HZ))
Kojto 93:e188a91d3eaa 383 /**
Kojto 93:e188a91d3eaa 384 * @}
Kojto 93:e188a91d3eaa 385 */
Kojto 93:e188a91d3eaa 386
Kojto 93:e188a91d3eaa 387 /**
Kojto 93:e188a91d3eaa 388 * @}
Kojto 93:e188a91d3eaa 389 */
Kojto 93:e188a91d3eaa 390
Kojto 93:e188a91d3eaa 391 /* Exported macro ------------------------------------------------------------*/
Kojto 93:e188a91d3eaa 392 /** @defgroup RTCEx_Exported_Macros RTCEx Exported Macros
Kojto 93:e188a91d3eaa 393 * @{
Kojto 93:e188a91d3eaa 394 */
Kojto 93:e188a91d3eaa 395
Kojto 93:e188a91d3eaa 396 #if defined(STM32F071xB) || defined(STM32F072xB) || defined(STM32F078xx) || defined(STM32F091xC) || defined(STM32F098xx) || defined(STM32F070xB) || defined(STM32F030xC)
Kojto 93:e188a91d3eaa 397 /**
Kojto 93:e188a91d3eaa 398 * @brief Enable the RTC WakeUp Timer peripheral.
Kojto 93:e188a91d3eaa 399 * @param __HANDLE__: specifies the RTC handle.
Kojto 93:e188a91d3eaa 400 * @retval None
Kojto 93:e188a91d3eaa 401 */
Kojto 93:e188a91d3eaa 402 #define __HAL_RTC_WAKEUPTIMER_ENABLE(__HANDLE__) ((__HANDLE__)->Instance->CR |= (RTC_CR_WUTE))
Kojto 93:e188a91d3eaa 403 #endif /* defined(STM32F071xB) || defined(STM32F072xB) || defined(STM32F078xx) || defined(STM32F091xC) || defined(STM32F098xx) || defined(STM32F070xB) || defined(STM32F030xC) */
Kojto 93:e188a91d3eaa 404
Kojto 93:e188a91d3eaa 405 /**
Kojto 93:e188a91d3eaa 406 * @brief Enable the RTC TimeStamp peripheral.
Kojto 93:e188a91d3eaa 407 * @param __HANDLE__: specifies the RTC handle.
Kojto 93:e188a91d3eaa 408 * @retval None
Kojto 93:e188a91d3eaa 409 */
Kojto 93:e188a91d3eaa 410 #define __HAL_RTC_TIMESTAMP_ENABLE(__HANDLE__) ((__HANDLE__)->Instance->CR |= (RTC_CR_TSE))
Kojto 93:e188a91d3eaa 411
Kojto 93:e188a91d3eaa 412 #if defined(STM32F071xB) || defined(STM32F072xB) || defined(STM32F078xx) || defined(STM32F091xC) || defined(STM32F098xx) || defined(STM32F070xB) || defined(STM32F030xC)
Kojto 93:e188a91d3eaa 413 /**
Kojto 93:e188a91d3eaa 414 * @brief Disable the RTC WakeUp Timer peripheral.
Kojto 93:e188a91d3eaa 415 * @param __HANDLE__: specifies the RTC handle.
Kojto 93:e188a91d3eaa 416 * @retval None
Kojto 93:e188a91d3eaa 417 */
Kojto 93:e188a91d3eaa 418 #define __HAL_RTC_WAKEUPTIMER_DISABLE(__HANDLE__) ((__HANDLE__)->Instance->CR &= ~(RTC_CR_WUTE))
Kojto 93:e188a91d3eaa 419 #endif /* defined(STM32F071xB) || defined(STM32F072xB) || defined(STM32F078xx) || defined(STM32F091xC) || defined(STM32F098xx) || defined(STM32F070xB) || defined(STM32F030xC) */
Kojto 93:e188a91d3eaa 420
Kojto 93:e188a91d3eaa 421 /**
Kojto 93:e188a91d3eaa 422 * @brief Disable the RTC TimeStamp peripheral.
Kojto 93:e188a91d3eaa 423 * @param __HANDLE__: specifies the RTC handle.
Kojto 93:e188a91d3eaa 424 * @retval None
Kojto 93:e188a91d3eaa 425 */
Kojto 93:e188a91d3eaa 426 #define __HAL_RTC_TIMESTAMP_DISABLE(__HANDLE__) ((__HANDLE__)->Instance->CR &= ~(RTC_CR_TSE))
Kojto 93:e188a91d3eaa 427
Kojto 93:e188a91d3eaa 428 /**
Kojto 93:e188a91d3eaa 429 * @brief Enable the RTC calibration output.
Kojto 93:e188a91d3eaa 430 * @param __HANDLE__: specifies the RTC handle.
Kojto 93:e188a91d3eaa 431 * @retval None
Kojto 93:e188a91d3eaa 432 */
Kojto 93:e188a91d3eaa 433 #define __HAL_RTC_CALIBRATION_OUTPUT_ENABLE(__HANDLE__) ((__HANDLE__)->Instance->CR |= (RTC_CR_COE))
Kojto 93:e188a91d3eaa 434
Kojto 93:e188a91d3eaa 435 /**
Kojto 93:e188a91d3eaa 436 * @brief Disable the calibration output.
Kojto 93:e188a91d3eaa 437 * @param __HANDLE__: specifies the RTC handle.
Kojto 93:e188a91d3eaa 438 * @retval None
Kojto 93:e188a91d3eaa 439 */
Kojto 93:e188a91d3eaa 440 #define __HAL_RTC_CALIBRATION_OUTPUT_DISABLE(__HANDLE__) ((__HANDLE__)->Instance->CR &= ~(RTC_CR_COE))
Kojto 93:e188a91d3eaa 441
Kojto 93:e188a91d3eaa 442 /**
Kojto 93:e188a91d3eaa 443 * @brief Enable the clock reference detection.
Kojto 93:e188a91d3eaa 444 * @param __HANDLE__: specifies the RTC handle.
Kojto 93:e188a91d3eaa 445 * @retval None
Kojto 93:e188a91d3eaa 446 */
Kojto 93:e188a91d3eaa 447 #define __HAL_RTC_CLOCKREF_DETECTION_ENABLE(__HANDLE__) ((__HANDLE__)->Instance->CR |= (RTC_CR_REFCKON))
Kojto 93:e188a91d3eaa 448
Kojto 93:e188a91d3eaa 449 /**
Kojto 93:e188a91d3eaa 450 * @brief Disable the clock reference detection.
Kojto 93:e188a91d3eaa 451 * @param __HANDLE__: specifies the RTC handle.
Kojto 93:e188a91d3eaa 452 * @retval None
Kojto 93:e188a91d3eaa 453 */
Kojto 93:e188a91d3eaa 454 #define __HAL_RTC_CLOCKREF_DETECTION_DISABLE(__HANDLE__) ((__HANDLE__)->Instance->CR &= ~(RTC_CR_REFCKON))
Kojto 93:e188a91d3eaa 455
Kojto 93:e188a91d3eaa 456 /**
Kojto 93:e188a91d3eaa 457 * @brief Enable the RTC TimeStamp interrupt.
Kojto 93:e188a91d3eaa 458 * @param __HANDLE__: specifies the RTC handle.
Kojto 93:e188a91d3eaa 459 * @param __INTERRUPT__: specifies the RTC TimeStamp interrupt sources to be enabled or disabled.
Kojto 93:e188a91d3eaa 460 * This parameter can be:
Kojto 93:e188a91d3eaa 461 * @arg RTC_IT_TS: TimeStamp interrupt
Kojto 93:e188a91d3eaa 462 * @retval None
Kojto 93:e188a91d3eaa 463 */
Kojto 93:e188a91d3eaa 464 #define __HAL_RTC_TIMESTAMP_ENABLE_IT(__HANDLE__, __INTERRUPT__) ((__HANDLE__)->Instance->CR |= (__INTERRUPT__))
Kojto 93:e188a91d3eaa 465
Kojto 93:e188a91d3eaa 466 #if defined(STM32F071xB) || defined(STM32F072xB) || defined(STM32F078xx) || defined(STM32F091xC) || defined(STM32F098xx) || defined(STM32F070xB) || defined(STM32F030xC)
Kojto 93:e188a91d3eaa 467 /**
Kojto 93:e188a91d3eaa 468 * @brief Enable the RTC WakeUpTimer interrupt.
Kojto 93:e188a91d3eaa 469 * @param __HANDLE__: specifies the RTC handle.
Kojto 93:e188a91d3eaa 470 * @param __INTERRUPT__: specifies the RTC WakeUpTimer interrupt sources to be enabled or disabled.
Kojto 93:e188a91d3eaa 471 * This parameter can be:
Kojto 93:e188a91d3eaa 472 * @arg RTC_IT_WUT: WakeUpTimer A interrupt
Kojto 93:e188a91d3eaa 473 * @retval None
Kojto 93:e188a91d3eaa 474 */
Kojto 93:e188a91d3eaa 475 #define __HAL_RTC_WAKEUPTIMER_ENABLE_IT(__HANDLE__, __INTERRUPT__) ((__HANDLE__)->Instance->CR |= (__INTERRUPT__))
Kojto 93:e188a91d3eaa 476 #endif /* defined(STM32F071xB) || defined(STM32F072xB) || defined(STM32F078xx) || defined(STM32F091xC) || defined(STM32F098xx) || defined(STM32F070xB) || defined(STM32F030xC) */
Kojto 93:e188a91d3eaa 477
Kojto 93:e188a91d3eaa 478 /**
Kojto 93:e188a91d3eaa 479 * @brief Disable the RTC TimeStamp interrupt.
Kojto 93:e188a91d3eaa 480 * @param __HANDLE__: specifies the RTC handle.
Kojto 93:e188a91d3eaa 481 * @param __INTERRUPT__: specifies the RTC TimeStamp interrupt sources to be enabled or disabled.
Kojto 93:e188a91d3eaa 482 * This parameter can be:
Kojto 93:e188a91d3eaa 483 * @arg RTC_IT_TS: TimeStamp interrupt
Kojto 93:e188a91d3eaa 484 * @retval None
Kojto 93:e188a91d3eaa 485 */
Kojto 93:e188a91d3eaa 486 #define __HAL_RTC_TIMESTAMP_DISABLE_IT(__HANDLE__, __INTERRUPT__) ((__HANDLE__)->Instance->CR &= ~(__INTERRUPT__))
Kojto 93:e188a91d3eaa 487
Kojto 93:e188a91d3eaa 488 #if defined(STM32F071xB) || defined(STM32F072xB) || defined(STM32F078xx) || defined(STM32F091xC) || defined(STM32F098xx) || defined(STM32F070xB) || defined(STM32F030xC)
Kojto 93:e188a91d3eaa 489 /**
Kojto 93:e188a91d3eaa 490 * @brief Disable the RTC WakeUpTimer interrupt.
Kojto 93:e188a91d3eaa 491 * @param __HANDLE__: specifies the RTC handle.
Kojto 93:e188a91d3eaa 492 * @param __INTERRUPT__: specifies the RTC WakeUpTimer interrupt sources to be enabled or disabled.
Kojto 93:e188a91d3eaa 493 * This parameter can be:
Kojto 93:e188a91d3eaa 494 * @arg RTC_IT_WUT: WakeUpTimer A interrupt
Kojto 93:e188a91d3eaa 495 * @retval None
Kojto 93:e188a91d3eaa 496 */
Kojto 93:e188a91d3eaa 497 #define __HAL_RTC_WAKEUPTIMER_DISABLE_IT(__HANDLE__, __INTERRUPT__) ((__HANDLE__)->Instance->CR &= ~(__INTERRUPT__))
Kojto 93:e188a91d3eaa 498 #endif /* defined(STM32F071xB) || defined(STM32F072xB) || defined(STM32F078xx) || defined(STM32F091xC) || defined(STM32F098xx) || defined(STM32F070xB) || defined(STM32F030xC) */
Kojto 93:e188a91d3eaa 499
Kojto 93:e188a91d3eaa 500 /**
Kojto 93:e188a91d3eaa 501 * @brief Check whether the specified RTC Tamper interrupt has occurred or not.
Kojto 93:e188a91d3eaa 502 * @param __HANDLE__: specifies the RTC handle.
Kojto 93:e188a91d3eaa 503 * @param __FLAG__: specifies the RTC Tamper interrupt sources to be enabled or disabled.
Kojto 93:e188a91d3eaa 504 * This parameter can be:
Kojto 93:e188a91d3eaa 505 * @arg RTC_IT_TAMP1
Kojto 93:e188a91d3eaa 506 * @retval None
Kojto 93:e188a91d3eaa 507 */
Kojto 93:e188a91d3eaa 508 #define __HAL_RTC_TAMPER_GET_IT(__HANDLE__, __FLAG__) (((((__HANDLE__)->Instance->ISR) & ((__FLAG__)>> 4)) != RESET)? SET : RESET)
Kojto 93:e188a91d3eaa 509
Kojto 93:e188a91d3eaa 510 #if defined(STM32F071xB) || defined(STM32F072xB) || defined(STM32F078xx) || defined(STM32F091xC) || defined(STM32F098xx) || defined(STM32F070xB) || defined(STM32F030xC)
Kojto 93:e188a91d3eaa 511 /**
Kojto 93:e188a91d3eaa 512 * @brief Check whether the specified RTC WakeUpTimer interrupt has occurred or not.
Kojto 93:e188a91d3eaa 513 * @param __HANDLE__: specifies the RTC handle.
Kojto 93:e188a91d3eaa 514 * @param __FLAG__: specifies the RTC WakeUpTimer interrupt sources to be enabled or disabled.
Kojto 93:e188a91d3eaa 515 * This parameter can be:
Kojto 93:e188a91d3eaa 516 * @arg RTC_IT_WUT: WakeUpTimer A interrupt
Kojto 93:e188a91d3eaa 517 * @retval None
Kojto 93:e188a91d3eaa 518 */
Kojto 93:e188a91d3eaa 519 #define __HAL_RTC_WAKEUPTIMER_GET_IT(__HANDLE__, __FLAG__) (((((__HANDLE__)->Instance->ISR) & ((__FLAG__)>> 4)) != RESET)? SET : RESET)
Kojto 93:e188a91d3eaa 520 #endif /* defined(STM32F071xB) || defined(STM32F072xB) || defined(STM32F078xx) || defined(STM32F091xC) || defined(STM32F098xx) || defined(STM32F070xB) || defined(STM32F030xC) */
Kojto 93:e188a91d3eaa 521
Kojto 93:e188a91d3eaa 522 /**
Kojto 93:e188a91d3eaa 523 * @brief Check whether the specified RTC TimeStamp interrupt has occurred or not.
Kojto 93:e188a91d3eaa 524 * @param __HANDLE__: specifies the RTC handle.
Kojto 93:e188a91d3eaa 525 * @param __FLAG__: specifies the RTC TimeStamp interrupt sources to be enabled or disabled.
Kojto 93:e188a91d3eaa 526 * This parameter can be:
Kojto 93:e188a91d3eaa 527 * @arg RTC_IT_TS: TimeStamp interrupt
Kojto 93:e188a91d3eaa 528 * @retval None
Kojto 93:e188a91d3eaa 529 */
Kojto 93:e188a91d3eaa 530 #define __HAL_RTC_TIMESTAMP_GET_IT(__HANDLE__, __FLAG__) (((((__HANDLE__)->Instance->ISR) & ((__FLAG__)>> 4)) != RESET)? SET : RESET)
Kojto 93:e188a91d3eaa 531
Kojto 93:e188a91d3eaa 532 /**
Kojto 93:e188a91d3eaa 533 * @brief Get the selected RTC TimeStamp's flag status.
Kojto 93:e188a91d3eaa 534 * @param __HANDLE__: specifies the RTC handle.
Kojto 93:e188a91d3eaa 535 * @param __FLAG__: specifies the RTC TimeStamp Flag sources to be enabled or disabled.
Kojto 93:e188a91d3eaa 536 * This parameter can be:
Kojto 93:e188a91d3eaa 537 * @arg RTC_FLAG_TSF
Kojto 93:e188a91d3eaa 538 * @arg RTC_FLAG_TSOVF
Kojto 93:e188a91d3eaa 539 * @retval None
Kojto 93:e188a91d3eaa 540 */
Kojto 93:e188a91d3eaa 541 #define __HAL_RTC_TIMESTAMP_GET_FLAG(__HANDLE__, __FLAG__) (((((__HANDLE__)->Instance->ISR) & (__FLAG__)) != RESET)? SET : RESET)
Kojto 93:e188a91d3eaa 542
Kojto 93:e188a91d3eaa 543 #if defined(STM32F071xB) || defined(STM32F072xB) || defined(STM32F078xx) || defined(STM32F091xC) || defined(STM32F098xx) || defined(STM32F070xB) || defined(STM32F030xC)
Kojto 93:e188a91d3eaa 544 /**
Kojto 93:e188a91d3eaa 545 * @brief Get the selected RTC WakeUpTimer's flag status.
Kojto 93:e188a91d3eaa 546 * @param __HANDLE__: specifies the RTC handle.
Kojto 93:e188a91d3eaa 547 * @param __FLAG__: specifies the RTC WakeUpTimer Flag sources to be enabled or disabled.
Kojto 93:e188a91d3eaa 548 * This parameter can be:
Kojto 93:e188a91d3eaa 549 * @arg RTC_FLAG_WUTF
Kojto 93:e188a91d3eaa 550 * @arg RTC_FLAG_WUTWF
Kojto 93:e188a91d3eaa 551 * @retval None
Kojto 93:e188a91d3eaa 552 */
Kojto 93:e188a91d3eaa 553 #define __HAL_RTC_WAKEUPTIMER_GET_FLAG(__HANDLE__, __FLAG__) (((((__HANDLE__)->Instance->ISR) & (__FLAG__)) != RESET)? SET : RESET)
Kojto 93:e188a91d3eaa 554 #endif /* defined(STM32F071xB) || defined(STM32F072xB) || defined(STM32F078xx) || defined(STM32F091xC) || defined(STM32F098xx) || defined(STM32F070xB) || defined(STM32F030xC) */
Kojto 93:e188a91d3eaa 555
Kojto 93:e188a91d3eaa 556 /**
Kojto 93:e188a91d3eaa 557 * @brief Get the selected RTC Tamper's flag status.
Kojto 93:e188a91d3eaa 558 * @param __HANDLE__: specifies the RTC handle.
Kojto 93:e188a91d3eaa 559 * @param __FLAG__: specifies the RTC Tamper Flag sources to be enabled or disabled.
Kojto 93:e188a91d3eaa 560 * This parameter can be:
Kojto 93:e188a91d3eaa 561 * @arg RTC_FLAG_TAMP1F
Kojto 93:e188a91d3eaa 562 * @retval None
Kojto 93:e188a91d3eaa 563 */
Kojto 93:e188a91d3eaa 564 #define __HAL_RTC_TAMPER_GET_FLAG(__HANDLE__, __FLAG__) (((((__HANDLE__)->Instance->ISR) & (__FLAG__)) != RESET)? SET : RESET)
Kojto 93:e188a91d3eaa 565
Kojto 93:e188a91d3eaa 566 /**
Kojto 93:e188a91d3eaa 567 * @brief Get the selected RTC shift operation's flag status.
Kojto 93:e188a91d3eaa 568 * @param __HANDLE__: specifies the RTC handle.
Kojto 93:e188a91d3eaa 569 * @param __FLAG__: specifies the RTC shift operation Flag is pending or not.
Kojto 93:e188a91d3eaa 570 * This parameter can be:
Kojto 93:e188a91d3eaa 571 * @arg RTC_FLAG_SHPF
Kojto 93:e188a91d3eaa 572 * @retval None
Kojto 93:e188a91d3eaa 573 */
Kojto 93:e188a91d3eaa 574 #define __HAL_RTC_SHIFT_GET_FLAG(__HANDLE__, __FLAG__) (((((__HANDLE__)->Instance->ISR) & (__FLAG__)) != RESET)? SET : RESET)
Kojto 93:e188a91d3eaa 575
Kojto 93:e188a91d3eaa 576 /**
Kojto 93:e188a91d3eaa 577 * @brief Clear the RTC Time Stamp's pending flags.
Kojto 93:e188a91d3eaa 578 * @param __HANDLE__: specifies the RTC handle.
Kojto 93:e188a91d3eaa 579 * @param __FLAG__: specifies the RTC Alarm Flag sources to be enabled or disabled.
Kojto 93:e188a91d3eaa 580 * This parameter can be:
Kojto 93:e188a91d3eaa 581 * @arg RTC_FLAG_TSF
Kojto 93:e188a91d3eaa 582 * @retval None
Kojto 93:e188a91d3eaa 583 */
Kojto 93:e188a91d3eaa 584 #define __HAL_RTC_TIMESTAMP_CLEAR_FLAG(__HANDLE__, __FLAG__) ((__HANDLE__)->Instance->ISR) = (~(((__FLAG__) | RTC_ISR_INIT)& 0x0000FFFF)|((__HANDLE__)->Instance->ISR & RTC_ISR_INIT))
Kojto 93:e188a91d3eaa 585
Kojto 93:e188a91d3eaa 586 /**
Kojto 93:e188a91d3eaa 587 * @brief Clear the RTC Tamper's pending flags.
Kojto 93:e188a91d3eaa 588 * @param __HANDLE__: specifies the RTC handle.
Kojto 93:e188a91d3eaa 589 * @param __FLAG__: specifies the RTC Tamper Flag sources to be enabled or disabled.
Kojto 93:e188a91d3eaa 590 * This parameter can be:
Kojto 93:e188a91d3eaa 591 * @arg RTC_FLAG_TAMP1F
Kojto 93:e188a91d3eaa 592 * @retval None
Kojto 93:e188a91d3eaa 593 */
Kojto 93:e188a91d3eaa 594 #define __HAL_RTC_TAMPER_CLEAR_FLAG(__HANDLE__, __FLAG__) ((__HANDLE__)->Instance->ISR) = (~(((__FLAG__) | RTC_ISR_INIT)& 0x0000FFFF)|((__HANDLE__)->Instance->ISR & RTC_ISR_INIT))
Kojto 93:e188a91d3eaa 595
Kojto 93:e188a91d3eaa 596 #if defined(STM32F071xB) || defined(STM32F072xB) || defined(STM32F078xx) || defined(STM32F091xC) || defined(STM32F098xx) || defined(STM32F070xB) || defined(STM32F030xC)
Kojto 93:e188a91d3eaa 597 /**
Kojto 93:e188a91d3eaa 598 * @brief Clear the RTC Wake Up timer's pending flags.
Kojto 93:e188a91d3eaa 599 * @param __HANDLE__: specifies the RTC handle.
Kojto 93:e188a91d3eaa 600 * @param __FLAG__: specifies the RTC Tamper Flag sources to be enabled or disabled.
Kojto 93:e188a91d3eaa 601 * This parameter can be:
Kojto 93:e188a91d3eaa 602 * @arg RTC_FLAG_WUTF
Kojto 93:e188a91d3eaa 603 * @retval None
Kojto 93:e188a91d3eaa 604 */
Kojto 93:e188a91d3eaa 605 #define __HAL_RTC_WAKEUPTIMER_CLEAR_FLAG(__HANDLE__, __FLAG__) ((__HANDLE__)->Instance->ISR) = (~(((__FLAG__) | RTC_ISR_INIT)& 0x0000FFFF)|((__HANDLE__)->Instance->ISR & RTC_ISR_INIT))
Kojto 93:e188a91d3eaa 606 #endif /* defined(STM32F071xB) || defined(STM32F072xB) || defined(STM32F078xx) || defined(STM32F091xC) || defined(STM32F098xx) || defined(STM32F070xB) || defined(STM32F030xC) */
Kojto 93:e188a91d3eaa 607 /**
Kojto 93:e188a91d3eaa 608 * @}
Kojto 93:e188a91d3eaa 609 */
Kojto 93:e188a91d3eaa 610
Kojto 93:e188a91d3eaa 611 /* Exported functions --------------------------------------------------------*/
Kojto 93:e188a91d3eaa 612 /** @addtogroup RTCEx_Exported_Functions
Kojto 93:e188a91d3eaa 613 * @{
Kojto 93:e188a91d3eaa 614 */
Kojto 93:e188a91d3eaa 615
Kojto 93:e188a91d3eaa 616 /** @addtogroup RTCEx_Exported_Functions_Group1
Kojto 93:e188a91d3eaa 617 * @{
Kojto 93:e188a91d3eaa 618 */
Kojto 93:e188a91d3eaa 619
Kojto 93:e188a91d3eaa 620 /* RTC TimeStamp and Tamper functions *****************************************/
Kojto 93:e188a91d3eaa 621 HAL_StatusTypeDef HAL_RTCEx_SetTimeStamp(RTC_HandleTypeDef *hrtc, uint32_t TimeStampEdge, uint32_t RTC_TimeStampPin);
Kojto 93:e188a91d3eaa 622 HAL_StatusTypeDef HAL_RTCEx_SetTimeStamp_IT(RTC_HandleTypeDef *hrtc, uint32_t TimeStampEdge, uint32_t RTC_TimeStampPin);
Kojto 93:e188a91d3eaa 623 HAL_StatusTypeDef HAL_RTCEx_DeactivateTimeStamp(RTC_HandleTypeDef *hrtc);
Kojto 93:e188a91d3eaa 624 HAL_StatusTypeDef HAL_RTCEx_GetTimeStamp(RTC_HandleTypeDef *hrtc, RTC_TimeTypeDef *sTimeStamp, RTC_DateTypeDef *sTimeStampDate, uint32_t Format);
Kojto 93:e188a91d3eaa 625
Kojto 93:e188a91d3eaa 626 HAL_StatusTypeDef HAL_RTCEx_SetTamper(RTC_HandleTypeDef *hrtc, RTC_TamperTypeDef* sTamper);
Kojto 93:e188a91d3eaa 627 HAL_StatusTypeDef HAL_RTCEx_SetTamper_IT(RTC_HandleTypeDef *hrtc, RTC_TamperTypeDef* sTamper);
Kojto 93:e188a91d3eaa 628 HAL_StatusTypeDef HAL_RTCEx_DeactivateTamper(RTC_HandleTypeDef *hrtc, uint32_t Tamper);
Kojto 93:e188a91d3eaa 629 void HAL_RTCEx_TamperTimeStampIRQHandler(RTC_HandleTypeDef *hrtc);
Kojto 93:e188a91d3eaa 630
Kojto 93:e188a91d3eaa 631 void HAL_RTCEx_Tamper1EventCallback(RTC_HandleTypeDef *hrtc);
Kojto 93:e188a91d3eaa 632 void HAL_RTCEx_Tamper2EventCallback(RTC_HandleTypeDef *hrtc);
Kojto 93:e188a91d3eaa 633 #if defined(STM32F071xB) || defined(STM32F072xB) || defined(STM32F078xx) || defined(STM32F091xC) || defined(STM32F098xx) || defined(STM32F070xB) || defined(STM32F030xC)
Kojto 93:e188a91d3eaa 634 void HAL_RTCEx_Tamper3EventCallback(RTC_HandleTypeDef *hrtc);
Kojto 93:e188a91d3eaa 635 #endif
Kojto 93:e188a91d3eaa 636 void HAL_RTCEx_TimeStampEventCallback(RTC_HandleTypeDef *hrtc);
Kojto 93:e188a91d3eaa 637 HAL_StatusTypeDef HAL_RTCEx_PollForTimeStampEvent(RTC_HandleTypeDef *hrtc, uint32_t Timeout);
Kojto 93:e188a91d3eaa 638 HAL_StatusTypeDef HAL_RTCEx_PollForTamper1Event(RTC_HandleTypeDef *hrtc, uint32_t Timeout);
Kojto 93:e188a91d3eaa 639 HAL_StatusTypeDef HAL_RTCEx_PollForTamper2Event(RTC_HandleTypeDef *hrtc, uint32_t Timeout);
Kojto 93:e188a91d3eaa 640 #if defined(STM32F071xB) || defined(STM32F072xB) || defined(STM32F078xx) || defined(STM32F091xC) || defined(STM32F098xx) || defined(STM32F070xB) || defined(STM32F030xC)
Kojto 93:e188a91d3eaa 641 HAL_StatusTypeDef HAL_RTCEx_PollForTamper3Event(RTC_HandleTypeDef *hrtc, uint32_t Timeout);
Kojto 93:e188a91d3eaa 642 #endif
Kojto 93:e188a91d3eaa 643 /**
Kojto 93:e188a91d3eaa 644 * @}
Kojto 93:e188a91d3eaa 645 */
Kojto 93:e188a91d3eaa 646
Kojto 93:e188a91d3eaa 647 #if defined(STM32F071xB) || defined(STM32F072xB) || defined(STM32F078xx) || defined(STM32F091xC) || defined(STM32F098xx) || defined(STM32F070xB) || defined(STM32F030xC)
Kojto 93:e188a91d3eaa 648 /** @addtogroup RTCEx_Exported_Functions_Group2
Kojto 93:e188a91d3eaa 649 * @{
Kojto 93:e188a91d3eaa 650 */
Kojto 93:e188a91d3eaa 651
Kojto 93:e188a91d3eaa 652 /* RTC Wake-up functions ******************************************************/
Kojto 93:e188a91d3eaa 653 HAL_StatusTypeDef HAL_RTCEx_SetWakeUpTimer(RTC_HandleTypeDef *hrtc, uint32_t WakeUpCounter, uint32_t WakeUpClock);
Kojto 93:e188a91d3eaa 654 HAL_StatusTypeDef HAL_RTCEx_SetWakeUpTimer_IT(RTC_HandleTypeDef *hrtc, uint32_t WakeUpCounter, uint32_t WakeUpClock);
Kojto 93:e188a91d3eaa 655 uint32_t HAL_RTCEx_DeactivateWakeUpTimer(RTC_HandleTypeDef *hrtc);
Kojto 93:e188a91d3eaa 656 uint32_t HAL_RTCEx_GetWakeUpTimer(RTC_HandleTypeDef *hrtc);
Kojto 93:e188a91d3eaa 657 void HAL_RTCEx_WakeUpTimerIRQHandler(RTC_HandleTypeDef *hrtc);
Kojto 93:e188a91d3eaa 658 void HAL_RTCEx_WakeUpTimerEventCallback(RTC_HandleTypeDef *hrtc);
Kojto 93:e188a91d3eaa 659 HAL_StatusTypeDef HAL_RTCEx_PollForWakeUpTimerEvent(RTC_HandleTypeDef *hrtc, uint32_t Timeout);
Kojto 93:e188a91d3eaa 660 #endif
Kojto 93:e188a91d3eaa 661 /**
Kojto 93:e188a91d3eaa 662 * @}
Kojto 93:e188a91d3eaa 663 */
Kojto 93:e188a91d3eaa 664
Kojto 93:e188a91d3eaa 665 /** @addtogroup RTCEx_Exported_Functions_Group3
Kojto 93:e188a91d3eaa 666 * @{
Kojto 93:e188a91d3eaa 667 */
Kojto 93:e188a91d3eaa 668
Kojto 93:e188a91d3eaa 669 /* Extension Control functions ************************************************/
Kojto 93:e188a91d3eaa 670 #if !defined(STM32F030x6) && !defined(STM32F030x8) && !defined(STM32F030xC) && !defined(STM32F070x6) && !defined(STM32F070xB)
Kojto 93:e188a91d3eaa 671 void HAL_RTCEx_BKUPWrite(RTC_HandleTypeDef *hrtc, uint32_t BackupRegister, uint32_t Data);
Kojto 93:e188a91d3eaa 672 uint32_t HAL_RTCEx_BKUPRead(RTC_HandleTypeDef *hrtc, uint32_t BackupRegister);
Kojto 93:e188a91d3eaa 673 #endif /* !defined(STM32F030x6) && !defined(STM32F030x8) && !defined(STM32F030xC) && !defined(STM32F070x6) && !defined(STM32F070xB) */
Kojto 93:e188a91d3eaa 674
Kojto 93:e188a91d3eaa 675 HAL_StatusTypeDef HAL_RTCEx_SetSmoothCalib(RTC_HandleTypeDef *hrtc, uint32_t SmoothCalibPeriod, uint32_t SmoothCalibPlusPulses, uint32_t SmouthCalibMinusPulsesValue);
Kojto 93:e188a91d3eaa 676 HAL_StatusTypeDef HAL_RTCEx_SetSynchroShift(RTC_HandleTypeDef *hrtc, uint32_t ShiftAdd1S, uint32_t ShiftSubFS);
Kojto 93:e188a91d3eaa 677 HAL_StatusTypeDef HAL_RTCEx_SetCalibrationOutPut(RTC_HandleTypeDef *hrtc, uint32_t CalibOutput);
Kojto 93:e188a91d3eaa 678 HAL_StatusTypeDef HAL_RTCEx_DeactivateCalibrationOutPut(RTC_HandleTypeDef *hrtc);
Kojto 93:e188a91d3eaa 679 HAL_StatusTypeDef HAL_RTCEx_SetRefClock(RTC_HandleTypeDef *hrtc);
Kojto 93:e188a91d3eaa 680 HAL_StatusTypeDef HAL_RTCEx_DeactivateRefClock(RTC_HandleTypeDef *hrtc);
Kojto 93:e188a91d3eaa 681 HAL_StatusTypeDef HAL_RTCEx_EnableBypassShadow(RTC_HandleTypeDef *hrtc);
Kojto 93:e188a91d3eaa 682 HAL_StatusTypeDef HAL_RTCEx_DisableBypassShadow(RTC_HandleTypeDef *hrtc);
Kojto 93:e188a91d3eaa 683 /**
Kojto 93:e188a91d3eaa 684 * @}
Kojto 93:e188a91d3eaa 685 */
Kojto 93:e188a91d3eaa 686
Kojto 93:e188a91d3eaa 687 /* Extension RTC features functions *******************************************/
Kojto 93:e188a91d3eaa 688
Kojto 93:e188a91d3eaa 689 /**
Kojto 93:e188a91d3eaa 690 * @}
Kojto 93:e188a91d3eaa 691 */
Kojto 93:e188a91d3eaa 692
Kojto 93:e188a91d3eaa 693 /**
Kojto 93:e188a91d3eaa 694 * @}
Kojto 93:e188a91d3eaa 695 */
Kojto 93:e188a91d3eaa 696
Kojto 93:e188a91d3eaa 697 /**
Kojto 93:e188a91d3eaa 698 * @}
Kojto 93:e188a91d3eaa 699 */
Kojto 93:e188a91d3eaa 700
Kojto 93:e188a91d3eaa 701 #ifdef __cplusplus
Kojto 93:e188a91d3eaa 702 }
Kojto 93:e188a91d3eaa 703 #endif
Kojto 93:e188a91d3eaa 704
Kojto 93:e188a91d3eaa 705 #endif /* __STM32F0xx_HAL_RTC_EX_H */
Kojto 93:e188a91d3eaa 706
Kojto 93:e188a91d3eaa 707 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
Kojto 93:e188a91d3eaa 708