annotate Common/Drivers/STM32F4xx_HAL_DRIVER_v120/Inc/stm32f4xx_hal_rtc_ex.h @ 38:5f11787b4f42

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