mbed library sources

Dependents:   Encrypted my_mbed lklk CyaSSL_DTLS_Cellular ... more

Superseded

This library was superseded by mbed-dev - https://os.mbed.com/users/mbed_official/code/mbed-dev/.

Development branch of the mbed library sources. This library is kept in synch with the latest changes from the mbed SDK and it is not guaranteed to work.

If you are looking for a stable and tested release, please import one of the official mbed library releases:

Import librarymbed

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

Committer:
mbed_official
Date:
Wed Jul 01 09:45:11 2015 +0100
Revision:
579:53297373a894
Parent:
489:119543c9f674
Synchronized with git revision d5b4d2ab9c47edb4dc5776e7177b0c2263459081

Full URL: https://github.com/mbedmicro/mbed/commit/d5b4d2ab9c47edb4dc5776e7177b0c2263459081/

Initial version of drivers for SAMR21

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mbed_official 376:cb4d9db17537 1 /**
mbed_official 376:cb4d9db17537 2 ******************************************************************************
mbed_official 376:cb4d9db17537 3 * @file stm32l0xx_hal_comp.h
mbed_official 376:cb4d9db17537 4 * @author MCD Application Team
mbed_official 489:119543c9f674 5 * @version V1.2.0
mbed_official 489:119543c9f674 6 * @date 06-February-2015
mbed_official 376:cb4d9db17537 7 * @brief Header file of COMP HAL module.
mbed_official 376:cb4d9db17537 8 ******************************************************************************
mbed_official 376:cb4d9db17537 9 * @attention
mbed_official 376:cb4d9db17537 10 *
mbed_official 489:119543c9f674 11 * <h2><center>&copy; COPYRIGHT(c) 2015 STMicroelectronics</center></h2>
mbed_official 376:cb4d9db17537 12 *
mbed_official 376:cb4d9db17537 13 * Redistribution and use in source and binary forms, with or without modification,
mbed_official 376:cb4d9db17537 14 * are permitted provided that the following conditions are met:
mbed_official 376:cb4d9db17537 15 * 1. Redistributions of source code must retain the above copyright notice,
mbed_official 376:cb4d9db17537 16 * this list of conditions and the following disclaimer.
mbed_official 376:cb4d9db17537 17 * 2. Redistributions in binary form must reproduce the above copyright notice,
mbed_official 376:cb4d9db17537 18 * this list of conditions and the following disclaimer in the documentation
mbed_official 376:cb4d9db17537 19 * and/or other materials provided with the distribution.
mbed_official 376:cb4d9db17537 20 * 3. Neither the name of STMicroelectronics nor the names of its contributors
mbed_official 376:cb4d9db17537 21 * may be used to endorse or promote products derived from this software
mbed_official 376:cb4d9db17537 22 * without specific prior written permission.
mbed_official 376:cb4d9db17537 23 *
mbed_official 376:cb4d9db17537 24 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
mbed_official 376:cb4d9db17537 25 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
mbed_official 376:cb4d9db17537 26 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
mbed_official 376:cb4d9db17537 27 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
mbed_official 376:cb4d9db17537 28 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
mbed_official 376:cb4d9db17537 29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
mbed_official 376:cb4d9db17537 30 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
mbed_official 376:cb4d9db17537 31 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
mbed_official 376:cb4d9db17537 32 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
mbed_official 376:cb4d9db17537 33 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
mbed_official 376:cb4d9db17537 34 *
mbed_official 376:cb4d9db17537 35 ******************************************************************************
mbed_official 376:cb4d9db17537 36 */
mbed_official 376:cb4d9db17537 37
mbed_official 376:cb4d9db17537 38 /* Define to prevent recursive inclusion -------------------------------------*/
mbed_official 376:cb4d9db17537 39 #ifndef __STM32L0xx_HAL_COMP_H
mbed_official 376:cb4d9db17537 40 #define __STM32L0xx_HAL_COMP_H
mbed_official 376:cb4d9db17537 41
mbed_official 376:cb4d9db17537 42 #ifdef __cplusplus
mbed_official 376:cb4d9db17537 43 extern "C" {
mbed_official 376:cb4d9db17537 44 #endif
mbed_official 376:cb4d9db17537 45
mbed_official 376:cb4d9db17537 46 /* Includes ------------------------------------------------------------------*/
mbed_official 376:cb4d9db17537 47 #include "stm32l0xx_hal_def.h"
mbed_official 376:cb4d9db17537 48
mbed_official 376:cb4d9db17537 49 /** @addtogroup STM32L0xx_HAL_Driver
mbed_official 376:cb4d9db17537 50 * @{
mbed_official 376:cb4d9db17537 51 */
mbed_official 376:cb4d9db17537 52
mbed_official 489:119543c9f674 53 /** @defgroup COMP COMP
mbed_official 376:cb4d9db17537 54 * @{
mbed_official 376:cb4d9db17537 55 */
mbed_official 376:cb4d9db17537 56
mbed_official 376:cb4d9db17537 57 /* Exported types ------------------------------------------------------------*/
mbed_official 376:cb4d9db17537 58
mbed_official 489:119543c9f674 59 /** @defgroup COMP_Exported_Types COMP Exported Types
mbed_official 489:119543c9f674 60 * @{
mbed_official 489:119543c9f674 61 */
mbed_official 489:119543c9f674 62
mbed_official 489:119543c9f674 63 /** @defgroup COMP_Init COMP init configuration structure
mbed_official 489:119543c9f674 64 * @{
mbed_official 489:119543c9f674 65 */
mbed_official 376:cb4d9db17537 66 /**
mbed_official 376:cb4d9db17537 67 * @brief COMP Init structure definition
mbed_official 376:cb4d9db17537 68 */
mbed_official 376:cb4d9db17537 69
mbed_official 376:cb4d9db17537 70 typedef struct
mbed_official 376:cb4d9db17537 71 {
mbed_official 376:cb4d9db17537 72
mbed_official 376:cb4d9db17537 73 uint32_t InvertingInput; /*!< Selects the inverting input of the comparator.
mbed_official 376:cb4d9db17537 74 This parameter can be a value of @ref COMP_InvertingInput */
mbed_official 376:cb4d9db17537 75
mbed_official 376:cb4d9db17537 76 uint32_t NonInvertingInput; /*!< Selects the non inverting input of the comparator.
mbed_official 376:cb4d9db17537 77 This parameter can be a value of @ref COMP_NonInvertingInput */
mbed_official 376:cb4d9db17537 78
mbed_official 376:cb4d9db17537 79 uint32_t LPTIMConnection; /*!< Selects if the COMP connection to the LPTIM is established or not.
mbed_official 376:cb4d9db17537 80 This parameter can be a value of @ref COMP_LPTIMConnection */
mbed_official 376:cb4d9db17537 81
mbed_official 376:cb4d9db17537 82 uint32_t OutputPol; /*!< Selects the output polarity of the comparator.
mbed_official 376:cb4d9db17537 83 This parameter can be a value of @ref COMP_OutputPolarity */
mbed_official 376:cb4d9db17537 84
mbed_official 376:cb4d9db17537 85 uint32_t Mode; /*!< Selects the operating comsumption mode of the comparator
mbed_official 376:cb4d9db17537 86 to adjust the speed/consumption.
mbed_official 376:cb4d9db17537 87 This parameter can be a value of @ref COMP_Mode */
mbed_official 376:cb4d9db17537 88
mbed_official 376:cb4d9db17537 89 uint32_t WindowMode; /*!< Selects the window mode of the comparator 2.
mbed_official 376:cb4d9db17537 90 This parameter can be a value of @ref COMP_WindowMode */
mbed_official 376:cb4d9db17537 91
mbed_official 376:cb4d9db17537 92 uint32_t TriggerMode; /*!< Selects the trigger mode of the comparator (interrupt mode).
mbed_official 376:cb4d9db17537 93 This parameter can be a value of @ref COMP_TriggerMode */
mbed_official 376:cb4d9db17537 94
mbed_official 376:cb4d9db17537 95 }COMP_InitTypeDef;
mbed_official 376:cb4d9db17537 96
mbed_official 489:119543c9f674 97 /**
mbed_official 489:119543c9f674 98 * @}
mbed_official 489:119543c9f674 99 */
mbed_official 489:119543c9f674 100
mbed_official 489:119543c9f674 101 /** @defgroup COMP_state COMP state definition
mbed_official 489:119543c9f674 102 * @{
mbed_official 489:119543c9f674 103 */
mbed_official 376:cb4d9db17537 104 /**
mbed_official 376:cb4d9db17537 105 * @brief HAL State structures definition
mbed_official 376:cb4d9db17537 106 */
mbed_official 376:cb4d9db17537 107 typedef enum
mbed_official 376:cb4d9db17537 108 {
mbed_official 376:cb4d9db17537 109 HAL_COMP_STATE_RESET = 0x00, /*!< COMP not yet initialized or disabled */
mbed_official 376:cb4d9db17537 110 HAL_COMP_STATE_READY = 0x01, /*!< COMP initialized and ready for use */
mbed_official 376:cb4d9db17537 111 HAL_COMP_STATE_READY_LOCKED = 0x11, /*!< COMP initialized but the configuration is locked */
mbed_official 376:cb4d9db17537 112 HAL_COMP_STATE_BUSY = 0x02, /*!< COMP is running */
mbed_official 376:cb4d9db17537 113 HAL_COMP_STATE_BUSY_LOCKED = 0x12 /*!< COMP is running and the configuration is locked */
mbed_official 376:cb4d9db17537 114 }HAL_COMP_StateTypeDef;
mbed_official 489:119543c9f674 115 /**
mbed_official 489:119543c9f674 116 * @}
mbed_official 489:119543c9f674 117 */
mbed_official 376:cb4d9db17537 118
mbed_official 489:119543c9f674 119 /** @defgroup COMP_handle COMP handler
mbed_official 489:119543c9f674 120 * @{
mbed_official 489:119543c9f674 121 */
mbed_official 376:cb4d9db17537 122 /**
mbed_official 376:cb4d9db17537 123 * @brief COMP Handle Structure definition
mbed_official 376:cb4d9db17537 124 */
mbed_official 376:cb4d9db17537 125 typedef struct
mbed_official 376:cb4d9db17537 126 {
mbed_official 376:cb4d9db17537 127 COMP_TypeDef *Instance; /*!< Register base address */
mbed_official 376:cb4d9db17537 128 COMP_InitTypeDef Init; /*!< COMP required parameters */
mbed_official 376:cb4d9db17537 129 HAL_LockTypeDef Lock; /*!< Locking object */
mbed_official 376:cb4d9db17537 130 __IO HAL_COMP_StateTypeDef State; /*!< COMP communication state */
mbed_official 376:cb4d9db17537 131 } COMP_HandleTypeDef;
mbed_official 376:cb4d9db17537 132
mbed_official 489:119543c9f674 133 /**
mbed_official 489:119543c9f674 134 * @}
mbed_official 489:119543c9f674 135 */
mbed_official 489:119543c9f674 136 /**
mbed_official 489:119543c9f674 137 * @}
mbed_official 489:119543c9f674 138 */
mbed_official 489:119543c9f674 139
mbed_official 376:cb4d9db17537 140 /* Exported constants --------------------------------------------------------*/
mbed_official 489:119543c9f674 141 /** @defgroup COMP_Exported_Constants COMP Exported Constants
mbed_official 376:cb4d9db17537 142 * @{
mbed_official 376:cb4d9db17537 143 */
mbed_official 376:cb4d9db17537 144
mbed_official 489:119543c9f674 145 /** @defgroup COMP_OutputPolarity COMP output polarity definitions
mbed_official 376:cb4d9db17537 146 * @{
mbed_official 376:cb4d9db17537 147 */
mbed_official 376:cb4d9db17537 148 #define COMP_OUTPUTPOL_NONINVERTED ((uint32_t)0x00000000) /*!< COMP output on GPIO isn't inverted */
mbed_official 376:cb4d9db17537 149 #define COMP_OUTPUTPOL_INVERTED COMP_CSR_COMPxPOLARITY /*!< COMP output on GPIO is inverted */
mbed_official 376:cb4d9db17537 150 #define IS_COMP_OUTPUTPOL(POL) (((POL) == COMP_OUTPUTPOL_NONINVERTED) || \
mbed_official 376:cb4d9db17537 151 ((POL) == COMP_OUTPUTPOL_INVERTED))
mbed_official 376:cb4d9db17537 152 /**
mbed_official 376:cb4d9db17537 153 * @}
mbed_official 376:cb4d9db17537 154 */
mbed_official 376:cb4d9db17537 155
mbed_official 376:cb4d9db17537 156
mbed_official 489:119543c9f674 157 /** @defgroup COMP_InvertingInput COMP inverting input definitions
mbed_official 376:cb4d9db17537 158 * @{
mbed_official 376:cb4d9db17537 159 */
mbed_official 376:cb4d9db17537 160
mbed_official 376:cb4d9db17537 161 /* Inverting Input specific to COMP1 */
mbed_official 376:cb4d9db17537 162 #define COMP_INVERTINGINPUT_VREFINT ((uint32_t)0x00000000) /*!< VREFINT connected to comparator1 inverting input */
mbed_official 376:cb4d9db17537 163 #define COMP_INVERTINGINPUT_IO1 ((uint32_t)0x00000010) /*!< I/O1 connected to comparator inverting input (PA0) for COMP1 and (PA2) for COMP2*/
mbed_official 376:cb4d9db17537 164 #define COMP_INVERTINGINPUT_DAC1 ((uint32_t)0x00000020) /*!< DAC1_OUT (PA4) connected to comparator inverting input */
mbed_official 376:cb4d9db17537 165 #define COMP_INVERTINGINPUT_IO2 ((uint32_t)0x00000030) /*!< I/O2 (PA5) connected to comparator inverting input */
mbed_official 376:cb4d9db17537 166
mbed_official 376:cb4d9db17537 167 /* Inverting Input specific to COMP2 */
mbed_official 376:cb4d9db17537 168 #define COMP_INVERTINGINPUT_1_4VREFINT ((uint32_t)0x00000040) /*!< 1/4 VREFINT connected to comparator inverting input */
mbed_official 376:cb4d9db17537 169 #define COMP_INVERTINGINPUT_1_2VREFINT ((uint32_t)0x00000050) /*!< 1/2 VREFINT connected to comparator inverting input */
mbed_official 376:cb4d9db17537 170 #define COMP_INVERTINGINPUT_3_4VREFINT ((uint32_t)0x00000060) /*!< 3/4 VREFINT connected to comparator inverting input */
mbed_official 376:cb4d9db17537 171 #define COMP_INVERTINGINPUT_IO3 ((uint32_t)0x00000070) /*!< I/O3 (PB3) for COMP2 connected to comparator inverting input */
mbed_official 376:cb4d9db17537 172
mbed_official 376:cb4d9db17537 173
mbed_official 376:cb4d9db17537 174 #define IS_COMP_INVERTINGINPUT(INPUT) (((INPUT) == COMP_INVERTINGINPUT_VREFINT) || \
mbed_official 376:cb4d9db17537 175 ((INPUT) == COMP_INVERTINGINPUT_IO1) || \
mbed_official 376:cb4d9db17537 176 ((INPUT) == COMP_INVERTINGINPUT_DAC1) || \
mbed_official 376:cb4d9db17537 177 ((INPUT) == COMP_INVERTINGINPUT_IO2) || \
mbed_official 376:cb4d9db17537 178 ((INPUT) == COMP_INVERTINGINPUT_1_4VREFINT) || \
mbed_official 376:cb4d9db17537 179 ((INPUT) == COMP_INVERTINGINPUT_1_2VREFINT) || \
mbed_official 376:cb4d9db17537 180 ((INPUT) == COMP_INVERTINGINPUT_3_4VREFINT) || \
mbed_official 376:cb4d9db17537 181 ((INPUT) == COMP_INVERTINGINPUT_IO3))
mbed_official 376:cb4d9db17537 182
mbed_official 376:cb4d9db17537 183 /**
mbed_official 376:cb4d9db17537 184 * @}
mbed_official 376:cb4d9db17537 185 */
mbed_official 376:cb4d9db17537 186
mbed_official 376:cb4d9db17537 187
mbed_official 489:119543c9f674 188 /** @defgroup COMP_NonInvertingInput COMP non inverting input definitions
mbed_official 376:cb4d9db17537 189 * @{
mbed_official 376:cb4d9db17537 190 */
mbed_official 376:cb4d9db17537 191
mbed_official 376:cb4d9db17537 192 #define COMP_NONINVERTINGINPUT_IO1 ((uint32_t)0x00000000) /*!< I/O1 (PA3) connected to comparator non inverting input */
mbed_official 376:cb4d9db17537 193 #define COMP_NONINVERTINGINPUT_IO2 ((uint32_t)0x00000100) /*!< I/O2 (PB4) connected to comparator non inverting input */
mbed_official 376:cb4d9db17537 194 #define COMP_NONINVERTINGINPUT_IO3 ((uint32_t)0x00000200) /*!< I/O3 (PB5) connected to comparator non inverting input */
mbed_official 376:cb4d9db17537 195 #define COMP_NONINVERTINGINPUT_IO4 ((uint32_t)0x00000300) /*!< I/O1 (PB6) connected to comparator non inverting input */
mbed_official 376:cb4d9db17537 196 #define COMP_NONINVERTINGINPUT_IO5 ((uint32_t)0x00000400) /*!< I/O3 (PB7) connected to comparator non inverting input */
mbed_official 376:cb4d9db17537 197 #define COMP_NONINVERTINGINPUT_IO6 ((uint32_t)0x00000500) /*!< I/O3 (PB7) connected to comparator non inverting input */
mbed_official 376:cb4d9db17537 198 #define COMP_NONINVERTINGINPUT_IO7 ((uint32_t)0x00000600) /*!< I/O3 (PB7) connected to comparator non inverting input */
mbed_official 376:cb4d9db17537 199 #define COMP_NONINVERTINGINPUT_IO8 ((uint32_t)0x00000700) /*!< I/O3 (PB7) connected to comparator non inverting input */
mbed_official 376:cb4d9db17537 200
mbed_official 376:cb4d9db17537 201 #define IS_COMP_NONINVERTINGINPUT(INPUT) (((INPUT) == COMP_NONINVERTINGINPUT_IO1) || \
mbed_official 376:cb4d9db17537 202 ((INPUT) == COMP_NONINVERTINGINPUT_IO2) || \
mbed_official 376:cb4d9db17537 203 ((INPUT) == COMP_NONINVERTINGINPUT_IO3) || \
mbed_official 376:cb4d9db17537 204 ((INPUT) == COMP_NONINVERTINGINPUT_IO4) || \
mbed_official 376:cb4d9db17537 205 ((INPUT) == COMP_NONINVERTINGINPUT_IO5) || \
mbed_official 376:cb4d9db17537 206 ((INPUT) == COMP_NONINVERTINGINPUT_IO6) || \
mbed_official 376:cb4d9db17537 207 ((INPUT) == COMP_NONINVERTINGINPUT_IO7) || \
mbed_official 376:cb4d9db17537 208 ((INPUT) == COMP_NONINVERTINGINPUT_IO8))
mbed_official 376:cb4d9db17537 209 /**
mbed_official 376:cb4d9db17537 210 * @}
mbed_official 376:cb4d9db17537 211 */
mbed_official 376:cb4d9db17537 212
mbed_official 376:cb4d9db17537 213
mbed_official 489:119543c9f674 214 /** @defgroup COMP_Mode COMP mode definition
mbed_official 376:cb4d9db17537 215 * @{
mbed_official 376:cb4d9db17537 216 */
mbed_official 376:cb4d9db17537 217 /* Please refer to the electrical characteristics in the device datasheet for
mbed_official 376:cb4d9db17537 218 the power consumption values */
mbed_official 376:cb4d9db17537 219 #define COMP_MODE_HIGHSPEED COMP_CSR_COMP2SPEED /*!< High Speed */
mbed_official 376:cb4d9db17537 220 #define COMP_MODE_LOWSPEED ((uint32_t)0x00000000) /*!< Low Speed */
mbed_official 376:cb4d9db17537 221
mbed_official 376:cb4d9db17537 222 #define IS_COMP_MODE(SPEED) (((SPEED) == COMP_MODE_HIGHSPEED) || \
mbed_official 376:cb4d9db17537 223 ((SPEED) == COMP_MODE_LOWSPEED))
mbed_official 376:cb4d9db17537 224 /**
mbed_official 376:cb4d9db17537 225 * @}
mbed_official 376:cb4d9db17537 226 */
mbed_official 376:cb4d9db17537 227
mbed_official 489:119543c9f674 228 /** @defgroup COMP_WindowMode COMP window mode definition
mbed_official 376:cb4d9db17537 229 * @{
mbed_official 376:cb4d9db17537 230 */
mbed_official 489:119543c9f674 231 #define COMP_WINDOWMODE_DISABLE ((uint32_t)0x00000000) /*!< Window mode disabled (Plus input of comparator 1 connected to PA1)*/
mbed_official 489:119543c9f674 232 #define COMP_WINDOWMODE_ENABLE COMP_CSR_COMP1WM /*!< Window mode enabled: Plus input of comparator 1 shorted with Plus input of comparator 2 */
mbed_official 489:119543c9f674 233 #define IS_COMP_WINDOWMODE(WINDOWMODE) (((WINDOWMODE) == COMP_WINDOWMODE_DISABLE) || \
mbed_official 489:119543c9f674 234 ((WINDOWMODE) == COMP_WINDOWMODE_ENABLE))
mbed_official 376:cb4d9db17537 235
mbed_official 489:119543c9f674 236 #if defined (STM32L072xx) || defined (STM32L073xx) || defined (STM32L082xx) || defined (STM32L083xx)
mbed_official 489:119543c9f674 237 #define IS_COMP_WINDOWMODE_INSTANCE(INSTANCE) (((INSTANCE) == COMP1) ||\
mbed_official 489:119543c9f674 238 ((INSTANCE) == COMP2))
mbed_official 489:119543c9f674 239 #else
mbed_official 376:cb4d9db17537 240 #define IS_COMP_WINDOWMODE_INSTANCE(INSTANCE) ((INSTANCE) == COMP1)
mbed_official 489:119543c9f674 241 #endif
mbed_official 376:cb4d9db17537 242 /**
mbed_official 376:cb4d9db17537 243 * @}
mbed_official 376:cb4d9db17537 244 */
mbed_official 376:cb4d9db17537 245
mbed_official 489:119543c9f674 246 /** @defgroup COMP_LPTIMConnection COMP Low power timer connection definition
mbed_official 376:cb4d9db17537 247 * @{
mbed_official 376:cb4d9db17537 248 */
mbed_official 376:cb4d9db17537 249 #define COMP_LPTIMCONNECTION_DISABLED ((uint32_t)0x00000000) /*!< COMPx signal is gated */
mbed_official 376:cb4d9db17537 250 #define COMP_LPTIMCONNECTION_ENABLED COMP_CSR_COMP1LPTIM1IN1 /*!< COMPx signal is connected to LPTIM */
mbed_official 376:cb4d9db17537 251 #define IS_COMP_LPTIMCONNECTION(LPTIMCONNECTION) (((LPTIMCONNECTION) == COMP_LPTIMCONNECTION_DISABLED) || \
mbed_official 376:cb4d9db17537 252 ((LPTIMCONNECTION) == COMP_LPTIMCONNECTION_ENABLED))
mbed_official 376:cb4d9db17537 253
mbed_official 376:cb4d9db17537 254 /**
mbed_official 376:cb4d9db17537 255 * @}
mbed_official 376:cb4d9db17537 256 */
mbed_official 376:cb4d9db17537 257
mbed_official 489:119543c9f674 258 /** @defgroup COMP_OutputLevel COMP output level definition
mbed_official 376:cb4d9db17537 259 * @{
mbed_official 376:cb4d9db17537 260 */
mbed_official 376:cb4d9db17537 261 /* When output polarity is not inverted, comparator output is low when
mbed_official 376:cb4d9db17537 262 the non-inverting input is at a lower voltage than the inverting input*/
mbed_official 376:cb4d9db17537 263 #define COMP_OUTPUTLEVEL_LOW ((uint32_t)0x00000000)
mbed_official 376:cb4d9db17537 264 /* When output polarity is not inverted, comparator output is high when
mbed_official 376:cb4d9db17537 265 the non-inverting input is at a higher voltage than the inverting input */
mbed_official 376:cb4d9db17537 266 #define COMP_OUTPUTLEVEL_HIGH COMP_CSR_COMPxOUTVALUE
mbed_official 376:cb4d9db17537 267 /**
mbed_official 376:cb4d9db17537 268 * @}
mbed_official 376:cb4d9db17537 269 */
mbed_official 376:cb4d9db17537 270
mbed_official 376:cb4d9db17537 271 /* CSR register Mask */
mbed_official 376:cb4d9db17537 272 #define COMP_CSR_UPDATE_PARAMETERS_MASK ((uint32_t)0xC0008779)
mbed_official 376:cb4d9db17537 273
mbed_official 376:cb4d9db17537 274 #define COMP_LOCK_DISABLE ((uint32_t)0x00000000)
mbed_official 376:cb4d9db17537 275 #define COMP_LOCK_ENABLE COMP_CSR_COMPxLOCK
mbed_official 376:cb4d9db17537 276
mbed_official 376:cb4d9db17537 277 #define COMP_STATE_BIT_LOCK ((uint32_t)0x10)
mbed_official 376:cb4d9db17537 278
mbed_official 489:119543c9f674 279 /** @defgroup COMP_TriggerMode COMP trigger mode definition
mbed_official 376:cb4d9db17537 280 * @{
mbed_official 376:cb4d9db17537 281 */
mbed_official 376:cb4d9db17537 282 #define COMP_TRIGGERMODE_IT_RISING ((uint32_t)0x00000001) /*!< External Interrupt Mode with Rising edge trigger detection */
mbed_official 376:cb4d9db17537 283 #define COMP_TRIGGERMODE_IT_FALLING ((uint32_t)0x00000002) /*!< External Interrupt Mode with Falling edge trigger detection */
mbed_official 376:cb4d9db17537 284 #define COMP_TRIGGERMODE_IT_RISING_FALLING ((uint32_t)0x00000003) /*!< External Interrupt Mode with Rising/Falling edge trigger detection */
mbed_official 376:cb4d9db17537 285 #define IS_COMP_TRIGGERMODE(MODE) (((MODE) == COMP_TRIGGERMODE_IT_RISING) || \
mbed_official 376:cb4d9db17537 286 ((MODE) == COMP_TRIGGERMODE_IT_FALLING) || \
mbed_official 376:cb4d9db17537 287 ((MODE) == COMP_TRIGGERMODE_IT_RISING_FALLING))
mbed_official 376:cb4d9db17537 288 /**
mbed_official 376:cb4d9db17537 289 * @}
mbed_official 376:cb4d9db17537 290 */
mbed_official 376:cb4d9db17537 291
mbed_official 489:119543c9f674 292 /** @defgroup COMP_ExtiLineEvent COMP EXTI line definition
mbed_official 376:cb4d9db17537 293 * @{
mbed_official 376:cb4d9db17537 294 */
mbed_official 376:cb4d9db17537 295
mbed_official 489:119543c9f674 296 #define COMP_EXTI_LINE_COMP2 ((uint32_t)0x00400000) /*!< External interrupt line 22 Connected to COMP2 */
mbed_official 489:119543c9f674 297 #define COMP_EXTI_LINE_COMP1 ((uint32_t)0x00200000) /*!< External interrupt line 21 Connected to COMP1 */
mbed_official 376:cb4d9db17537 298
mbed_official 376:cb4d9db17537 299
mbed_official 376:cb4d9db17537 300 /**
mbed_official 376:cb4d9db17537 301 * @}
mbed_official 376:cb4d9db17537 302 */
mbed_official 489:119543c9f674 303 /**
mbed_official 489:119543c9f674 304 * @}
mbed_official 489:119543c9f674 305 */
mbed_official 376:cb4d9db17537 306
mbed_official 376:cb4d9db17537 307 /* Exported macro ------------------------------------------------------------*/
mbed_official 376:cb4d9db17537 308 /** @brief Reset COMP handle state
mbed_official 376:cb4d9db17537 309 * @param __HANDLE__: COMP handle.
mbed_official 376:cb4d9db17537 310 * @retval None
mbed_official 376:cb4d9db17537 311 */
mbed_official 489:119543c9f674 312
mbed_official 489:119543c9f674 313 /** @defgroup COMP_Exported_Macro COMP Exported Macro
mbed_official 489:119543c9f674 314 * @{
mbed_official 489:119543c9f674 315 */
mbed_official 489:119543c9f674 316 /**
mbed_official 489:119543c9f674 317 * @brief Reset the state machine associated to the handler
mbed_official 489:119543c9f674 318 * @param __HANDLE__: COMP handle.
mbed_official 489:119543c9f674 319 * @retval None.
mbed_official 489:119543c9f674 320 */
mbed_official 489:119543c9f674 321
mbed_official 376:cb4d9db17537 322 #define __HAL_COMP_RESET_HANDLE_STATE(__HANDLE__) ((__HANDLE__)->State = HAL_COMP_STATE_RESET)
mbed_official 376:cb4d9db17537 323
mbed_official 376:cb4d9db17537 324 /**
mbed_official 376:cb4d9db17537 325 * @brief Enables the specified comparator
mbed_official 376:cb4d9db17537 326 * @param __HANDLE__: COMP handle.
mbed_official 376:cb4d9db17537 327 * @retval None.
mbed_official 376:cb4d9db17537 328 */
mbed_official 376:cb4d9db17537 329 #define __HAL_COMP_ENABLE(__HANDLE__) ((__HANDLE__)->Instance->CSR |= (COMP_CSR_COMPxEN))
mbed_official 376:cb4d9db17537 330
mbed_official 376:cb4d9db17537 331 /**
mbed_official 376:cb4d9db17537 332 * @brief Disables the specified comparator
mbed_official 376:cb4d9db17537 333 * @param __HANDLE__: COMP handle.
mbed_official 376:cb4d9db17537 334 * @retval None.
mbed_official 376:cb4d9db17537 335 */
mbed_official 376:cb4d9db17537 336 #define __HAL_COMP_DISABLE(__HANDLE__) ((__HANDLE__)->Instance->CSR &= ~(COMP_CSR_COMPxEN))
mbed_official 376:cb4d9db17537 337
mbed_official 376:cb4d9db17537 338 /**
mbed_official 376:cb4d9db17537 339 * @brief Lock the specified comparator configuration
mbed_official 376:cb4d9db17537 340 * @param __HANDLE__: COMP handle.
mbed_official 376:cb4d9db17537 341 * @retval None.
mbed_official 376:cb4d9db17537 342 */
mbed_official 376:cb4d9db17537 343 #define __HAL_COMP_LOCK(__HANDLE__) ((__HANDLE__)->Instance->CSR |= COMP_CSR_COMPxLOCK)
mbed_official 376:cb4d9db17537 344
mbed_official 376:cb4d9db17537 345 /** @brief Checks whether the specified COMP flag is set or not.
mbed_official 489:119543c9f674 346 * @param __HANDLE__: COMP handle.
mbed_official 376:cb4d9db17537 347 * @param __FLAG__: specifies the flag to check.
mbed_official 376:cb4d9db17537 348 * This parameter can be one of the following values:
mbed_official 376:cb4d9db17537 349 * @arg COMP_FLAG_LOCK: lock flag
mbed_official 376:cb4d9db17537 350 * @retval The new state of __FLAG__ (TRUE or FALSE).
mbed_official 376:cb4d9db17537 351 */
mbed_official 376:cb4d9db17537 352 #define __HAL_COMP_GET_FLAG(__HANDLE__, __FLAG__) (((__HANDLE__)->Instance->CSR & (__FLAG__)) == (__FLAG__))
mbed_official 376:cb4d9db17537 353
mbed_official 376:cb4d9db17537 354 /**
mbed_official 489:119543c9f674 355 * @brief Enable the Exti Line rising edge trigger.
mbed_official 489:119543c9f674 356 */
mbed_official 489:119543c9f674 357 #define __HAL_COMP_COMP1_EXTI_ENABLE_RISING_EDGE() SET_BIT(EXTI->RTSR, COMP_EXTI_LINE_COMP1)
mbed_official 489:119543c9f674 358 #define __HAL_COMP_COMP2_EXTI_ENABLE_RISING_EDGE() SET_BIT(EXTI->RTSR, COMP_EXTI_LINE_COMP2)
mbed_official 376:cb4d9db17537 359
mbed_official 376:cb4d9db17537 360 /**
mbed_official 376:cb4d9db17537 361 * @brief Disable the Exti Line rising edge trigger.
mbed_official 376:cb4d9db17537 362 */
mbed_official 489:119543c9f674 363 #define __HAL_COMP_COMP1_EXTI_DISABLE_RISING_EDGE() CLEAR_BIT(EXTI->RTSR, COMP_EXTI_LINE_COMP1)
mbed_official 489:119543c9f674 364 #define __HAL_COMP_COMP2_EXTI_DISABLE_RISING_EDGE() CLEAR_BIT(EXTI->RTSR, COMP_EXTI_LINE_COMP2)
mbed_official 376:cb4d9db17537 365
mbed_official 376:cb4d9db17537 366 /**
mbed_official 376:cb4d9db17537 367 * @brief Enable the Exti Line falling edge trigger.
mbed_official 376:cb4d9db17537 368 * @retval None.
mbed_official 376:cb4d9db17537 369 */
mbed_official 489:119543c9f674 370 #define __HAL_COMP_COMP1_EXTI_ENABLE_FALLING_EDGE() SET_BIT(EXTI->FTSR, COMP_EXTI_LINE_COMP1)
mbed_official 489:119543c9f674 371 #define __HAL_COMP_COMP2_EXTI_ENABLE_FALLING_EDGE() SET_BIT(EXTI->FTSR, COMP_EXTI_LINE_COMP2)
mbed_official 376:cb4d9db17537 372
mbed_official 376:cb4d9db17537 373 /**
mbed_official 376:cb4d9db17537 374 * @brief Disable the Exti Line falling edge trigger.
mbed_official 489:119543c9f674 375 */
mbed_official 489:119543c9f674 376 #define __HAL_COMP_COMP1_EXTI_DISABLE_FALLING_EDGE() CLEAR_BIT(EXTI->FTSR, COMP_EXTI_LINE_COMP1)
mbed_official 489:119543c9f674 377 #define __HAL_COMP_COMP2_EXTI_DISABLE_FALLING_EDGE() CLEAR_BIT(EXTI->FTSR, COMP_EXTI_LINE_COMP2)
mbed_official 489:119543c9f674 378
mbed_official 489:119543c9f674 379 /**
mbed_official 489:119543c9f674 380 * @brief Enable the COMP1 EXTI line rising & falling edge trigger.
mbed_official 489:119543c9f674 381 * @retval None.
mbed_official 489:119543c9f674 382 */
mbed_official 489:119543c9f674 383 #define __HAL_COMP_COMP1_EXTI_ENABLE_RISING_FALLING_EDGE() do { \
mbed_official 489:119543c9f674 384 __HAL_COMP_COMP1_EXTI_ENABLE_RISING_EDGE(); \
mbed_official 489:119543c9f674 385 __HAL_COMP_COMP1_EXTI_ENABLE_FALLING_EDGE(); \
mbed_official 489:119543c9f674 386 } while(0)
mbed_official 489:119543c9f674 387
mbed_official 489:119543c9f674 388 /**
mbed_official 489:119543c9f674 389 * @brief Disable the COMP1 EXTI line rising & falling edge trigger.
mbed_official 376:cb4d9db17537 390 * @retval None.
mbed_official 376:cb4d9db17537 391 */
mbed_official 489:119543c9f674 392 #define __HAL_COMP_COMP1_EXTI_DISABLE_RISING_FALLING_EDGE() do { \
mbed_official 489:119543c9f674 393 __HAL_COMP_COMP1_EXTI_DISABLE_RISING_EDGE(); \
mbed_official 489:119543c9f674 394 __HAL_COMP_COMP1_EXTI_DISABLE_FALLING_EDGE(); \
mbed_official 489:119543c9f674 395 } while(0)
mbed_official 376:cb4d9db17537 396
mbed_official 376:cb4d9db17537 397 /**
mbed_official 489:119543c9f674 398 * @brief Enable the COMP2 EXTI line rising & falling edge trigger.
mbed_official 489:119543c9f674 399 * @retval None.
mbed_official 489:119543c9f674 400 */
mbed_official 489:119543c9f674 401 #define __HAL_COMP_COMP2_EXTI_ENABLE_RISING_FALLING_EDGE() do { \
mbed_official 489:119543c9f674 402 __HAL_COMP_COMP2_EXTI_ENABLE_RISING_EDGE(); \
mbed_official 489:119543c9f674 403 __HAL_COMP_COMP2_EXTI_ENABLE_FALLING_EDGE(); \
mbed_official 489:119543c9f674 404 } while(0)
mbed_official 489:119543c9f674 405
mbed_official 489:119543c9f674 406 /**
mbed_official 489:119543c9f674 407 * @brief Disable the COMP2 EXTI line rising & falling edge trigger.
mbed_official 489:119543c9f674 408 * @retval None.
mbed_official 489:119543c9f674 409 */
mbed_official 489:119543c9f674 410 #define __HAL_COMP_COMP2_EXTI_DISABLE_RISING_FALLING_EDGE() do { \
mbed_official 489:119543c9f674 411 __HAL_COMP_COMP2_EXTI_DISABLE_RISING_EDGE(); \
mbed_official 489:119543c9f674 412 __HAL_COMP_COMP2_EXTI_DISABLE_FALLING_EDGE(); \
mbed_official 489:119543c9f674 413 } while(0)
mbed_official 489:119543c9f674 414
mbed_official 489:119543c9f674 415 /**
mbed_official 376:cb4d9db17537 416 * @brief Get the specified EXTI line for a comparator instance
mbed_official 376:cb4d9db17537 417 * @param __INSTANCE__: specifies the COMP instance.
mbed_official 376:cb4d9db17537 418 * @retval value of @ref COMP_ExtiLineEvent
mbed_official 376:cb4d9db17537 419 */
mbed_official 489:119543c9f674 420 #define COMP_GET_EXTI_LINE(__INSTANCE__) (((__INSTANCE__) == COMP1) ? COMP_EXTI_LINE_COMP1 : \
mbed_official 489:119543c9f674 421 COMP_EXTI_LINE_COMP2)
mbed_official 376:cb4d9db17537 422
mbed_official 376:cb4d9db17537 423 /**
mbed_official 376:cb4d9db17537 424 * @brief Enable the COMP Exti Line.
mbed_official 376:cb4d9db17537 425 * @retval None.
mbed_official 376:cb4d9db17537 426 */
mbed_official 489:119543c9f674 427
mbed_official 489:119543c9f674 428 #define __HAL_COMP_COMP1_EXTI_ENABLE_IT() SET_BIT(EXTI->IMR, COMP_EXTI_LINE_COMP1)
mbed_official 489:119543c9f674 429 #define __HAL_COMP_COMP2_EXTI_ENABLE_IT() SET_BIT(EXTI->IMR, COMP_EXTI_LINE_COMP2)
mbed_official 376:cb4d9db17537 430
mbed_official 376:cb4d9db17537 431 /**
mbed_official 376:cb4d9db17537 432 * @brief Disable the COMP Exti Line.
mbed_official 376:cb4d9db17537 433 * @retval None.
mbed_official 376:cb4d9db17537 434 */
mbed_official 489:119543c9f674 435
mbed_official 489:119543c9f674 436 #define __HAL_COMP_COMP1_EXTI_DISABLE_IT() CLEAR_BIT(EXTI->IMR, COMP_EXTI_LINE_COMP1)
mbed_official 489:119543c9f674 437 #define __HAL_COMP_COMP2_EXTI_DISABLE_IT() CLEAR_BIT(EXTI->IMR, COMP_EXTI_LINE_COMP2)
mbed_official 489:119543c9f674 438
mbed_official 489:119543c9f674 439 /**
mbed_official 489:119543c9f674 440 * @brief Generate a software interrupt on the COMP EXTI line.
mbed_official 489:119543c9f674 441 * @retval None
mbed_official 489:119543c9f674 442 */
mbed_official 489:119543c9f674 443 #define __HAL_COMP_COMP1_EXTI_GENERATE_SWIT() SET_BIT(EXTI->SWIER, COMP_EXTI_LINE_COMP1)
mbed_official 489:119543c9f674 444 #define __HAL_COMP_COMP2_EXTI_GENERATE_SWIT() SET_BIT(EXTI->SWIER, COMP_EXTI_LINE_COMP2)
mbed_official 489:119543c9f674 445
mbed_official 376:cb4d9db17537 446
mbed_official 376:cb4d9db17537 447 /**
mbed_official 489:119543c9f674 448 * @brief Enable the COMP EXTI Line in event mode
mbed_official 489:119543c9f674 449 * @retval None
mbed_official 489:119543c9f674 450 */
mbed_official 489:119543c9f674 451 #define __HAL_COMP_COMP1_EXTI_ENABLE_EVENT() SET_BIT(EXTI->EMR, COMP_EXTI_LINE_COMP1)
mbed_official 489:119543c9f674 452 #define __HAL_COMP_COMP2_EXTI_ENABLE_EVENT() SET_BIT(EXTI->EMR, COMP_EXTI_LINE_COMP2)
mbed_official 489:119543c9f674 453
mbed_official 489:119543c9f674 454 /**
mbed_official 489:119543c9f674 455 * @brief Disable the COMP EXTI Line in event mode.
mbed_official 489:119543c9f674 456 * @retval None
mbed_official 489:119543c9f674 457 */
mbed_official 489:119543c9f674 458 #define __HAL_COMP_COMP1_EXTI_DISABLE_EVENT() CLEAR_BIT(EXTI->EMR, COMP_EXTI_LINE_COMP1)
mbed_official 489:119543c9f674 459 #define __HAL_COMP_COMP2_EXTI_DISABLE_EVENT() CLEAR_BIT(EXTI->EMR, COMP_EXTI_LINE_COMP2)
mbed_official 489:119543c9f674 460 /**
mbed_official 376:cb4d9db17537 461 * @brief Checks whether the specified EXTI line flag is set or not.
mbed_official 376:cb4d9db17537 462 * @retval The state of __FLAG__ (SET or RESET).
mbed_official 376:cb4d9db17537 463 */
mbed_official 489:119543c9f674 464
mbed_official 489:119543c9f674 465 #define __HAL_COMP_COMP1_EXTI_GET_FLAG() READ_BIT(EXTI->PR, COMP_EXTI_LINE_COMP1)
mbed_official 489:119543c9f674 466 #define __HAL_COMP_COMP2_EXTI_GET_FLAG() READ_BIT(EXTI->PR, COMP_EXTI_LINE_COMP2)
mbed_official 376:cb4d9db17537 467
mbed_official 376:cb4d9db17537 468 /**
mbed_official 376:cb4d9db17537 469 * @brief Clear the COMP Exti flags.
mbed_official 376:cb4d9db17537 470 * @retval None.
mbed_official 376:cb4d9db17537 471 */
mbed_official 489:119543c9f674 472 #define __HAL_COMP_COMP1_EXTI_CLEAR_FLAG() WRITE_REG(EXTI->PR, COMP_EXTI_LINE_COMP1)
mbed_official 489:119543c9f674 473 #define __HAL_COMP_COMP2_EXTI_CLEAR_FLAG() WRITE_REG(EXTI->PR, COMP_EXTI_LINE_COMP2)
mbed_official 376:cb4d9db17537 474
mbed_official 376:cb4d9db17537 475
mbed_official 489:119543c9f674 476 /**
mbed_official 489:119543c9f674 477 * @}
mbed_official 489:119543c9f674 478 */
mbed_official 489:119543c9f674 479
mbed_official 489:119543c9f674 480 /* Include COMP HAL Extended module */
mbed_official 489:119543c9f674 481 #include "stm32l0xx_hal_comp_ex.h"
mbed_official 489:119543c9f674 482
mbed_official 376:cb4d9db17537 483 /* Exported functions --------------------------------------------------------*/
mbed_official 489:119543c9f674 484 /** @defgroup COMP_Exported_Functions COMP Exported Functions
mbed_official 489:119543c9f674 485 * @{
mbed_official 489:119543c9f674 486 */
mbed_official 489:119543c9f674 487
mbed_official 489:119543c9f674 488 /** @defgroup COMP_Exported_Functions_Group1 Initialization/de-initialization functions
mbed_official 489:119543c9f674 489 * @{
mbed_official 489:119543c9f674 490 */
mbed_official 376:cb4d9db17537 491
mbed_official 376:cb4d9db17537 492 /* Initialization/de-initialization functions **********************************/
mbed_official 376:cb4d9db17537 493 HAL_StatusTypeDef HAL_COMP_Init(COMP_HandleTypeDef *hcomp);
mbed_official 376:cb4d9db17537 494 HAL_StatusTypeDef HAL_COMP_DeInit (COMP_HandleTypeDef *hcomp);
mbed_official 376:cb4d9db17537 495 void HAL_COMP_MspInit(COMP_HandleTypeDef *hcomp);
mbed_official 376:cb4d9db17537 496 void HAL_COMP_MspDeInit(COMP_HandleTypeDef *hcomp);
mbed_official 489:119543c9f674 497 /**
mbed_official 489:119543c9f674 498 * @}
mbed_official 489:119543c9f674 499 */
mbed_official 376:cb4d9db17537 500
mbed_official 489:119543c9f674 501 /** @defgroup COMP_Exported_Functions_Group2 I/O operation functions
mbed_official 489:119543c9f674 502 * @{
mbed_official 489:119543c9f674 503 */
mbed_official 376:cb4d9db17537 504 /* I/O operation functions *****************************************************/
mbed_official 376:cb4d9db17537 505 HAL_StatusTypeDef HAL_COMP_Start(COMP_HandleTypeDef *hcomp);
mbed_official 376:cb4d9db17537 506 HAL_StatusTypeDef HAL_COMP_Stop(COMP_HandleTypeDef *hcomp);
mbed_official 376:cb4d9db17537 507 HAL_StatusTypeDef HAL_COMP_Start_IT(COMP_HandleTypeDef *hcomp);
mbed_official 376:cb4d9db17537 508 HAL_StatusTypeDef HAL_COMP_Stop_IT(COMP_HandleTypeDef *hcomp);
mbed_official 376:cb4d9db17537 509 void HAL_COMP_IRQHandler(COMP_HandleTypeDef *hcomp);
mbed_official 489:119543c9f674 510 /**
mbed_official 489:119543c9f674 511 * @}
mbed_official 489:119543c9f674 512 */
mbed_official 376:cb4d9db17537 513
mbed_official 489:119543c9f674 514 /** @defgroup COMP_Exported_Functions_Group3 Peripheral Control functions
mbed_official 489:119543c9f674 515 * @{
mbed_official 489:119543c9f674 516 */
mbed_official 376:cb4d9db17537 517 /* Peripheral Control functions ************************************************/
mbed_official 376:cb4d9db17537 518 HAL_StatusTypeDef HAL_COMP_Lock(COMP_HandleTypeDef *hcomp);
mbed_official 376:cb4d9db17537 519 uint32_t HAL_COMP_GetOutputLevel(COMP_HandleTypeDef *hcomp);
mbed_official 376:cb4d9db17537 520
mbed_official 376:cb4d9db17537 521 /* Callback in Interrupt mode */
mbed_official 376:cb4d9db17537 522 void HAL_COMP_TriggerCallback(COMP_HandleTypeDef *hcomp);
mbed_official 489:119543c9f674 523 /**
mbed_official 489:119543c9f674 524 * @}
mbed_official 489:119543c9f674 525 */
mbed_official 376:cb4d9db17537 526
mbed_official 489:119543c9f674 527 /** @defgroup COMP_Exported_Functions_Group4 Peripheral State functions
mbed_official 489:119543c9f674 528 * @{
mbed_official 489:119543c9f674 529 */
mbed_official 376:cb4d9db17537 530 /* Peripheral State functions **************************************************/
mbed_official 376:cb4d9db17537 531 HAL_COMP_StateTypeDef HAL_COMP_GetState(COMP_HandleTypeDef *hcomp);
mbed_official 376:cb4d9db17537 532
mbed_official 376:cb4d9db17537 533 /**
mbed_official 376:cb4d9db17537 534 * @}
mbed_official 489:119543c9f674 535 */
mbed_official 489:119543c9f674 536
mbed_official 489:119543c9f674 537
mbed_official 489:119543c9f674 538 /**
mbed_official 489:119543c9f674 539 * @}
mbed_official 489:119543c9f674 540 */
mbed_official 489:119543c9f674 541
mbed_official 489:119543c9f674 542 /**
mbed_official 489:119543c9f674 543 * @}
mbed_official 489:119543c9f674 544 */
mbed_official 376:cb4d9db17537 545
mbed_official 376:cb4d9db17537 546 /**
mbed_official 376:cb4d9db17537 547 * @}
mbed_official 376:cb4d9db17537 548 */
mbed_official 376:cb4d9db17537 549
mbed_official 376:cb4d9db17537 550 #ifdef __cplusplus
mbed_official 376:cb4d9db17537 551 }
mbed_official 376:cb4d9db17537 552 #endif
mbed_official 376:cb4d9db17537 553
mbed_official 376:cb4d9db17537 554 #endif /* __STM32L0xx_HAL_COMP_H */
mbed_official 376:cb4d9db17537 555
mbed_official 376:cb4d9db17537 556 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
mbed_official 489:119543c9f674 557