mbed library sources

Fork of mbed-src by mbed official

Committer:
mbed_official
Date:
Mon Nov 03 10:30:07 2014 +0000
Revision:
381:5460fc57b6e4
Synchronized with git revision 02478cd1f27fc7b9643486472635eb515b2bca81

Full URL: https://github.com/mbedmicro/mbed/commit/02478cd1f27fc7b9643486472635eb515b2bca81/

Target: LPC1549 - Fix serial interrupt issues (issue report #616)

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mbed_official 381:5460fc57b6e4 1 /**
mbed_official 381:5460fc57b6e4 2 ******************************************************************************
mbed_official 381:5460fc57b6e4 3 * @file stm32f3xx_hal_comp.h
mbed_official 381:5460fc57b6e4 4 * @author MCD Application Team
mbed_official 381:5460fc57b6e4 5 * @version V1.1.0
mbed_official 381:5460fc57b6e4 6 * @date 12-Sept-2014
mbed_official 381:5460fc57b6e4 7 * @brief Header file of COMP HAL module.
mbed_official 381:5460fc57b6e4 8 ******************************************************************************
mbed_official 381:5460fc57b6e4 9 * @attention
mbed_official 381:5460fc57b6e4 10 *
mbed_official 381:5460fc57b6e4 11 * <h2><center>&copy; COPYRIGHT(c) 2014 STMicroelectronics</center></h2>
mbed_official 381:5460fc57b6e4 12 *
mbed_official 381:5460fc57b6e4 13 * Redistribution and use in source and binary forms, with or without modification,
mbed_official 381:5460fc57b6e4 14 * are permitted provided that the following conditions are met:
mbed_official 381:5460fc57b6e4 15 * 1. Redistributions of source code must retain the above copyright notice,
mbed_official 381:5460fc57b6e4 16 * this list of conditions and the following disclaimer.
mbed_official 381:5460fc57b6e4 17 * 2. Redistributions in binary form must reproduce the above copyright notice,
mbed_official 381:5460fc57b6e4 18 * this list of conditions and the following disclaimer in the documentation
mbed_official 381:5460fc57b6e4 19 * and/or other materials provided with the distribution.
mbed_official 381:5460fc57b6e4 20 * 3. Neither the name of STMicroelectronics nor the names of its contributors
mbed_official 381:5460fc57b6e4 21 * may be used to endorse or promote products derived from this software
mbed_official 381:5460fc57b6e4 22 * without specific prior written permission.
mbed_official 381:5460fc57b6e4 23 *
mbed_official 381:5460fc57b6e4 24 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
mbed_official 381:5460fc57b6e4 25 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
mbed_official 381:5460fc57b6e4 26 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
mbed_official 381:5460fc57b6e4 27 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
mbed_official 381:5460fc57b6e4 28 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
mbed_official 381:5460fc57b6e4 29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
mbed_official 381:5460fc57b6e4 30 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
mbed_official 381:5460fc57b6e4 31 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
mbed_official 381:5460fc57b6e4 32 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
mbed_official 381:5460fc57b6e4 33 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
mbed_official 381:5460fc57b6e4 34 *
mbed_official 381:5460fc57b6e4 35 ******************************************************************************
mbed_official 381:5460fc57b6e4 36 */
mbed_official 381:5460fc57b6e4 37
mbed_official 381:5460fc57b6e4 38 /* Define to prevent recursive inclusion -------------------------------------*/
mbed_official 381:5460fc57b6e4 39 #ifndef __STM32F3xx_HAL_COMP_H
mbed_official 381:5460fc57b6e4 40 #define __STM32F3xx_HAL_COMP_H
mbed_official 381:5460fc57b6e4 41
mbed_official 381:5460fc57b6e4 42 #ifdef __cplusplus
mbed_official 381:5460fc57b6e4 43 extern "C" {
mbed_official 381:5460fc57b6e4 44 #endif
mbed_official 381:5460fc57b6e4 45
mbed_official 381:5460fc57b6e4 46 /* Includes ------------------------------------------------------------------*/
mbed_official 381:5460fc57b6e4 47 #include "stm32f3xx_hal_def.h"
mbed_official 381:5460fc57b6e4 48
mbed_official 381:5460fc57b6e4 49 /** @addtogroup STM32F3xx_HAL_Driver
mbed_official 381:5460fc57b6e4 50 * @{
mbed_official 381:5460fc57b6e4 51 */
mbed_official 381:5460fc57b6e4 52
mbed_official 381:5460fc57b6e4 53 /** @addtogroup COMP
mbed_official 381:5460fc57b6e4 54 * @{
mbed_official 381:5460fc57b6e4 55 */
mbed_official 381:5460fc57b6e4 56
mbed_official 381:5460fc57b6e4 57 /* Exported types ------------------------------------------------------------*/
mbed_official 381:5460fc57b6e4 58 /** @defgroup COMP_Exported_Types COMP Exported Types
mbed_official 381:5460fc57b6e4 59 * @{
mbed_official 381:5460fc57b6e4 60 */
mbed_official 381:5460fc57b6e4 61 /**
mbed_official 381:5460fc57b6e4 62 * @brief COMP Init structure definition
mbed_official 381:5460fc57b6e4 63 */
mbed_official 381:5460fc57b6e4 64
mbed_official 381:5460fc57b6e4 65 typedef struct
mbed_official 381:5460fc57b6e4 66 {
mbed_official 381:5460fc57b6e4 67
mbed_official 381:5460fc57b6e4 68 uint32_t InvertingInput; /*!< Selects the inverting input of the comparator.
mbed_official 381:5460fc57b6e4 69 This parameter can be a value of @ref COMPEx_InvertingInput */
mbed_official 381:5460fc57b6e4 70
mbed_official 381:5460fc57b6e4 71 uint32_t NonInvertingInput; /*!< Selects the non inverting input of the comparator.
mbed_official 381:5460fc57b6e4 72 This parameter can be a value of @ref COMPEx_NonInvertingInput
mbed_official 381:5460fc57b6e4 73 Note: Only available on STM32F302xB/xC, STM32F303xB/xC and STM32F358xx devices */
mbed_official 381:5460fc57b6e4 74
mbed_official 381:5460fc57b6e4 75 uint32_t Output; /*!< Selects the output redirection of the comparator.
mbed_official 381:5460fc57b6e4 76 This parameter can be a value of @ref COMPEx_Output */
mbed_official 381:5460fc57b6e4 77
mbed_official 381:5460fc57b6e4 78 uint32_t OutputPol; /*!< Selects the output polarity of the comparator.
mbed_official 381:5460fc57b6e4 79 This parameter can be a value of @ref COMP_OutputPolarity */
mbed_official 381:5460fc57b6e4 80
mbed_official 381:5460fc57b6e4 81 uint32_t Hysteresis; /*!< Selects the hysteresis voltage of the comparator.
mbed_official 381:5460fc57b6e4 82 This parameter can be a value of @ref COMPEx_Hysteresis
mbed_official 381:5460fc57b6e4 83 Note: Only available on STM32F302xB/xC, STM32F303xB/xC, STM32F373xB/xC, STM32F358xx and STM32F378xx devices */
mbed_official 381:5460fc57b6e4 84
mbed_official 381:5460fc57b6e4 85 uint32_t BlankingSrce; /*!< Selects the output blanking source of the comparator.
mbed_official 381:5460fc57b6e4 86 This parameter can be a value of @ref COMPEx_BlankingSrce
mbed_official 381:5460fc57b6e4 87 Note: Not available on STM32F373xB/C and STM32F378xx devices */
mbed_official 381:5460fc57b6e4 88
mbed_official 381:5460fc57b6e4 89 uint32_t Mode; /*!< Selects the operating comsumption mode of the comparator
mbed_official 381:5460fc57b6e4 90 to adjust the speed/consumption.
mbed_official 381:5460fc57b6e4 91 This parameter can be a value of @ref COMPEx_Mode
mbed_official 381:5460fc57b6e4 92 Note: Not available on STM32F301x6/x8, STM32F302x6/x8, STM32F334x6/x8, STM32F318xx and STM32F328xx devices */
mbed_official 381:5460fc57b6e4 93
mbed_official 381:5460fc57b6e4 94 uint32_t WindowMode; /*!< Selects the window mode of the comparator X (X=2, 4 or 6 if available).
mbed_official 381:5460fc57b6e4 95 This parameter can be a value of @ref COMPEx_WindowMode */
mbed_official 381:5460fc57b6e4 96
mbed_official 381:5460fc57b6e4 97 uint32_t TriggerMode; /*!< Selects the trigger mode of the comparator (interrupt mode).
mbed_official 381:5460fc57b6e4 98 This parameter can be a value of @ref COMP_TriggerMode */
mbed_official 381:5460fc57b6e4 99
mbed_official 381:5460fc57b6e4 100 }COMP_InitTypeDef;
mbed_official 381:5460fc57b6e4 101
mbed_official 381:5460fc57b6e4 102 /**
mbed_official 381:5460fc57b6e4 103 * @brief HAL State structures definition
mbed_official 381:5460fc57b6e4 104 */
mbed_official 381:5460fc57b6e4 105 typedef enum
mbed_official 381:5460fc57b6e4 106 {
mbed_official 381:5460fc57b6e4 107 HAL_COMP_STATE_RESET = 0x00, /*!< COMP not yet initialized or disabled */
mbed_official 381:5460fc57b6e4 108 HAL_COMP_STATE_READY = 0x01, /*!< COMP initialized and ready for use */
mbed_official 381:5460fc57b6e4 109 HAL_COMP_STATE_READY_LOCKED = 0x11, /*!< COMP initialized but the configuration is locked */
mbed_official 381:5460fc57b6e4 110 HAL_COMP_STATE_BUSY = 0x02, /*!< COMP is running */
mbed_official 381:5460fc57b6e4 111 HAL_COMP_STATE_BUSY_LOCKED = 0x12 /*!< COMP is running and the configuration is locked */
mbed_official 381:5460fc57b6e4 112 }HAL_COMP_StateTypeDef;
mbed_official 381:5460fc57b6e4 113
mbed_official 381:5460fc57b6e4 114
mbed_official 381:5460fc57b6e4 115 /**
mbed_official 381:5460fc57b6e4 116 * @brief PPP Handle Structure definition
mbed_official 381:5460fc57b6e4 117 */
mbed_official 381:5460fc57b6e4 118 typedef struct
mbed_official 381:5460fc57b6e4 119 {
mbed_official 381:5460fc57b6e4 120 COMP_TypeDef *Instance; /*!< Register base address */
mbed_official 381:5460fc57b6e4 121 COMP_InitTypeDef Init; /*!< COMP required parameters */
mbed_official 381:5460fc57b6e4 122 HAL_LockTypeDef Lock; /*!< Locking object */
mbed_official 381:5460fc57b6e4 123 __IO HAL_COMP_StateTypeDef State; /*!< COMP communication state */
mbed_official 381:5460fc57b6e4 124
mbed_official 381:5460fc57b6e4 125 }COMP_HandleTypeDef;
mbed_official 381:5460fc57b6e4 126
mbed_official 381:5460fc57b6e4 127 /**
mbed_official 381:5460fc57b6e4 128 * @}
mbed_official 381:5460fc57b6e4 129 */
mbed_official 381:5460fc57b6e4 130
mbed_official 381:5460fc57b6e4 131 /* Exported constants --------------------------------------------------------*/
mbed_official 381:5460fc57b6e4 132 /** @defgroup COMP_Exported_Constants COMP Exported Constants
mbed_official 381:5460fc57b6e4 133 * @{
mbed_official 381:5460fc57b6e4 134 */
mbed_official 381:5460fc57b6e4 135
mbed_official 381:5460fc57b6e4 136 /** @defgroup COMP_OutputPolarity COMP Output Polarity
mbed_official 381:5460fc57b6e4 137 * @{
mbed_official 381:5460fc57b6e4 138 */
mbed_official 381:5460fc57b6e4 139 #define COMP_OUTPUTPOL_NONINVERTED ((uint32_t)0x00000000) /*!< COMP output on GPIO isn't inverted */
mbed_official 381:5460fc57b6e4 140 #define COMP_OUTPUTPOL_INVERTED COMP_CSR_COMPxPOL /*!< COMP output on GPIO is inverted */
mbed_official 381:5460fc57b6e4 141 #define IS_COMP_OUTPUTPOL(POL) (((POL) == COMP_OUTPUTPOL_NONINVERTED) || \
mbed_official 381:5460fc57b6e4 142 ((POL) == COMP_OUTPUTPOL_INVERTED))
mbed_official 381:5460fc57b6e4 143 /**
mbed_official 381:5460fc57b6e4 144 * @}
mbed_official 381:5460fc57b6e4 145 */
mbed_official 381:5460fc57b6e4 146
mbed_official 381:5460fc57b6e4 147 /** @defgroup COMP_OutputLevel COMP Output Level
mbed_official 381:5460fc57b6e4 148 * @{
mbed_official 381:5460fc57b6e4 149 */
mbed_official 381:5460fc57b6e4 150 /* When output polarity is not inverted, comparator output is low when
mbed_official 381:5460fc57b6e4 151 the non-inverting input is at a lower voltage than the inverting input*/
mbed_official 381:5460fc57b6e4 152 #define COMP_OUTPUTLEVEL_LOW ((uint32_t)0x00000000)
mbed_official 381:5460fc57b6e4 153 /* When output polarity is not inverted, comparator output is high when
mbed_official 381:5460fc57b6e4 154 the non-inverting input is at a higher voltage than the inverting input */
mbed_official 381:5460fc57b6e4 155 #define COMP_OUTPUTLEVEL_HIGH COMP_CSR_COMPxOUT
mbed_official 381:5460fc57b6e4 156 /**
mbed_official 381:5460fc57b6e4 157 * @}
mbed_official 381:5460fc57b6e4 158 */
mbed_official 381:5460fc57b6e4 159
mbed_official 381:5460fc57b6e4 160 /** @defgroup COMP_TriggerMode COMP Trigger Mode
mbed_official 381:5460fc57b6e4 161 * @{
mbed_official 381:5460fc57b6e4 162 */
mbed_official 381:5460fc57b6e4 163 #define COMP_TRIGGERMODE_NONE ((uint32_t)0x00000000) /*!< No External Interrupt trigger detection */
mbed_official 381:5460fc57b6e4 164 #define COMP_TRIGGERMODE_IT_RISING ((uint32_t)0x00000001) /*!< External Interrupt Mode with Rising edge trigger detection */
mbed_official 381:5460fc57b6e4 165 #define COMP_TRIGGERMODE_IT_FALLING ((uint32_t)0x00000002) /*!< External Interrupt Mode with Falling edge trigger detection */
mbed_official 381:5460fc57b6e4 166 #define COMP_TRIGGERMODE_IT_RISING_FALLING ((uint32_t)0x00000003) /*!< External Interrupt Mode with Rising/Falling edge trigger detection */
mbed_official 381:5460fc57b6e4 167 #define IS_COMP_TRIGGERMODE(MODE) (((MODE) == COMP_TRIGGERMODE_NONE) || \
mbed_official 381:5460fc57b6e4 168 ((MODE) == COMP_TRIGGERMODE_IT_RISING) || \
mbed_official 381:5460fc57b6e4 169 ((MODE) == COMP_TRIGGERMODE_IT_FALLING) || \
mbed_official 381:5460fc57b6e4 170 ((MODE) == COMP_TRIGGERMODE_IT_RISING_FALLING))
mbed_official 381:5460fc57b6e4 171 /**
mbed_official 381:5460fc57b6e4 172 * @}
mbed_official 381:5460fc57b6e4 173 */
mbed_official 381:5460fc57b6e4 174
mbed_official 381:5460fc57b6e4 175 #define COMP_LOCK_DISABLE ((uint32_t)0x00000000)
mbed_official 381:5460fc57b6e4 176 #define COMP_LOCK_ENABLE COMP_CSR_COMPxLOCK
mbed_official 381:5460fc57b6e4 177
mbed_official 381:5460fc57b6e4 178 #define COMP_STATE_BIT_LOCK ((uint32_t)0x10)
mbed_official 381:5460fc57b6e4 179
mbed_official 381:5460fc57b6e4 180 /**
mbed_official 381:5460fc57b6e4 181 * @}
mbed_official 381:5460fc57b6e4 182 */
mbed_official 381:5460fc57b6e4 183
mbed_official 381:5460fc57b6e4 184 /* Exported macros -----------------------------------------------------------*/
mbed_official 381:5460fc57b6e4 185 /** @defgroup COMP_Exported_Macros COMP Exported Macros
mbed_official 381:5460fc57b6e4 186 * @{
mbed_official 381:5460fc57b6e4 187 */
mbed_official 381:5460fc57b6e4 188
mbed_official 381:5460fc57b6e4 189 /** @brief Reset COMP handle state
mbed_official 381:5460fc57b6e4 190 * @param __HANDLE__: COMP handle.
mbed_official 381:5460fc57b6e4 191 * @retval None
mbed_official 381:5460fc57b6e4 192 */
mbed_official 381:5460fc57b6e4 193 #define __HAL_COMP_RESET_HANDLE_STATE(__HANDLE__) ((__HANDLE__)->State = HAL_COMP_STATE_RESET)
mbed_official 381:5460fc57b6e4 194 /**
mbed_official 381:5460fc57b6e4 195 * @}
mbed_official 381:5460fc57b6e4 196 */
mbed_official 381:5460fc57b6e4 197
mbed_official 381:5460fc57b6e4 198 /* Include COMP HAL Extended module */
mbed_official 381:5460fc57b6e4 199 #include "stm32f3xx_hal_comp_ex.h"
mbed_official 381:5460fc57b6e4 200
mbed_official 381:5460fc57b6e4 201 /* Exported functions --------------------------------------------------------*/
mbed_official 381:5460fc57b6e4 202 /** @addtogroup COMP_Exported_Functions COMP Exported Functions
mbed_official 381:5460fc57b6e4 203 * @{
mbed_official 381:5460fc57b6e4 204 */
mbed_official 381:5460fc57b6e4 205
mbed_official 381:5460fc57b6e4 206 /** @addtogroup COMP_Exported_Functions_Group1 Initialization and de-initialization functions
mbed_official 381:5460fc57b6e4 207 * @brief Initialization and Configuration functions
mbed_official 381:5460fc57b6e4 208 * @{
mbed_official 381:5460fc57b6e4 209 */
mbed_official 381:5460fc57b6e4 210 /* Initialization and de-initialization functions ****************************/
mbed_official 381:5460fc57b6e4 211 HAL_StatusTypeDef HAL_COMP_Init(COMP_HandleTypeDef *hcomp);
mbed_official 381:5460fc57b6e4 212 HAL_StatusTypeDef HAL_COMP_DeInit (COMP_HandleTypeDef *hcomp);
mbed_official 381:5460fc57b6e4 213 void HAL_COMP_MspInit(COMP_HandleTypeDef *hcomp);
mbed_official 381:5460fc57b6e4 214 void HAL_COMP_MspDeInit(COMP_HandleTypeDef *hcomp);
mbed_official 381:5460fc57b6e4 215 /**
mbed_official 381:5460fc57b6e4 216 * @}
mbed_official 381:5460fc57b6e4 217 */
mbed_official 381:5460fc57b6e4 218
mbed_official 381:5460fc57b6e4 219 /** @addtogroup COMP_Exported_Functions_Group2 Input and Output operation functions
mbed_official 381:5460fc57b6e4 220 * @brief Data transfers functions
mbed_official 381:5460fc57b6e4 221 * @{
mbed_official 381:5460fc57b6e4 222 */
mbed_official 381:5460fc57b6e4 223 /* IO operation functions *****************************************************/
mbed_official 381:5460fc57b6e4 224 HAL_StatusTypeDef HAL_COMP_Start(COMP_HandleTypeDef *hcomp);
mbed_official 381:5460fc57b6e4 225 HAL_StatusTypeDef HAL_COMP_Stop(COMP_HandleTypeDef *hcomp);
mbed_official 381:5460fc57b6e4 226 HAL_StatusTypeDef HAL_COMP_Start_IT(COMP_HandleTypeDef *hcomp);
mbed_official 381:5460fc57b6e4 227 HAL_StatusTypeDef HAL_COMP_Stop_IT(COMP_HandleTypeDef *hcomp);
mbed_official 381:5460fc57b6e4 228 void HAL_COMP_IRQHandler(COMP_HandleTypeDef *hcomp);
mbed_official 381:5460fc57b6e4 229 /**
mbed_official 381:5460fc57b6e4 230 * @}
mbed_official 381:5460fc57b6e4 231 */
mbed_official 381:5460fc57b6e4 232
mbed_official 381:5460fc57b6e4 233 /** @addtogroup COMP_Exported_Functions_Group3 Peripheral Control functions
mbed_official 381:5460fc57b6e4 234 * @brief management functions
mbed_official 381:5460fc57b6e4 235 * @{
mbed_official 381:5460fc57b6e4 236 */
mbed_official 381:5460fc57b6e4 237 /* Peripheral Control functions ***********************************************/
mbed_official 381:5460fc57b6e4 238 HAL_StatusTypeDef HAL_COMP_Lock(COMP_HandleTypeDef *hcomp);
mbed_official 381:5460fc57b6e4 239 uint32_t HAL_COMP_GetOutputLevel(COMP_HandleTypeDef *hcomp);
mbed_official 381:5460fc57b6e4 240
mbed_official 381:5460fc57b6e4 241 /* Callback in Interrupt mode */
mbed_official 381:5460fc57b6e4 242 void HAL_COMP_TriggerCallback(COMP_HandleTypeDef *hcomp);
mbed_official 381:5460fc57b6e4 243 /**
mbed_official 381:5460fc57b6e4 244 * @}
mbed_official 381:5460fc57b6e4 245 */
mbed_official 381:5460fc57b6e4 246
mbed_official 381:5460fc57b6e4 247 /** @addtogroup COMP_Exported_Functions_Group4 Peripheral State functions
mbed_official 381:5460fc57b6e4 248 * @brief Peripheral State functions
mbed_official 381:5460fc57b6e4 249 * @{
mbed_official 381:5460fc57b6e4 250 */
mbed_official 381:5460fc57b6e4 251 /* Peripheral State and Error functions ***************************************/
mbed_official 381:5460fc57b6e4 252 HAL_COMP_StateTypeDef HAL_COMP_GetState(COMP_HandleTypeDef *hcomp);
mbed_official 381:5460fc57b6e4 253 /**
mbed_official 381:5460fc57b6e4 254 * @}
mbed_official 381:5460fc57b6e4 255 */
mbed_official 381:5460fc57b6e4 256
mbed_official 381:5460fc57b6e4 257 /**
mbed_official 381:5460fc57b6e4 258 * @}
mbed_official 381:5460fc57b6e4 259 */
mbed_official 381:5460fc57b6e4 260
mbed_official 381:5460fc57b6e4 261 /**
mbed_official 381:5460fc57b6e4 262 * @}
mbed_official 381:5460fc57b6e4 263 */
mbed_official 381:5460fc57b6e4 264
mbed_official 381:5460fc57b6e4 265 /**
mbed_official 381:5460fc57b6e4 266 * @}
mbed_official 381:5460fc57b6e4 267 */
mbed_official 381:5460fc57b6e4 268
mbed_official 381:5460fc57b6e4 269 #ifdef __cplusplus
mbed_official 381:5460fc57b6e4 270 }
mbed_official 381:5460fc57b6e4 271 #endif
mbed_official 381:5460fc57b6e4 272
mbed_official 381:5460fc57b6e4 273 #endif /* __STM32F3xx_HAL_COMP_H */
mbed_official 381:5460fc57b6e4 274
mbed_official 381:5460fc57b6e4 275 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/