Move telemetry displayport init and cms device registering
[betaflight.git] / lib / main / STM32F3 / Drivers / STM32F30x_StdPeriph_Driver / inc / stm32f30x_comp.h
blobce41a21e11c02d870b00c0b5b05327c828955f51
1 /**
2 ******************************************************************************
3 * @file stm32f30x_comp.h
4 * @author MCD Application Team
5 * @version V1.1.1
6 * @date 04-April-2014
7 * @brief This file contains all the functions prototypes for the COMP firmware
8 * library.
9 ******************************************************************************
10 * @attention
12 * <h2><center>&copy; COPYRIGHT 2014 STMicroelectronics</center></h2>
14 * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
15 * You may not use this file except in compliance with the License.
16 * You may obtain a copy of the License at:
18 * http://www.st.com/software_license_agreement_liberty_v2
20 * Unless required by applicable law or agreed to in writing, software
21 * distributed under the License is distributed on an "AS IS" BASIS,
22 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
23 * See the License for the specific language governing permissions and
24 * limitations under the License.
26 ******************************************************************************
27 */
29 /* Define to prevent recursive inclusion -------------------------------------*/
30 #ifndef __STM32F30x_COMP_H
31 #define __STM32F30x_COMP_H
33 #ifdef __cplusplus
34 extern "C" {
35 #endif
37 /* Includes ------------------------------------------------------------------*/
38 #include "stm32f30x.h"
40 /** @addtogroup STM32F30x_StdPeriph_Driver
41 * @{
44 /** @addtogroup COMP
45 * @{
48 /* Exported types ------------------------------------------------------------*/
50 /**
51 * @brief COMP Init structure definition
54 typedef struct
57 uint32_t COMP_InvertingInput; /*!< Selects the inverting input of the comparator.
58 This parameter can be a value of @ref COMP_InvertingInput */
60 uint32_t COMP_NonInvertingInput; /*!< Selects the non inverting input of the comparator.
61 This parameter can be a value of @ref COMP_NonInvertingInput */
63 uint32_t COMP_Output; /*!< Selects the output redirection of the comparator.
64 This parameter can be a value of @ref COMP_Output */
66 uint32_t COMP_BlankingSrce; /*!< Selects the output blanking source of the comparator.
67 This parameter can be a value of @ref COMP_BlankingSrce */
69 uint32_t COMP_OutputPol; /*!< Selects the output polarity of the comparator.
70 This parameter can be a value of @ref COMP_OutputPoloarity */
72 uint32_t COMP_Hysteresis; /*!< Selects the hysteresis voltage of the comparator.
73 This parameter can be a value of @ref COMP_Hysteresis */
75 uint32_t COMP_Mode; /*!< Selects the operating mode of the comparator
76 and allows to adjust the speed/consumption.
77 This parameter can be a value of @ref COMP_Mode */
78 }COMP_InitTypeDef;
80 /* Exported constants --------------------------------------------------------*/
82 /** @defgroup COMP_Exported_Constants
83 * @{
84 */
86 /** @defgroup COMP_Selection
87 * @{
90 #define COMP_Selection_COMP1 ((uint32_t)0x00000000) /*!< COMP1 Selection */
91 #define COMP_Selection_COMP2 ((uint32_t)0x00000004) /*!< COMP2 Selection */
92 #define COMP_Selection_COMP3 ((uint32_t)0x00000008) /*!< COMP3 Selection */
93 #define COMP_Selection_COMP4 ((uint32_t)0x0000000C) /*!< COMP4 Selection */
94 #define COMP_Selection_COMP5 ((uint32_t)0x00000010) /*!< COMP5 Selection */
95 #define COMP_Selection_COMP6 ((uint32_t)0x00000014) /*!< COMP6 Selection */
96 #define COMP_Selection_COMP7 ((uint32_t)0x00000018) /*!< COMP7 Selection */
98 #define IS_COMP_ALL_PERIPH(PERIPH) (((PERIPH) == COMP_Selection_COMP1) || \
99 ((PERIPH) == COMP_Selection_COMP2) || \
100 ((PERIPH) == COMP_Selection_COMP3) || \
101 ((PERIPH) == COMP_Selection_COMP4) || \
102 ((PERIPH) == COMP_Selection_COMP5) || \
103 ((PERIPH) == COMP_Selection_COMP6) || \
104 ((PERIPH) == COMP_Selection_COMP7))
107 * @}
110 /** @defgroup COMP_InvertingInput
111 * @{
114 #define COMP_InvertingInput_1_4VREFINT ((uint32_t)0x00000000) /*!< 1/4 VREFINT connected to comparator inverting input */
115 #define COMP_InvertingInput_1_2VREFINT COMP_CSR_COMPxINSEL_0 /*!< 1/2 VREFINT connected to comparator inverting input */
116 #define COMP_InvertingInput_3_4VREFINT COMP_CSR_COMPxINSEL_1 /*!< 3/4 VREFINT connected to comparator inverting input */
117 #define COMP_InvertingInput_VREFINT ((uint32_t)0x00000030) /*!< VREFINT connected to comparator inverting input */
118 #define COMP_InvertingInput_DAC1OUT1 COMP_CSR_COMPxINSEL_2 /*!< DAC1_OUT1 (PA4) connected to comparator inverting input */
119 #define COMP_InvertingInput_DAC1OUT2 ((uint32_t)0x00000050) /*!< DAC1_OUT2 (PA5) connected to comparator inverting input */
121 #define COMP_InvertingInput_IO1 ((uint32_t)0x00000060) /*!< I/O1 (PA0 for COMP1, PA2 for COMP2, PD15 for COMP3,
122 PE8 for COMP4, PD13 for COMP5, PD10 for COMP6,
123 PC0 for COMP7) connected to comparator inverting input */
125 #define COMP_InvertingInput_IO2 COMP_CSR_COMPxINSEL /*!< I/O2 (PB12 for COMP3, PB2 for COMP4, PB10 for COMP5,
126 PB15 for COMP6) connected to comparator inverting input */
128 #define COMP_InvertingInput_DAC2OUT1 COMP_CSR_COMPxINSEL_3 /*!< DAC2_OUT1 (PA6) connected to comparator inverting input */
130 #define IS_COMP_INVERTING_INPUT(INPUT) (((INPUT) == COMP_InvertingInput_1_4VREFINT) || \
131 ((INPUT) == COMP_InvertingInput_1_2VREFINT) || \
132 ((INPUT) == COMP_InvertingInput_3_4VREFINT) || \
133 ((INPUT) == COMP_InvertingInput_VREFINT) || \
134 ((INPUT) == COMP_InvertingInput_DAC1OUT1) || \
135 ((INPUT) == COMP_InvertingInput_DAC1OUT2) || \
136 ((INPUT) == COMP_InvertingInput_IO1) || \
137 ((INPUT) == COMP_InvertingInput_IO2) || \
138 ((INPUT) == COMP_InvertingInput_DAC2OUT1))
140 * @}
143 /** @defgroup COMP_NonInvertingInput
144 * @{
147 #define COMP_NonInvertingInput_IO1 ((uint32_t)0x00000000) /*!< I/O1 (PA1 for COMP1, PA7 for COMP2, PB14 for COMP3,
148 PB0 for COMP4, PD12 for COMP5, PD11 for COMP6,
149 PA0 for COMP7) connected to comparator non inverting input */
151 #define COMP_NonInvertingInput_IO2 COMP_CSR_COMPxNONINSEL /*!< I/O2 (PA3 for COMP2, PD14 for COMP3, PE7 for COMP4, PB13 for COMP5,
152 PB11 for COMP6, PC1 for COMP7) connected to comparator non inverting input */
154 #define IS_COMP_NONINVERTING_INPUT(INPUT) (((INPUT) == COMP_NonInvertingInput_IO1) || \
155 ((INPUT) == COMP_NonInvertingInput_IO2))
157 * @}
160 /** @defgroup COMP_Output
161 * @{
164 #define COMP_Output_None ((uint32_t)0x00000000) /*!< COMP output isn't connected to other peripherals */
166 /* Output Redirection common for all comparators COMP1...COMP7 */
167 #define COMP_Output_TIM1BKIN COMP_CSR_COMPxOUTSEL_0 /*!< COMP output connected to TIM1 Break Input (BKIN) */
168 #define COMP_Output_TIM1BKIN2 ((uint32_t)0x00000800) /*!< COMP output connected to TIM1 Break Input 2 (BKIN2) */
169 #define COMP_Output_TIM8BKIN ((uint32_t)0x00000C00) /*!< COMP output connected to TIM8 Break Input (BKIN) */
170 #define COMP_Output_TIM8BKIN2 ((uint32_t)0x00001000) /*!< COMP output connected to TIM8 Break Input 2 (BKIN2) */
171 #define COMP_Output_TIM1BKIN2_TIM8BKIN2 ((uint32_t)0x00001400) /*!< COMP output connected to TIM1 Break Input 2 and TIM8 Break Input 2 */
173 /* Output Redirection common for COMP1 and COMP2 */
174 #define COMP_Output_TIM1OCREFCLR ((uint32_t)0x00001800) /*!< COMP output connected to TIM1 OCREF Clear */
175 #define COMP_Output_TIM1IC1 ((uint32_t)0x00001C00) /*!< COMP output connected to TIM1 Input Capture 1 */
176 #define COMP_Output_TIM2IC4 ((uint32_t)0x00002000) /*!< COMP output connected to TIM2 Input Capture 4 */
177 #define COMP_Output_TIM2OCREFCLR ((uint32_t)0x00002400) /*!< COMP output connected to TIM2 OCREF Clear */
178 #define COMP_Output_TIM3IC1 ((uint32_t)0x00002800) /*!< COMP output connected to TIM3 Input Capture 1 */
179 #define COMP_Output_TIM3OCREFCLR ((uint32_t)0x00002C00) /*!< COMP output connected to TIM3 OCREF Clear */
181 /* Output Redirection specific to COMP2 */
182 #define COMP_Output_HRTIM1_FLT6 ((uint32_t)0x00003000) /*!< COMP output connected to HRTIM1 FLT6 */
183 #define COMP_Output_HRTIM1_EE1_2 ((uint32_t)0x00003400) /*!< COMP output connected to HRTIM1 EE1_2*/
184 #define COMP_Output_HRTIM1_EE6_2 ((uint32_t)0x00003800) /*!< COMP output connected to HRTIM1 EE6_2 */
186 /* Output Redirection specific to COMP3 */
187 #define COMP_Output_TIM4IC1 ((uint32_t)0x00001C00) /*!< COMP output connected to TIM4 Input Capture 1 */
188 #define COMP_Output_TIM3IC2 ((uint32_t)0x00002000) /*!< COMP output connected to TIM3 Input Capture 2 */
189 #define COMP_Output_TIM15IC1 ((uint32_t)0x00002800) /*!< COMP output connected to TIM15 Input Capture 1 */
190 #define COMP_Output_TIM15BKIN ((uint32_t)0x00002C00) /*!< COMP output connected to TIM15 Break Input (BKIN) */
192 /* Output Redirection specific to COMP4 */
193 #define COMP_Output_TIM3IC3 ((uint32_t)0x00001800) /*!< COMP output connected to TIM3 Input Capture 3 */
194 #define COMP_Output_TIM8OCREFCLR ((uint32_t)0x00001C00) /*!< COMP output connected to TIM8 OCREF Clear */
195 #define COMP_Output_TIM15IC2 ((uint32_t)0x00002000) /*!< COMP output connected to TIM15 Input Capture 2 */
196 #define COMP_Output_TIM4IC2 ((uint32_t)0x00002400) /*!< COMP output connected to TIM4 Input Capture 2 */
197 #define COMP_Output_TIM15OCREFCLR ((uint32_t)0x00002800) /*!< COMP output connected to TIM15 OCREF Clear */
199 #define COMP_Output_HRTIM1_FLT7 ((uint32_t)0x00003000) /*!< COMP output connected to HRTIM1 FLT7 */
200 #define COMP_Output_HRTIM1_EE2_2 ((uint32_t)0x00003400) /*!< COMP output connected to HRTIM1 EE2_2*/
201 #define COMP_Output_HRTIM1_EE7_2 ((uint32_t)0x00003800) /*!< COMP output connected to HRTIM1 EE7_2 */
203 /* Output Redirection specific to COMP5 */
204 #define COMP_Output_TIM2IC1 ((uint32_t)0x00001800) /*!< COMP output connected to TIM2 Input Capture 1 */
205 #define COMP_Output_TIM17IC1 ((uint32_t)0x00002000) /*!< COMP output connected to TIM17 Input Capture 1 */
206 #define COMP_Output_TIM4IC3 ((uint32_t)0x00002400) /*!< COMP output connected to TIM4 Input Capture 3 */
207 #define COMP_Output_TIM16BKIN ((uint32_t)0x00002800) /*!< COMP output connected to TIM16 Break Input (BKIN) */
209 /* Output Redirection specific to COMP6 */
210 #define COMP_Output_TIM2IC2 ((uint32_t)0x00001800) /*!< COMP output connected to TIM2 Input Capture 2 */
211 #define COMP_Output_COMP6TIM2OCREFCLR ((uint32_t)0x00002000) /*!< COMP output connected to TIM2 OCREF Clear */
212 #define COMP_Output_TIM16OCREFCLR ((uint32_t)0x00002400) /*!< COMP output connected to TIM16 OCREF Clear */
213 #define COMP_Output_TIM16IC1 ((uint32_t)0x00002800) /*!< COMP output connected to TIM16 Input Capture 1 */
214 #define COMP_Output_TIM4IC4 ((uint32_t)0x00002C00) /*!< COMP output connected to TIM4 Input Capture 4 */
216 #define COMP_Output_HRTIM1_FLT8 ((uint32_t)0x00003000) /*!< COMP output connected to HRTIM1 FLT8 */
217 #define COMP_Output_HRTIM1_EE3_2 ((uint32_t)0x00003400) /*!< COMP output connected to HRTIM1 EE3_2*/
218 #define COMP_Output_HRTIM1_EE8_2 ((uint32_t)0x00003800) /*!< COMP output connected to HRTIM1 EE8_2 */
220 /* Output Redirection specific to COMP7 */
221 #define COMP_Output_TIM2IC3 ((uint32_t)0x00002000) /*!< COMP output connected to TIM2 Input Capture 3 */
222 #define COMP_Output_TIM1IC2 ((uint32_t)0x00002400) /*!< COMP output connected to TIM1 Input Capture 2 */
223 #define COMP_Output_TIM17OCREFCLR ((uint32_t)0x00002800) /*!< COMP output connected to TIM16 OCREF Clear */
224 #define COMP_Output_TIM17BKIN ((uint32_t)0x00002C00) /*!< COMP output connected to TIM16 Break Input (BKIN) */
226 #define IS_COMP_OUTPUT(OUTPUT) (((OUTPUT) == COMP_Output_None) || \
227 ((OUTPUT) == COMP_Output_TIM1BKIN) || \
228 ((OUTPUT) == COMP_Output_TIM1IC1) || \
229 ((OUTPUT) == COMP_Output_TIM1OCREFCLR) || \
230 ((OUTPUT) == COMP_Output_TIM2IC4) || \
231 ((OUTPUT) == COMP_Output_TIM2OCREFCLR) || \
232 ((OUTPUT) == COMP_Output_COMP6TIM2OCREFCLR) || \
233 ((OUTPUT) == COMP_Output_TIM3IC1) || \
234 ((OUTPUT) == COMP_Output_TIM3OCREFCLR) || \
235 ((OUTPUT) == COMP_Output_TIM8BKIN) || \
236 ((OUTPUT) == COMP_Output_TIM1BKIN2) || \
237 ((OUTPUT) == COMP_Output_TIM8BKIN2) || \
238 ((OUTPUT) == COMP_Output_TIM2OCREFCLR) || \
239 ((OUTPUT) == COMP_Output_TIM1BKIN2_TIM8BKIN2) || \
240 ((OUTPUT) == COMP_Output_TIM3IC2) || \
241 ((OUTPUT) == COMP_Output_TIM4IC1) || \
242 ((OUTPUT) == COMP_Output_TIM15IC1) || \
243 ((OUTPUT) == COMP_Output_TIM15BKIN) || \
244 ((OUTPUT) == COMP_Output_TIM8OCREFCLR) || \
245 ((OUTPUT) == COMP_Output_TIM3IC3) || \
246 ((OUTPUT) == COMP_Output_TIM4IC1) || \
247 ((OUTPUT) == COMP_Output_TIM15IC1) || \
248 ((OUTPUT) == COMP_Output_TIM2IC1) || \
249 ((OUTPUT) == COMP_Output_TIM4IC3) || \
250 ((OUTPUT) == COMP_Output_TIM16BKIN) || \
251 ((OUTPUT) == COMP_Output_TIM17IC1) || \
252 ((OUTPUT) == COMP_Output_TIM2IC2) || \
253 ((OUTPUT) == COMP_Output_TIM16IC1) || \
254 ((OUTPUT) == COMP_Output_TIM4IC4) || \
255 ((OUTPUT) == COMP_Output_TIM16OCREFCLR) || \
256 ((OUTPUT) == COMP_Output_TIM2IC3) || \
257 ((OUTPUT) == COMP_Output_TIM1IC2) || \
258 ((OUTPUT) == COMP_Output_TIM17BKIN) || \
259 ((OUTPUT) == COMP_Output_TIM17OCREFCLR) || \
260 ((OUTPUT) == COMP_Output_HRTIM1_FLT6) || \
261 ((OUTPUT) == COMP_Output_HRTIM1_EE1_2) || \
262 ((OUTPUT) == COMP_Output_HRTIM1_EE6_2) || \
263 ((OUTPUT) == COMP_Output_HRTIM1_FLT7) || \
264 ((OUTPUT) == COMP_Output_HRTIM1_EE2_2) || \
265 ((OUTPUT) == COMP_Output_HRTIM1_EE7_2) || \
266 ((OUTPUT) == COMP_Output_HRTIM1_FLT8) || \
267 ((OUTPUT) == COMP_Output_HRTIM1_EE3_2) || \
268 ((OUTPUT) == COMP_Output_HRTIM1_EE8_2))
271 * @}
274 /** @defgroup COMP_BlankingSrce
275 * @{
278 /* No blanking source can be selected for all comparators */
279 #define COMP_BlankingSrce_None ((uint32_t)0x00000000) /*!< No blanking source */
281 /* Blanking source common for COMP1, COMP2, COMP3 and COMP7 */
282 #define COMP_BlankingSrce_TIM1OC5 COMP_CSR_COMPxBLANKING_0 /*!< TIM1 OC5 selected as blanking source for compartor */
284 /* Blanking source common for COMP1 and COMP2 */
285 #define COMP_BlankingSrce_TIM2OC3 COMP_CSR_COMPxBLANKING_1 /*!< TIM2 OC5 selected as blanking source for compartor */
287 /* Blanking source common for COMP1, COMP2 and COMP5 */
288 #define COMP_BlankingSrce_TIM3OC3 ((uint32_t)0x000C0000) /*!< TIM2 OC3 selected as blanking source for compartor */
290 /* Blanking source common for COMP3 and COMP6 */
291 #define COMP_BlankingSrce_TIM2OC4 ((uint32_t)0x000C0000) /*!< TIM2 OC4 selected as blanking source for compartor */
293 /* Blanking source common for COMP4, COMP5, COMP6 and COMP7 */
294 #define COMP_BlankingSrce_TIM8OC5 COMP_CSR_COMPxBLANKING_1 /*!< TIM8 OC5 selected as blanking source for compartor */
296 /* Blanking source for COMP4 */
297 #define COMP_BlankingSrce_TIM3OC4 COMP_CSR_COMPxBLANKING_0 /*!< TIM3 OC4 selected as blanking source for compartor */
298 #define COMP_BlankingSrce_TIM15OC1 ((uint32_t)0x000C0000) /*!< TIM15 OC1 selected as blanking source for compartor */
300 /* Blanking source common for COMP6 and COMP7 */
301 #define COMP_BlankingSrce_TIM15OC2 COMP_CSR_COMPxBLANKING_2 /*!< TIM15 OC2 selected as blanking source for compartor */
303 #define IS_COMP_BLANKING_SOURCE(SOURCE) (((SOURCE) == COMP_BlankingSrce_None) || \
304 ((SOURCE) == COMP_BlankingSrce_TIM1OC5) || \
305 ((SOURCE) == COMP_BlankingSrce_TIM2OC3) || \
306 ((SOURCE) == COMP_BlankingSrce_TIM3OC3) || \
307 ((SOURCE) == COMP_BlankingSrce_TIM2OC4) || \
308 ((SOURCE) == COMP_BlankingSrce_TIM8OC5) || \
309 ((SOURCE) == COMP_BlankingSrce_TIM3OC4) || \
310 ((SOURCE) == COMP_BlankingSrce_TIM15OC1) || \
311 ((SOURCE) == COMP_BlankingSrce_TIM15OC2))
313 * @}
316 /** @defgroup COMP_OutputPoloarity
317 * @{
319 #define COMP_OutputPol_NonInverted ((uint32_t)0x00000000) /*!< COMP output on GPIO isn't inverted */
320 #define COMP_OutputPol_Inverted COMP_CSR_COMPxPOL /*!< COMP output on GPIO is inverted */
322 #define IS_COMP_OUTPUT_POL(POL) (((POL) == COMP_OutputPol_NonInverted) || \
323 ((POL) == COMP_OutputPol_Inverted))
326 * @}
329 /** @defgroup COMP_Hysteresis
330 * @{
332 /* Please refer to the electrical characteristics in the device datasheet for
333 the hysteresis level */
334 #define COMP_Hysteresis_No 0x00000000 /*!< No hysteresis */
335 #define COMP_Hysteresis_Low COMP_CSR_COMPxHYST_0 /*!< Hysteresis level low */
336 #define COMP_Hysteresis_Medium COMP_CSR_COMPxHYST_1 /*!< Hysteresis level medium */
337 #define COMP_Hysteresis_High COMP_CSR_COMPxHYST /*!< Hysteresis level high */
339 #define IS_COMP_HYSTERESIS(HYSTERESIS) (((HYSTERESIS) == COMP_Hysteresis_No) || \
340 ((HYSTERESIS) == COMP_Hysteresis_Low) || \
341 ((HYSTERESIS) == COMP_Hysteresis_Medium) || \
342 ((HYSTERESIS) == COMP_Hysteresis_High))
344 * @}
347 /** @defgroup COMP_Mode
348 * @{
350 /* Please refer to the electrical characteristics in the device datasheet for
351 the power consumption values */
352 #define COMP_Mode_HighSpeed 0x00000000 /*!< High Speed */
353 #define COMP_Mode_MediumSpeed COMP_CSR_COMPxMODE_0 /*!< Medium Speed */
354 #define COMP_Mode_LowPower COMP_CSR_COMPxMODE_1 /*!< Low power mode */
355 #define COMP_Mode_UltraLowPower COMP_CSR_COMPxMODE /*!< Ultra-low power mode */
357 #define IS_COMP_MODE(MODE) (((MODE) == COMP_Mode_UltraLowPower) || \
358 ((MODE) == COMP_Mode_LowPower) || \
359 ((MODE) == COMP_Mode_MediumSpeed) || \
360 ((MODE) == COMP_Mode_HighSpeed))
362 * @}
365 /** @defgroup COMP_OutputLevel
366 * @{
368 /* When output polarity is not inverted, comparator output is high when
369 the non-inverting input is at a higher voltage than the inverting input */
370 #define COMP_OutputLevel_High COMP_CSR_COMPxOUT
371 /* When output polarity is not inverted, comparator output is low when
372 the non-inverting input is at a lower voltage than the inverting input*/
373 #define COMP_OutputLevel_Low ((uint32_t)0x00000000)
376 * @}
379 /** @defgroup COMP_WindowMode
380 * @{
382 #define IS_COMP_WINDOW(WINDOW) (((WINDOW) == COMP_Selection_COMP2) || \
383 ((WINDOW) == COMP_Selection_COMP4) || \
384 ((WINDOW) == COMP_Selection_COMP6))
386 * @}
390 * @}
393 /* Exported macro ------------------------------------------------------------*/
394 /* Exported functions ------------------------------------------------------- */
396 /* Function used to set the COMP configuration to the default reset state ****/
397 void COMP_DeInit(uint32_t COMP_Selection);
399 /* Initialization and Configuration functions *********************************/
400 void COMP_Init(uint32_t COMP_Selection, COMP_InitTypeDef* COMP_InitStruct);
401 void COMP_StructInit(COMP_InitTypeDef* COMP_InitStruct);
402 void COMP_Cmd(uint32_t COMP_Selection, FunctionalState NewState);
403 void COMP_SwitchCmd(uint32_t COMP_Selection, FunctionalState NewState);
404 uint32_t COMP_GetOutputLevel(uint32_t COMP_Selection);
406 /* Window mode control function ***********************************************/
407 void COMP_WindowCmd(uint32_t COMP_Selection, FunctionalState NewState);
409 /* COMP configuration locking function ****************************************/
410 void COMP_LockConfig(uint32_t COMP_Selection);
412 #ifdef __cplusplus
414 #endif
416 #endif /*__STM32F30x_COMP_H */
419 * @}
423 * @}
426 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/