.
TARGET_NUCLEO_F072RB/stm32f0xx_hal_comp.h@0:88e313c910d0, 2015-08-13 (annotated)
- Committer:
- jhon309
- Date:
- Thu Aug 13 00:20:09 2015 +0000
- Revision:
- 0:88e313c910d0
RTC Example
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
jhon309 | 0:88e313c910d0 | 1 | /** |
jhon309 | 0:88e313c910d0 | 2 | ****************************************************************************** |
jhon309 | 0:88e313c910d0 | 3 | * @file stm32f0xx_hal_comp.h |
jhon309 | 0:88e313c910d0 | 4 | * @author MCD Application Team |
jhon309 | 0:88e313c910d0 | 5 | * @version V1.2.0 |
jhon309 | 0:88e313c910d0 | 6 | * @date 11-December-2014 |
jhon309 | 0:88e313c910d0 | 7 | * @brief Header file of COMP HAL module. |
jhon309 | 0:88e313c910d0 | 8 | ****************************************************************************** |
jhon309 | 0:88e313c910d0 | 9 | * @attention |
jhon309 | 0:88e313c910d0 | 10 | * |
jhon309 | 0:88e313c910d0 | 11 | * <h2><center>© COPYRIGHT(c) 2014 STMicroelectronics</center></h2> |
jhon309 | 0:88e313c910d0 | 12 | * |
jhon309 | 0:88e313c910d0 | 13 | * Redistribution and use in source and binary forms, with or without modification, |
jhon309 | 0:88e313c910d0 | 14 | * are permitted provided that the following conditions are met: |
jhon309 | 0:88e313c910d0 | 15 | * 1. Redistributions of source code must retain the above copyright notice, |
jhon309 | 0:88e313c910d0 | 16 | * this list of conditions and the following disclaimer. |
jhon309 | 0:88e313c910d0 | 17 | * 2. Redistributions in binary form must reproduce the above copyright notice, |
jhon309 | 0:88e313c910d0 | 18 | * this list of conditions and the following disclaimer in the documentation |
jhon309 | 0:88e313c910d0 | 19 | * and/or other materials provided with the distribution. |
jhon309 | 0:88e313c910d0 | 20 | * 3. Neither the name of STMicroelectronics nor the names of its contributors |
jhon309 | 0:88e313c910d0 | 21 | * may be used to endorse or promote products derived from this software |
jhon309 | 0:88e313c910d0 | 22 | * without specific prior written permission. |
jhon309 | 0:88e313c910d0 | 23 | * |
jhon309 | 0:88e313c910d0 | 24 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
jhon309 | 0:88e313c910d0 | 25 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
jhon309 | 0:88e313c910d0 | 26 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
jhon309 | 0:88e313c910d0 | 27 | * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE |
jhon309 | 0:88e313c910d0 | 28 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
jhon309 | 0:88e313c910d0 | 29 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
jhon309 | 0:88e313c910d0 | 30 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
jhon309 | 0:88e313c910d0 | 31 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
jhon309 | 0:88e313c910d0 | 32 | * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
jhon309 | 0:88e313c910d0 | 33 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
jhon309 | 0:88e313c910d0 | 34 | * |
jhon309 | 0:88e313c910d0 | 35 | ****************************************************************************** |
jhon309 | 0:88e313c910d0 | 36 | */ |
jhon309 | 0:88e313c910d0 | 37 | |
jhon309 | 0:88e313c910d0 | 38 | /* Define to prevent recursive inclusion -------------------------------------*/ |
jhon309 | 0:88e313c910d0 | 39 | #ifndef __STM32F0xx_HAL_COMP_H |
jhon309 | 0:88e313c910d0 | 40 | #define __STM32F0xx_HAL_COMP_H |
jhon309 | 0:88e313c910d0 | 41 | |
jhon309 | 0:88e313c910d0 | 42 | #ifdef __cplusplus |
jhon309 | 0:88e313c910d0 | 43 | extern "C" { |
jhon309 | 0:88e313c910d0 | 44 | #endif |
jhon309 | 0:88e313c910d0 | 45 | |
jhon309 | 0:88e313c910d0 | 46 | #if defined(STM32F051x8) || defined(STM32F058xx) || \ |
jhon309 | 0:88e313c910d0 | 47 | defined(STM32F071xB) || defined(STM32F072xB) || defined(STM32F078xx) || \ |
jhon309 | 0:88e313c910d0 | 48 | defined(STM32F091xC) || defined(STM32F098xx) |
jhon309 | 0:88e313c910d0 | 49 | |
jhon309 | 0:88e313c910d0 | 50 | /* Includes ------------------------------------------------------------------*/ |
jhon309 | 0:88e313c910d0 | 51 | #include "stm32f0xx_hal_def.h" |
jhon309 | 0:88e313c910d0 | 52 | |
jhon309 | 0:88e313c910d0 | 53 | /** @addtogroup STM32F0xx_HAL_Driver |
jhon309 | 0:88e313c910d0 | 54 | * @{ |
jhon309 | 0:88e313c910d0 | 55 | */ |
jhon309 | 0:88e313c910d0 | 56 | |
jhon309 | 0:88e313c910d0 | 57 | /** @addtogroup COMP COMP HAL Module Driver |
jhon309 | 0:88e313c910d0 | 58 | * @{ |
jhon309 | 0:88e313c910d0 | 59 | */ |
jhon309 | 0:88e313c910d0 | 60 | |
jhon309 | 0:88e313c910d0 | 61 | /* Exported types ------------------------------------------------------------*/ |
jhon309 | 0:88e313c910d0 | 62 | /** @defgroup COMP_Exported_Types COMP Exported Types |
jhon309 | 0:88e313c910d0 | 63 | * @{ |
jhon309 | 0:88e313c910d0 | 64 | */ |
jhon309 | 0:88e313c910d0 | 65 | |
jhon309 | 0:88e313c910d0 | 66 | /** |
jhon309 | 0:88e313c910d0 | 67 | * @brief COMP Init structure definition |
jhon309 | 0:88e313c910d0 | 68 | */ |
jhon309 | 0:88e313c910d0 | 69 | typedef struct |
jhon309 | 0:88e313c910d0 | 70 | { |
jhon309 | 0:88e313c910d0 | 71 | |
jhon309 | 0:88e313c910d0 | 72 | uint32_t InvertingInput; /*!< Selects the inverting input of the comparator. |
jhon309 | 0:88e313c910d0 | 73 | This parameter can be a value of @ref COMP_InvertingInput */ |
jhon309 | 0:88e313c910d0 | 74 | |
jhon309 | 0:88e313c910d0 | 75 | uint32_t NonInvertingInput; /*!< Selects the non inverting input of the comparator. |
jhon309 | 0:88e313c910d0 | 76 | This parameter can be a value of @ref COMP_NonInvertingInput */ |
jhon309 | 0:88e313c910d0 | 77 | |
jhon309 | 0:88e313c910d0 | 78 | uint32_t Output; /*!< Selects the output redirection of the comparator. |
jhon309 | 0:88e313c910d0 | 79 | This parameter can be a value of @ref COMP_Output */ |
jhon309 | 0:88e313c910d0 | 80 | |
jhon309 | 0:88e313c910d0 | 81 | uint32_t OutputPol; /*!< Selects the output polarity of the comparator. |
jhon309 | 0:88e313c910d0 | 82 | This parameter can be a value of @ref COMP_OutputPolarity */ |
jhon309 | 0:88e313c910d0 | 83 | |
jhon309 | 0:88e313c910d0 | 84 | uint32_t Hysteresis; /*!< Selects the hysteresis voltage of the comparator. |
jhon309 | 0:88e313c910d0 | 85 | This parameter can be a value of @ref COMP_Hysteresis */ |
jhon309 | 0:88e313c910d0 | 86 | |
jhon309 | 0:88e313c910d0 | 87 | uint32_t Mode; /*!< Selects the operating comsumption mode of the comparator |
jhon309 | 0:88e313c910d0 | 88 | to adjust the speed/consumption. |
jhon309 | 0:88e313c910d0 | 89 | This parameter can be a value of @ref COMP_Mode */ |
jhon309 | 0:88e313c910d0 | 90 | |
jhon309 | 0:88e313c910d0 | 91 | uint32_t WindowMode; /*!< Selects the window mode of the comparator 1 & 2. |
jhon309 | 0:88e313c910d0 | 92 | This parameter can be a value of @ref COMP_WindowMode */ |
jhon309 | 0:88e313c910d0 | 93 | |
jhon309 | 0:88e313c910d0 | 94 | uint32_t TriggerMode; /*!< Selects the trigger mode of the comparator (interrupt mode). |
jhon309 | 0:88e313c910d0 | 95 | This parameter can be a value of @ref COMP_TriggerMode */ |
jhon309 | 0:88e313c910d0 | 96 | |
jhon309 | 0:88e313c910d0 | 97 | }COMP_InitTypeDef; |
jhon309 | 0:88e313c910d0 | 98 | |
jhon309 | 0:88e313c910d0 | 99 | /** |
jhon309 | 0:88e313c910d0 | 100 | * @brief COMP Handle Structure definition |
jhon309 | 0:88e313c910d0 | 101 | */ |
jhon309 | 0:88e313c910d0 | 102 | typedef struct |
jhon309 | 0:88e313c910d0 | 103 | { |
jhon309 | 0:88e313c910d0 | 104 | COMP_TypeDef *Instance; /*!< Register base address */ |
jhon309 | 0:88e313c910d0 | 105 | COMP_InitTypeDef Init; /*!< COMP required parameters */ |
jhon309 | 0:88e313c910d0 | 106 | HAL_LockTypeDef Lock; /*!< Locking object */ |
jhon309 | 0:88e313c910d0 | 107 | __IO uint32_t State; /*!< COMP communication state |
jhon309 | 0:88e313c910d0 | 108 | This parameter can be a value of @ref COMP_State */ |
jhon309 | 0:88e313c910d0 | 109 | }COMP_HandleTypeDef; |
jhon309 | 0:88e313c910d0 | 110 | |
jhon309 | 0:88e313c910d0 | 111 | /** |
jhon309 | 0:88e313c910d0 | 112 | * @} |
jhon309 | 0:88e313c910d0 | 113 | */ |
jhon309 | 0:88e313c910d0 | 114 | |
jhon309 | 0:88e313c910d0 | 115 | /* Exported constants --------------------------------------------------------*/ |
jhon309 | 0:88e313c910d0 | 116 | /** @defgroup COMP_Exported_Constants COMP Exported Constants |
jhon309 | 0:88e313c910d0 | 117 | * @{ |
jhon309 | 0:88e313c910d0 | 118 | */ |
jhon309 | 0:88e313c910d0 | 119 | |
jhon309 | 0:88e313c910d0 | 120 | /** @defgroup COMP_State COMP State |
jhon309 | 0:88e313c910d0 | 121 | * @{ |
jhon309 | 0:88e313c910d0 | 122 | */ |
jhon309 | 0:88e313c910d0 | 123 | #define HAL_COMP_STATE_RESET ((uint32_t)0x00000000) /*!< COMP not yet initialized or disabled */ |
jhon309 | 0:88e313c910d0 | 124 | #define HAL_COMP_STATE_READY ((uint32_t)0x00000001) /*!< COMP initialized and ready for use */ |
jhon309 | 0:88e313c910d0 | 125 | #define HAL_COMP_STATE_READY_LOCKED ((uint32_t)0x00000011) /*!< COMP initialized but the configuration is locked */ |
jhon309 | 0:88e313c910d0 | 126 | #define HAL_COMP_STATE_BUSY ((uint32_t)0x00000002) /*!< COMP is running */ |
jhon309 | 0:88e313c910d0 | 127 | #define HAL_COMP_STATE_BUSY_LOCKED ((uint32_t)0x00000012) /*!< COMP is running and the configuration is locked */ |
jhon309 | 0:88e313c910d0 | 128 | /** |
jhon309 | 0:88e313c910d0 | 129 | * @} |
jhon309 | 0:88e313c910d0 | 130 | */ |
jhon309 | 0:88e313c910d0 | 131 | |
jhon309 | 0:88e313c910d0 | 132 | /** @defgroup COMP_OutputPolarity COMP OutputPolarity |
jhon309 | 0:88e313c910d0 | 133 | * @{ |
jhon309 | 0:88e313c910d0 | 134 | */ |
jhon309 | 0:88e313c910d0 | 135 | #define COMP_OUTPUTPOL_NONINVERTED ((uint32_t)0x00000000) /*!< COMP output on GPIO isn't inverted */ |
jhon309 | 0:88e313c910d0 | 136 | #define COMP_OUTPUTPOL_INVERTED COMP_CSR_COMP1POL /*!< COMP output on GPIO is inverted */ |
jhon309 | 0:88e313c910d0 | 137 | |
jhon309 | 0:88e313c910d0 | 138 | #define IS_COMP_OUTPUTPOL(POL) (((POL) == COMP_OUTPUTPOL_NONINVERTED) || \ |
jhon309 | 0:88e313c910d0 | 139 | ((POL) == COMP_OUTPUTPOL_INVERTED)) |
jhon309 | 0:88e313c910d0 | 140 | /** |
jhon309 | 0:88e313c910d0 | 141 | * @} |
jhon309 | 0:88e313c910d0 | 142 | */ |
jhon309 | 0:88e313c910d0 | 143 | |
jhon309 | 0:88e313c910d0 | 144 | /** @defgroup COMP_Hysteresis COMP Hysteresis |
jhon309 | 0:88e313c910d0 | 145 | * @{ |
jhon309 | 0:88e313c910d0 | 146 | */ |
jhon309 | 0:88e313c910d0 | 147 | #define COMP_HYSTERESIS_NONE ((uint32_t)0x00000000) /*!< No hysteresis */ |
jhon309 | 0:88e313c910d0 | 148 | #define COMP_HYSTERESIS_LOW COMP_CSR_COMP1HYST_0 /*!< Hysteresis level low */ |
jhon309 | 0:88e313c910d0 | 149 | #define COMP_HYSTERESIS_MEDIUM COMP_CSR_COMP1HYST_1 /*!< Hysteresis level medium */ |
jhon309 | 0:88e313c910d0 | 150 | #define COMP_HYSTERESIS_HIGH COMP_CSR_COMP1HYST /*!< Hysteresis level high */ |
jhon309 | 0:88e313c910d0 | 151 | |
jhon309 | 0:88e313c910d0 | 152 | #define IS_COMP_HYSTERESIS(HYSTERESIS) (((HYSTERESIS) == COMP_HYSTERESIS_NONE) || \ |
jhon309 | 0:88e313c910d0 | 153 | ((HYSTERESIS) == COMP_HYSTERESIS_LOW) || \ |
jhon309 | 0:88e313c910d0 | 154 | ((HYSTERESIS) == COMP_HYSTERESIS_MEDIUM) || \ |
jhon309 | 0:88e313c910d0 | 155 | ((HYSTERESIS) == COMP_HYSTERESIS_HIGH)) |
jhon309 | 0:88e313c910d0 | 156 | /** |
jhon309 | 0:88e313c910d0 | 157 | * @} |
jhon309 | 0:88e313c910d0 | 158 | */ |
jhon309 | 0:88e313c910d0 | 159 | |
jhon309 | 0:88e313c910d0 | 160 | /** @defgroup COMP_Mode COMP Mode |
jhon309 | 0:88e313c910d0 | 161 | * @{ |
jhon309 | 0:88e313c910d0 | 162 | */ |
jhon309 | 0:88e313c910d0 | 163 | /* Please refer to the electrical characteristics in the device datasheet for |
jhon309 | 0:88e313c910d0 | 164 | the power consumption values */ |
jhon309 | 0:88e313c910d0 | 165 | #define COMP_MODE_HIGHSPEED ((uint32_t)0x00000000) /*!< High Speed */ |
jhon309 | 0:88e313c910d0 | 166 | #define COMP_MODE_MEDIUMSPEED COMP_CSR_COMP1MODE_0 /*!< Medium Speed */ |
jhon309 | 0:88e313c910d0 | 167 | #define COMP_MODE_LOWPOWER COMP_CSR_COMP1MODE_1 /*!< Low power mode */ |
jhon309 | 0:88e313c910d0 | 168 | #define COMP_MODE_ULTRALOWPOWER COMP_CSR_COMP1MODE /*!< Ultra-low power mode */ |
jhon309 | 0:88e313c910d0 | 169 | |
jhon309 | 0:88e313c910d0 | 170 | #define IS_COMP_MODE(MODE) (((MODE) == COMP_MODE_HIGHSPEED) || \ |
jhon309 | 0:88e313c910d0 | 171 | ((MODE) == COMP_MODE_MEDIUMSPEED) || \ |
jhon309 | 0:88e313c910d0 | 172 | ((MODE) == COMP_MODE_LOWPOWER) || \ |
jhon309 | 0:88e313c910d0 | 173 | ((MODE) == COMP_MODE_ULTRALOWPOWER)) |
jhon309 | 0:88e313c910d0 | 174 | |
jhon309 | 0:88e313c910d0 | 175 | /** |
jhon309 | 0:88e313c910d0 | 176 | * @} |
jhon309 | 0:88e313c910d0 | 177 | */ |
jhon309 | 0:88e313c910d0 | 178 | |
jhon309 | 0:88e313c910d0 | 179 | /** @defgroup COMP_InvertingInput COMP InvertingInput |
jhon309 | 0:88e313c910d0 | 180 | * @{ |
jhon309 | 0:88e313c910d0 | 181 | */ |
jhon309 | 0:88e313c910d0 | 182 | |
jhon309 | 0:88e313c910d0 | 183 | #define COMP_INVERTINGINPUT_1_4VREFINT ((uint32_t)0x00000000) /*!< 1/4 VREFINT connected to comparator inverting input */ |
jhon309 | 0:88e313c910d0 | 184 | #define COMP_INVERTINGINPUT_1_2VREFINT COMP_CSR_COMP1INSEL_0 /*!< 1/2 VREFINT connected to comparator inverting input */ |
jhon309 | 0:88e313c910d0 | 185 | #define COMP_INVERTINGINPUT_3_4VREFINT COMP_CSR_COMP1INSEL_1 /*!< 3/4 VREFINT connected to comparator inverting input */ |
jhon309 | 0:88e313c910d0 | 186 | #define COMP_INVERTINGINPUT_VREFINT (COMP_CSR_COMP1INSEL_1|COMP_CSR_COMP1INSEL_0) /*!< VREFINT connected to comparator inverting input */ |
jhon309 | 0:88e313c910d0 | 187 | #define COMP_INVERTINGINPUT_DAC1 COMP_CSR_COMP1INSEL_2 /*!< DAC_OUT1 (PA4) connected to comparator inverting input */ |
jhon309 | 0:88e313c910d0 | 188 | #define COMP_INVERTINGINPUT_DAC1SWITCHCLOSED (COMP_CSR_COMP1INSEL_2|COMP_CSR_COMP1SW1) /*!< DAC_OUT1 (PA4) connected to comparator inverting input |
jhon309 | 0:88e313c910d0 | 189 | and close switch (PA0 for COMP1 only) */ |
jhon309 | 0:88e313c910d0 | 190 | #define COMP_INVERTINGINPUT_DAC2 (COMP_CSR_COMP1INSEL_2|COMP_CSR_COMP1INSEL_0) /*!< DAC_OUT2 (PA5) connected to comparator inverting input */ |
jhon309 | 0:88e313c910d0 | 191 | #define COMP_INVERTINGINPUT_IO1 (COMP_CSR_COMP1INSEL_2|COMP_CSR_COMP1INSEL_1) /*!< IO (PA0 for COMP1 and PA2 for COMP2) connected to comparator inverting input */ |
jhon309 | 0:88e313c910d0 | 192 | |
jhon309 | 0:88e313c910d0 | 193 | #define IS_COMP_INVERTINGINPUT(INPUT) (((INPUT) == COMP_INVERTINGINPUT_1_4VREFINT) || \ |
jhon309 | 0:88e313c910d0 | 194 | ((INPUT) == COMP_INVERTINGINPUT_1_2VREFINT) || \ |
jhon309 | 0:88e313c910d0 | 195 | ((INPUT) == COMP_INVERTINGINPUT_3_4VREFINT) || \ |
jhon309 | 0:88e313c910d0 | 196 | ((INPUT) == COMP_INVERTINGINPUT_VREFINT) || \ |
jhon309 | 0:88e313c910d0 | 197 | ((INPUT) == COMP_INVERTINGINPUT_DAC1) || \ |
jhon309 | 0:88e313c910d0 | 198 | ((INPUT) == COMP_INVERTINGINPUT_DAC1SWITCHCLOSED) || \ |
jhon309 | 0:88e313c910d0 | 199 | ((INPUT) == COMP_INVERTINGINPUT_DAC2) || \ |
jhon309 | 0:88e313c910d0 | 200 | ((INPUT) == COMP_INVERTINGINPUT_IO1)) |
jhon309 | 0:88e313c910d0 | 201 | /** |
jhon309 | 0:88e313c910d0 | 202 | * @} |
jhon309 | 0:88e313c910d0 | 203 | */ |
jhon309 | 0:88e313c910d0 | 204 | |
jhon309 | 0:88e313c910d0 | 205 | /** @defgroup COMP_NonInvertingInput COMP NonInvertingInput |
jhon309 | 0:88e313c910d0 | 206 | * @{ |
jhon309 | 0:88e313c910d0 | 207 | */ |
jhon309 | 0:88e313c910d0 | 208 | #define COMP_NONINVERTINGINPUT_IO1 ((uint32_t)0x00000000) /*!< I/O1 (PA1 for COMP1, PA3 for COMP2) |
jhon309 | 0:88e313c910d0 | 209 | connected to comparator non inverting input */ |
jhon309 | 0:88e313c910d0 | 210 | #define COMP_NONINVERTINGINPUT_DAC1SWITCHCLOSED COMP_CSR_COMP1SW1 /*!< DAC ouput connected to comparator COMP1 non inverting input */ |
jhon309 | 0:88e313c910d0 | 211 | |
jhon309 | 0:88e313c910d0 | 212 | #define IS_COMP_NONINVERTINGINPUT(INPUT) (((INPUT) == COMP_NONINVERTINGINPUT_IO1) || \ |
jhon309 | 0:88e313c910d0 | 213 | ((INPUT) == COMP_NONINVERTINGINPUT_DAC1SWITCHCLOSED)) |
jhon309 | 0:88e313c910d0 | 214 | /** |
jhon309 | 0:88e313c910d0 | 215 | * @} |
jhon309 | 0:88e313c910d0 | 216 | */ |
jhon309 | 0:88e313c910d0 | 217 | |
jhon309 | 0:88e313c910d0 | 218 | /** @defgroup COMP_Output COMP Output |
jhon309 | 0:88e313c910d0 | 219 | * @{ |
jhon309 | 0:88e313c910d0 | 220 | */ |
jhon309 | 0:88e313c910d0 | 221 | |
jhon309 | 0:88e313c910d0 | 222 | /* Output Redirection common for COMP1 and COMP2 */ |
jhon309 | 0:88e313c910d0 | 223 | #define COMP_OUTPUT_NONE ((uint32_t)0x00000000) /*!< COMP output isn't connected to other peripherals */ |
jhon309 | 0:88e313c910d0 | 224 | #define COMP_OUTPUT_TIM1BKIN COMP_CSR_COMP1OUTSEL_0 /*!< COMP output connected to TIM1 Break Input (BKIN) */ |
jhon309 | 0:88e313c910d0 | 225 | #define COMP_OUTPUT_TIM1IC1 COMP_CSR_COMP1OUTSEL_1 /*!< COMP output connected to TIM1 Input Capture 1 */ |
jhon309 | 0:88e313c910d0 | 226 | #define COMP_OUTPUT_TIM1OCREFCLR (COMP_CSR_COMP1OUTSEL_1|COMP_CSR_COMP1OUTSEL_0) /*!< COMP output connected to TIM1 OCREF Clear */ |
jhon309 | 0:88e313c910d0 | 227 | #define COMP_OUTPUT_TIM2IC4 COMP_CSR_COMP1OUTSEL_2 /*!< COMP output connected to TIM2 Input Capture 4 */ |
jhon309 | 0:88e313c910d0 | 228 | #define COMP_OUTPUT_TIM2OCREFCLR (COMP_CSR_COMP1OUTSEL_2|COMP_CSR_COMP1OUTSEL_0) /*!< COMP output connected to TIM2 OCREF Clear */ |
jhon309 | 0:88e313c910d0 | 229 | #define COMP_OUTPUT_TIM3IC1 (COMP_CSR_COMP1OUTSEL_2|COMP_CSR_COMP1OUTSEL_1) /*!< COMP output connected to TIM3 Input Capture 1 */ |
jhon309 | 0:88e313c910d0 | 230 | #define COMP_OUTPUT_TIM3OCREFCLR COMP_CSR_COMP1OUTSEL /*!< COMP output connected to TIM3 OCREF Clear */ |
jhon309 | 0:88e313c910d0 | 231 | |
jhon309 | 0:88e313c910d0 | 232 | #define IS_COMP_OUTPUT(OUTPUT) (((OUTPUT) == COMP_OUTPUT_NONE) || \ |
jhon309 | 0:88e313c910d0 | 233 | ((OUTPUT) == COMP_OUTPUT_TIM1BKIN) || \ |
jhon309 | 0:88e313c910d0 | 234 | ((OUTPUT) == COMP_OUTPUT_TIM1IC1) || \ |
jhon309 | 0:88e313c910d0 | 235 | ((OUTPUT) == COMP_OUTPUT_TIM1OCREFCLR) || \ |
jhon309 | 0:88e313c910d0 | 236 | ((OUTPUT) == COMP_OUTPUT_TIM2IC4) || \ |
jhon309 | 0:88e313c910d0 | 237 | ((OUTPUT) == COMP_OUTPUT_TIM2OCREFCLR) || \ |
jhon309 | 0:88e313c910d0 | 238 | ((OUTPUT) == COMP_OUTPUT_TIM3IC1) || \ |
jhon309 | 0:88e313c910d0 | 239 | ((OUTPUT) == COMP_OUTPUT_TIM3OCREFCLR)) |
jhon309 | 0:88e313c910d0 | 240 | |
jhon309 | 0:88e313c910d0 | 241 | /** |
jhon309 | 0:88e313c910d0 | 242 | * @} |
jhon309 | 0:88e313c910d0 | 243 | */ |
jhon309 | 0:88e313c910d0 | 244 | |
jhon309 | 0:88e313c910d0 | 245 | /** @defgroup COMP_OutputLevel COMP OutputLevel |
jhon309 | 0:88e313c910d0 | 246 | * @{ |
jhon309 | 0:88e313c910d0 | 247 | */ |
jhon309 | 0:88e313c910d0 | 248 | /* When output polarity is not inverted, comparator output is low when |
jhon309 | 0:88e313c910d0 | 249 | the non-inverting input is at a lower voltage than the inverting input*/ |
jhon309 | 0:88e313c910d0 | 250 | #define COMP_OUTPUTLEVEL_LOW ((uint32_t)0x00000000) |
jhon309 | 0:88e313c910d0 | 251 | /* When output polarity is not inverted, comparator output is high when |
jhon309 | 0:88e313c910d0 | 252 | the non-inverting input is at a higher voltage than the inverting input */ |
jhon309 | 0:88e313c910d0 | 253 | #define COMP_OUTPUTLEVEL_HIGH COMP_CSR_COMP1OUT |
jhon309 | 0:88e313c910d0 | 254 | /** |
jhon309 | 0:88e313c910d0 | 255 | * @} |
jhon309 | 0:88e313c910d0 | 256 | */ |
jhon309 | 0:88e313c910d0 | 257 | |
jhon309 | 0:88e313c910d0 | 258 | /** @defgroup COMP_TriggerMode COMP TriggerMode |
jhon309 | 0:88e313c910d0 | 259 | * @{ |
jhon309 | 0:88e313c910d0 | 260 | */ |
jhon309 | 0:88e313c910d0 | 261 | #define COMP_TRIGGERMODE_NONE ((uint32_t)0x00000000) /*!< No External Interrupt trigger detection */ |
jhon309 | 0:88e313c910d0 | 262 | #define COMP_TRIGGERMODE_IT_RISING ((uint32_t)0x00000001) /*!< External Interrupt Mode with Rising edge trigger detection */ |
jhon309 | 0:88e313c910d0 | 263 | #define COMP_TRIGGERMODE_IT_FALLING ((uint32_t)0x00000002) /*!< External Interrupt Mode with Falling edge trigger detection */ |
jhon309 | 0:88e313c910d0 | 264 | #define COMP_TRIGGERMODE_IT_RISING_FALLING ((uint32_t)0x00000003) /*!< External Interrupt Mode with Rising/Falling edge trigger detection */ |
jhon309 | 0:88e313c910d0 | 265 | |
jhon309 | 0:88e313c910d0 | 266 | #define IS_COMP_TRIGGERMODE(MODE) (((MODE) == COMP_TRIGGERMODE_NONE) || \ |
jhon309 | 0:88e313c910d0 | 267 | ((MODE) == COMP_TRIGGERMODE_IT_RISING) || \ |
jhon309 | 0:88e313c910d0 | 268 | ((MODE) == COMP_TRIGGERMODE_IT_FALLING) || \ |
jhon309 | 0:88e313c910d0 | 269 | ((MODE) == COMP_TRIGGERMODE_IT_RISING_FALLING)) |
jhon309 | 0:88e313c910d0 | 270 | /** |
jhon309 | 0:88e313c910d0 | 271 | * @} |
jhon309 | 0:88e313c910d0 | 272 | */ |
jhon309 | 0:88e313c910d0 | 273 | |
jhon309 | 0:88e313c910d0 | 274 | /** @defgroup COMP_WindowMode COMP WindowMode |
jhon309 | 0:88e313c910d0 | 275 | * @{ |
jhon309 | 0:88e313c910d0 | 276 | */ |
jhon309 | 0:88e313c910d0 | 277 | #define COMP_WINDOWMODE_DISABLED ((uint32_t)0x00000000) /*!< Window mode disabled */ |
jhon309 | 0:88e313c910d0 | 278 | #define COMP_WINDOWMODE_ENABLED COMP_CSR_WNDWEN /*!< Window mode enabled: non inverting input of comparator 2 |
jhon309 | 0:88e313c910d0 | 279 | is connected to the non inverting input of comparator 1 (PA1) */ |
jhon309 | 0:88e313c910d0 | 280 | |
jhon309 | 0:88e313c910d0 | 281 | #define IS_COMP_WINDOWMODE(WINDOWMODE) (((WINDOWMODE) == COMP_WINDOWMODE_DISABLED) || \ |
jhon309 | 0:88e313c910d0 | 282 | ((WINDOWMODE) == COMP_WINDOWMODE_ENABLED)) |
jhon309 | 0:88e313c910d0 | 283 | /** |
jhon309 | 0:88e313c910d0 | 284 | * @} |
jhon309 | 0:88e313c910d0 | 285 | */ |
jhon309 | 0:88e313c910d0 | 286 | |
jhon309 | 0:88e313c910d0 | 287 | /** @defgroup COMP_ExtiLineEvent COMP ExtiLineEvent |
jhon309 | 0:88e313c910d0 | 288 | * Elements values convention: XXXX0000 |
jhon309 | 0:88e313c910d0 | 289 | * - XXXX : Interrupt mask in the EMR/IMR/RTSR/FTSR register |
jhon309 | 0:88e313c910d0 | 290 | * @{ |
jhon309 | 0:88e313c910d0 | 291 | */ |
jhon309 | 0:88e313c910d0 | 292 | #define COMP_EXTI_LINE_COMP1_EVENT ((uint32_t)0x00200000) /*!< External interrupt line 21 Connected to COMP1 */ |
jhon309 | 0:88e313c910d0 | 293 | #define COMP_EXTI_LINE_COMP2_EVENT ((uint32_t)0x00400000) /*!< External interrupt line 22 Connected to COMP2 */ |
jhon309 | 0:88e313c910d0 | 294 | |
jhon309 | 0:88e313c910d0 | 295 | /** |
jhon309 | 0:88e313c910d0 | 296 | * @} |
jhon309 | 0:88e313c910d0 | 297 | */ |
jhon309 | 0:88e313c910d0 | 298 | |
jhon309 | 0:88e313c910d0 | 299 | /** @defgroup COMP_Lock COMP Lock |
jhon309 | 0:88e313c910d0 | 300 | * @{ |
jhon309 | 0:88e313c910d0 | 301 | */ |
jhon309 | 0:88e313c910d0 | 302 | #define COMP_LOCK_DISABLE ((uint32_t)0x00000000) |
jhon309 | 0:88e313c910d0 | 303 | #define COMP_LOCK_ENABLE COMP_CSR_COMP1LOCK |
jhon309 | 0:88e313c910d0 | 304 | |
jhon309 | 0:88e313c910d0 | 305 | #define COMP_STATE_BIT_LOCK ((uint32_t)0x10) |
jhon309 | 0:88e313c910d0 | 306 | /** |
jhon309 | 0:88e313c910d0 | 307 | * @} |
jhon309 | 0:88e313c910d0 | 308 | */ |
jhon309 | 0:88e313c910d0 | 309 | |
jhon309 | 0:88e313c910d0 | 310 | |
jhon309 | 0:88e313c910d0 | 311 | /** |
jhon309 | 0:88e313c910d0 | 312 | * @} |
jhon309 | 0:88e313c910d0 | 313 | */ |
jhon309 | 0:88e313c910d0 | 314 | |
jhon309 | 0:88e313c910d0 | 315 | /* Exported macros -----------------------------------------------------------*/ |
jhon309 | 0:88e313c910d0 | 316 | /** @defgroup COMP_Exported_Macros COMP Exported Macros |
jhon309 | 0:88e313c910d0 | 317 | * @{ |
jhon309 | 0:88e313c910d0 | 318 | */ |
jhon309 | 0:88e313c910d0 | 319 | |
jhon309 | 0:88e313c910d0 | 320 | /** @brief Reset COMP handle state |
jhon309 | 0:88e313c910d0 | 321 | * @param __HANDLE__: COMP handle. |
jhon309 | 0:88e313c910d0 | 322 | * @retval None |
jhon309 | 0:88e313c910d0 | 323 | */ |
jhon309 | 0:88e313c910d0 | 324 | #define __HAL_COMP_RESET_HANDLE_STATE(__HANDLE__) ((__HANDLE__)->State = HAL_COMP_STATE_RESET) |
jhon309 | 0:88e313c910d0 | 325 | |
jhon309 | 0:88e313c910d0 | 326 | /** |
jhon309 | 0:88e313c910d0 | 327 | * @brief Checks whether the specified EXTI line flag is set or not. |
jhon309 | 0:88e313c910d0 | 328 | * @param __FLAG__: specifies the COMP Exti sources to be checked. |
jhon309 | 0:88e313c910d0 | 329 | * This parameter can be a value of @ref COMP_ExtiLineEvent |
jhon309 | 0:88e313c910d0 | 330 | * @retval The state of __FLAG__ (SET or RESET). |
jhon309 | 0:88e313c910d0 | 331 | */ |
jhon309 | 0:88e313c910d0 | 332 | #define __HAL_COMP_EXTI_GET_FLAG(__FLAG__) (EXTI->PR & (__FLAG__)) |
jhon309 | 0:88e313c910d0 | 333 | |
jhon309 | 0:88e313c910d0 | 334 | /** |
jhon309 | 0:88e313c910d0 | 335 | * @brief Clear the COMP Exti flags. |
jhon309 | 0:88e313c910d0 | 336 | * @param __FLAG__: specifies the COMP Exti sources to be cleared. |
jhon309 | 0:88e313c910d0 | 337 | * This parameter can be a value of @ref COMP_ExtiLineEvent |
jhon309 | 0:88e313c910d0 | 338 | * @retval None. |
jhon309 | 0:88e313c910d0 | 339 | */ |
jhon309 | 0:88e313c910d0 | 340 | #define __HAL_COMP_EXTI_CLEAR_FLAG(__FLAG__) (EXTI->PR = (__FLAG__)) |
jhon309 | 0:88e313c910d0 | 341 | |
jhon309 | 0:88e313c910d0 | 342 | /** |
jhon309 | 0:88e313c910d0 | 343 | * @brief Enable the COMP Exti Line. |
jhon309 | 0:88e313c910d0 | 344 | * @param __EXTILINE__: specifies the COMP Exti sources to be enabled. |
jhon309 | 0:88e313c910d0 | 345 | * This parameter can be a value of @ref COMP_ExtiLineEvent |
jhon309 | 0:88e313c910d0 | 346 | * @retval None. |
jhon309 | 0:88e313c910d0 | 347 | */ |
jhon309 | 0:88e313c910d0 | 348 | #define __HAL_COMP_EXTI_ENABLE_IT(__EXTILINE__) (EXTI->IMR |= (__EXTILINE__)) |
jhon309 | 0:88e313c910d0 | 349 | |
jhon309 | 0:88e313c910d0 | 350 | /** |
jhon309 | 0:88e313c910d0 | 351 | * @brief Disable the COMP Exti Line. |
jhon309 | 0:88e313c910d0 | 352 | * @param __EXTILINE__: specifies the COMP Exti sources to be disabled. |
jhon309 | 0:88e313c910d0 | 353 | * This parameter can be a value of @ref COMP_ExtiLineEvent |
jhon309 | 0:88e313c910d0 | 354 | * @retval None. |
jhon309 | 0:88e313c910d0 | 355 | */ |
jhon309 | 0:88e313c910d0 | 356 | #define __HAL_COMP_EXTI_DISABLE_IT(__EXTILINE__) (EXTI->IMR &= ~(__EXTILINE__)) |
jhon309 | 0:88e313c910d0 | 357 | |
jhon309 | 0:88e313c910d0 | 358 | /** |
jhon309 | 0:88e313c910d0 | 359 | * @brief Enable the Exti Line rising edge trigger. |
jhon309 | 0:88e313c910d0 | 360 | * @param __EXTILINE__: specifies the COMP Exti sources to be enabled. |
jhon309 | 0:88e313c910d0 | 361 | * This parameter can be a value of @ref COMP_ExtiLineEvent |
jhon309 | 0:88e313c910d0 | 362 | * @retval None. |
jhon309 | 0:88e313c910d0 | 363 | */ |
jhon309 | 0:88e313c910d0 | 364 | #define __HAL_COMP_EXTI_RISING_IT_ENABLE(__EXTILINE__) (EXTI->RTSR |= (__EXTILINE__)) |
jhon309 | 0:88e313c910d0 | 365 | |
jhon309 | 0:88e313c910d0 | 366 | /** |
jhon309 | 0:88e313c910d0 | 367 | * @brief Disable the Exti Line rising edge trigger. |
jhon309 | 0:88e313c910d0 | 368 | * @param __EXTILINE__: specifies the COMP Exti sources to be disabled. |
jhon309 | 0:88e313c910d0 | 369 | * This parameter can be a value of @ref COMP_ExtiLineEvent |
jhon309 | 0:88e313c910d0 | 370 | * @retval None. |
jhon309 | 0:88e313c910d0 | 371 | */ |
jhon309 | 0:88e313c910d0 | 372 | #define __HAL_COMP_EXTI_RISING_IT_DISABLE(__EXTILINE__) (EXTI->RTSR &= ~(__EXTILINE__)) |
jhon309 | 0:88e313c910d0 | 373 | |
jhon309 | 0:88e313c910d0 | 374 | /** |
jhon309 | 0:88e313c910d0 | 375 | * @brief Enable the Exti Line falling edge trigger. |
jhon309 | 0:88e313c910d0 | 376 | * @param __EXTILINE__: specifies the COMP Exti sources to be enabled. |
jhon309 | 0:88e313c910d0 | 377 | * This parameter can be a value of @ref COMP_ExtiLineEvent |
jhon309 | 0:88e313c910d0 | 378 | * @retval None. |
jhon309 | 0:88e313c910d0 | 379 | */ |
jhon309 | 0:88e313c910d0 | 380 | #define __HAL_COMP_EXTI_FALLING_IT_ENABLE(__EXTILINE__) (EXTI->FTSR |= (__EXTILINE__)) |
jhon309 | 0:88e313c910d0 | 381 | |
jhon309 | 0:88e313c910d0 | 382 | /** |
jhon309 | 0:88e313c910d0 | 383 | * @brief Disable the Exti Line falling edge trigger. |
jhon309 | 0:88e313c910d0 | 384 | * @param __EXTILINE__: specifies the COMP Exti sources to be disabled. |
jhon309 | 0:88e313c910d0 | 385 | * This parameter can be a value of @ref COMP_ExtiLineEvent |
jhon309 | 0:88e313c910d0 | 386 | * @retval None. |
jhon309 | 0:88e313c910d0 | 387 | */ |
jhon309 | 0:88e313c910d0 | 388 | #define __HAL_COMP_EXTI_FALLING_IT_DISABLE(__EXTILINE__) (EXTI->FTSR &= ~(__EXTILINE__)) |
jhon309 | 0:88e313c910d0 | 389 | |
jhon309 | 0:88e313c910d0 | 390 | /** |
jhon309 | 0:88e313c910d0 | 391 | * @brief Get the specified EXTI line for a comparator instance |
jhon309 | 0:88e313c910d0 | 392 | * @param __INSTANCE__: specifies the COMP instance. |
jhon309 | 0:88e313c910d0 | 393 | * @retval value of @ref COMP_ExtiLineEvent |
jhon309 | 0:88e313c910d0 | 394 | */ |
jhon309 | 0:88e313c910d0 | 395 | #define __HAL_COMP_GET_EXTI_LINE(__INSTANCE__) (((__INSTANCE__) == COMP1) ? COMP_EXTI_LINE_COMP1_EVENT : \ |
jhon309 | 0:88e313c910d0 | 396 | COMP_EXTI_LINE_COMP2_EVENT) |
jhon309 | 0:88e313c910d0 | 397 | /** |
jhon309 | 0:88e313c910d0 | 398 | * @} |
jhon309 | 0:88e313c910d0 | 399 | */ |
jhon309 | 0:88e313c910d0 | 400 | |
jhon309 | 0:88e313c910d0 | 401 | /* Exported functions --------------------------------------------------------*/ |
jhon309 | 0:88e313c910d0 | 402 | /** @addtogroup COMP_Exported_Functions COMP Exported Functions |
jhon309 | 0:88e313c910d0 | 403 | * @{ |
jhon309 | 0:88e313c910d0 | 404 | */ |
jhon309 | 0:88e313c910d0 | 405 | /** @addtogroup COMP_Exported_Functions_Group1 Initialization/de-initialization functions |
jhon309 | 0:88e313c910d0 | 406 | * @brief Initialization and Configuration functions |
jhon309 | 0:88e313c910d0 | 407 | * @{ |
jhon309 | 0:88e313c910d0 | 408 | */ |
jhon309 | 0:88e313c910d0 | 409 | /* Initialization and de-initialization functions ****************************/ |
jhon309 | 0:88e313c910d0 | 410 | HAL_StatusTypeDef HAL_COMP_Init(COMP_HandleTypeDef *hcomp); |
jhon309 | 0:88e313c910d0 | 411 | HAL_StatusTypeDef HAL_COMP_DeInit (COMP_HandleTypeDef *hcomp); |
jhon309 | 0:88e313c910d0 | 412 | void HAL_COMP_MspInit(COMP_HandleTypeDef *hcomp); |
jhon309 | 0:88e313c910d0 | 413 | void HAL_COMP_MspDeInit(COMP_HandleTypeDef *hcomp); |
jhon309 | 0:88e313c910d0 | 414 | /** |
jhon309 | 0:88e313c910d0 | 415 | * @} |
jhon309 | 0:88e313c910d0 | 416 | */ |
jhon309 | 0:88e313c910d0 | 417 | |
jhon309 | 0:88e313c910d0 | 418 | /** @addtogroup COMP_Exported_Functions_Group2 I/O operation functions |
jhon309 | 0:88e313c910d0 | 419 | * @brief Data transfers functions |
jhon309 | 0:88e313c910d0 | 420 | * @{ |
jhon309 | 0:88e313c910d0 | 421 | */ |
jhon309 | 0:88e313c910d0 | 422 | /* IO operation functions *****************************************************/ |
jhon309 | 0:88e313c910d0 | 423 | HAL_StatusTypeDef HAL_COMP_Start(COMP_HandleTypeDef *hcomp); |
jhon309 | 0:88e313c910d0 | 424 | HAL_StatusTypeDef HAL_COMP_Stop(COMP_HandleTypeDef *hcomp); |
jhon309 | 0:88e313c910d0 | 425 | HAL_StatusTypeDef HAL_COMP_Start_IT(COMP_HandleTypeDef *hcomp); |
jhon309 | 0:88e313c910d0 | 426 | HAL_StatusTypeDef HAL_COMP_Stop_IT(COMP_HandleTypeDef *hcomp); |
jhon309 | 0:88e313c910d0 | 427 | void HAL_COMP_IRQHandler(COMP_HandleTypeDef *hcomp); |
jhon309 | 0:88e313c910d0 | 428 | /** |
jhon309 | 0:88e313c910d0 | 429 | * @} |
jhon309 | 0:88e313c910d0 | 430 | */ |
jhon309 | 0:88e313c910d0 | 431 | |
jhon309 | 0:88e313c910d0 | 432 | /** @addtogroup COMP_Exported_Functions_Group3 Peripheral Control functions |
jhon309 | 0:88e313c910d0 | 433 | * @brief management functions |
jhon309 | 0:88e313c910d0 | 434 | * @{ |
jhon309 | 0:88e313c910d0 | 435 | */ |
jhon309 | 0:88e313c910d0 | 436 | /* Peripheral Control functions ***********************************************/ |
jhon309 | 0:88e313c910d0 | 437 | HAL_StatusTypeDef HAL_COMP_Lock(COMP_HandleTypeDef *hcomp); |
jhon309 | 0:88e313c910d0 | 438 | uint32_t HAL_COMP_GetOutputLevel(COMP_HandleTypeDef *hcomp); |
jhon309 | 0:88e313c910d0 | 439 | |
jhon309 | 0:88e313c910d0 | 440 | /* Callback in Interrupt mode */ |
jhon309 | 0:88e313c910d0 | 441 | void HAL_COMP_TriggerCallback(COMP_HandleTypeDef *hcomp); |
jhon309 | 0:88e313c910d0 | 442 | /** |
jhon309 | 0:88e313c910d0 | 443 | * @} |
jhon309 | 0:88e313c910d0 | 444 | */ |
jhon309 | 0:88e313c910d0 | 445 | |
jhon309 | 0:88e313c910d0 | 446 | /** @addtogroup COMP_Exported_Functions_Group4 Peripheral State functions |
jhon309 | 0:88e313c910d0 | 447 | * @brief Peripheral State functions |
jhon309 | 0:88e313c910d0 | 448 | * @{ |
jhon309 | 0:88e313c910d0 | 449 | */ |
jhon309 | 0:88e313c910d0 | 450 | /* Peripheral State and Error functions ***************************************/ |
jhon309 | 0:88e313c910d0 | 451 | uint32_t HAL_COMP_GetState(COMP_HandleTypeDef *hcomp); |
jhon309 | 0:88e313c910d0 | 452 | /** |
jhon309 | 0:88e313c910d0 | 453 | * @} |
jhon309 | 0:88e313c910d0 | 454 | */ |
jhon309 | 0:88e313c910d0 | 455 | |
jhon309 | 0:88e313c910d0 | 456 | /** |
jhon309 | 0:88e313c910d0 | 457 | * @} |
jhon309 | 0:88e313c910d0 | 458 | */ |
jhon309 | 0:88e313c910d0 | 459 | |
jhon309 | 0:88e313c910d0 | 460 | /** |
jhon309 | 0:88e313c910d0 | 461 | * @} |
jhon309 | 0:88e313c910d0 | 462 | */ |
jhon309 | 0:88e313c910d0 | 463 | |
jhon309 | 0:88e313c910d0 | 464 | /** |
jhon309 | 0:88e313c910d0 | 465 | * @} |
jhon309 | 0:88e313c910d0 | 466 | */ |
jhon309 | 0:88e313c910d0 | 467 | |
jhon309 | 0:88e313c910d0 | 468 | #endif /* STM32F051x8 || STM32F058xx || */ |
jhon309 | 0:88e313c910d0 | 469 | /* STM32F071xB || STM32F072xB || STM32F078xx || */ |
jhon309 | 0:88e313c910d0 | 470 | /* STM32F091xC || STM32F098xx */ |
jhon309 | 0:88e313c910d0 | 471 | |
jhon309 | 0:88e313c910d0 | 472 | #ifdef __cplusplus |
jhon309 | 0:88e313c910d0 | 473 | } |
jhon309 | 0:88e313c910d0 | 474 | #endif |
jhon309 | 0:88e313c910d0 | 475 | |
jhon309 | 0:88e313c910d0 | 476 | #endif /* __STM32F0xx_HAL_COMP_H */ |
jhon309 | 0:88e313c910d0 | 477 | |
jhon309 | 0:88e313c910d0 | 478 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ |
jhon309 | 0:88e313c910d0 | 479 |