mbed library sources

Fork of mbed-src by mbed official

Committer:
mbed_official
Date:
Fri Nov 07 08:15:08 2014 +0000
Revision:
392:2b59412bb664
Parent:
targets/cmsis/TARGET_STM/TARGET_NUCLEO_F030R8/stm32f0xx_hal_i2c_ex.c@340:28d1f895c6fe
Child:
441:d2c15dda23c1
Synchronized with git revision eec0be05cd92349bee83c65f9e1302b25b5badf4

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

Targets: STM32F0 - Factorisation of NUCLEO_F030R8/F072RB/F091RC cmsis folders

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mbed_official 340:28d1f895c6fe 1 /**
mbed_official 340:28d1f895c6fe 2 ******************************************************************************
mbed_official 340:28d1f895c6fe 3 * @file stm32f0xx_hal_i2c_ex.c
mbed_official 340:28d1f895c6fe 4 * @author MCD Application Team
mbed_official 340:28d1f895c6fe 5 * @version V1.1.0
mbed_official 340:28d1f895c6fe 6 * @date 03-Oct-2014
mbed_official 340:28d1f895c6fe 7 * @brief I2C Extension HAL module driver.
mbed_official 340:28d1f895c6fe 8 * This file provides firmware functions to manage the following
mbed_official 340:28d1f895c6fe 9 * functionalities of I2C extension peripheral:
mbed_official 340:28d1f895c6fe 10 * + Extension features functions
mbed_official 340:28d1f895c6fe 11 *
mbed_official 340:28d1f895c6fe 12 @verbatim
mbed_official 340:28d1f895c6fe 13 ==============================================================================
mbed_official 340:28d1f895c6fe 14 ##### I2C peripheral extension features #####
mbed_official 340:28d1f895c6fe 15 ==============================================================================
mbed_official 340:28d1f895c6fe 16
mbed_official 340:28d1f895c6fe 17 [..] Comparing to other previous devices, the I2C interface for STM32F0XX
mbed_official 340:28d1f895c6fe 18 devices contains the following additional features
mbed_official 340:28d1f895c6fe 19
mbed_official 340:28d1f895c6fe 20 (+) Possibility to disable or enable Analog Noise Filter
mbed_official 340:28d1f895c6fe 21 (+) Use of a configured Digital Noise Filter
mbed_official 340:28d1f895c6fe 22 (+) Disable or enable wakeup from Stop mode
mbed_official 340:28d1f895c6fe 23
mbed_official 340:28d1f895c6fe 24 ##### How to use this driver #####
mbed_official 340:28d1f895c6fe 25 ==============================================================================
mbed_official 340:28d1f895c6fe 26 [..] This driver provides functions to configure Noise Filter
mbed_official 340:28d1f895c6fe 27 (#) Configure I2C Analog noise filter using the function HAL_I2CEx_AnalogFilter_Config()
mbed_official 340:28d1f895c6fe 28 (#) Configure I2C Digital noise filter using the function HAL_I2CEx_DigitalFilter_Config()
mbed_official 340:28d1f895c6fe 29 (#) Configure the enabling or disabling of I2C Wake Up Mode using the functions :
mbed_official 340:28d1f895c6fe 30 (++) HAL_I2CEx_EnableWakeUp()
mbed_official 340:28d1f895c6fe 31 (++) HAL_I2CEx_DisableWakeUp()
mbed_official 340:28d1f895c6fe 32
mbed_official 340:28d1f895c6fe 33 @endverbatim
mbed_official 340:28d1f895c6fe 34 ******************************************************************************
mbed_official 340:28d1f895c6fe 35 * @attention
mbed_official 340:28d1f895c6fe 36 *
mbed_official 340:28d1f895c6fe 37 * <h2><center>&copy; COPYRIGHT(c) 2014 STMicroelectronics</center></h2>
mbed_official 340:28d1f895c6fe 38 *
mbed_official 340:28d1f895c6fe 39 * Redistribution and use in source and binary forms, with or without modification,
mbed_official 340:28d1f895c6fe 40 * are permitted provided that the following conditions are met:
mbed_official 340:28d1f895c6fe 41 * 1. Redistributions of source code must retain the above copyright notice,
mbed_official 340:28d1f895c6fe 42 * this list of conditions and the following disclaimer.
mbed_official 340:28d1f895c6fe 43 * 2. Redistributions in binary form must reproduce the above copyright notice,
mbed_official 340:28d1f895c6fe 44 * this list of conditions and the following disclaimer in the documentation
mbed_official 340:28d1f895c6fe 45 * and/or other materials provided with the distribution.
mbed_official 340:28d1f895c6fe 46 * 3. Neither the name of STMicroelectronics nor the names of its contributors
mbed_official 340:28d1f895c6fe 47 * may be used to endorse or promote products derived from this software
mbed_official 340:28d1f895c6fe 48 * without specific prior written permission.
mbed_official 340:28d1f895c6fe 49 *
mbed_official 340:28d1f895c6fe 50 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
mbed_official 340:28d1f895c6fe 51 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
mbed_official 340:28d1f895c6fe 52 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
mbed_official 340:28d1f895c6fe 53 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
mbed_official 340:28d1f895c6fe 54 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
mbed_official 340:28d1f895c6fe 55 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
mbed_official 340:28d1f895c6fe 56 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
mbed_official 340:28d1f895c6fe 57 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
mbed_official 340:28d1f895c6fe 58 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
mbed_official 340:28d1f895c6fe 59 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
mbed_official 340:28d1f895c6fe 60 *
mbed_official 340:28d1f895c6fe 61 ******************************************************************************
mbed_official 340:28d1f895c6fe 62 */
mbed_official 340:28d1f895c6fe 63
mbed_official 340:28d1f895c6fe 64 /* Includes ------------------------------------------------------------------*/
mbed_official 340:28d1f895c6fe 65 #include "stm32f0xx_hal.h"
mbed_official 340:28d1f895c6fe 66
mbed_official 340:28d1f895c6fe 67 /** @addtogroup STM32F0xx_HAL_Driver
mbed_official 340:28d1f895c6fe 68 * @{
mbed_official 340:28d1f895c6fe 69 */
mbed_official 340:28d1f895c6fe 70
mbed_official 340:28d1f895c6fe 71 /** @defgroup I2CEx I2CEx Extended HAL module driver
mbed_official 340:28d1f895c6fe 72 * @brief I2C Extended HAL module driver
mbed_official 340:28d1f895c6fe 73 * @{
mbed_official 340:28d1f895c6fe 74 */
mbed_official 340:28d1f895c6fe 75
mbed_official 340:28d1f895c6fe 76 #ifdef HAL_I2C_MODULE_ENABLED
mbed_official 340:28d1f895c6fe 77
mbed_official 340:28d1f895c6fe 78 /* Private typedef -----------------------------------------------------------*/
mbed_official 340:28d1f895c6fe 79 /* Private define ------------------------------------------------------------*/
mbed_official 340:28d1f895c6fe 80 /* Private macro -------------------------------------------------------------*/
mbed_official 340:28d1f895c6fe 81 /* Private variables ---------------------------------------------------------*/
mbed_official 340:28d1f895c6fe 82 /* Private function prototypes -----------------------------------------------*/
mbed_official 340:28d1f895c6fe 83 /* Private functions ---------------------------------------------------------*/
mbed_official 340:28d1f895c6fe 84
mbed_official 340:28d1f895c6fe 85 /** @defgroup I2CEx_Exported_Functions I2CEx Exported Functions
mbed_official 340:28d1f895c6fe 86 * @{
mbed_official 340:28d1f895c6fe 87 */
mbed_official 340:28d1f895c6fe 88
mbed_official 340:28d1f895c6fe 89 /** @defgroup I2CEx_Exported_Functions_Group1 Extended features functions
mbed_official 340:28d1f895c6fe 90 * @brief Extended features functions
mbed_official 340:28d1f895c6fe 91 *
mbed_official 340:28d1f895c6fe 92 @verbatim
mbed_official 340:28d1f895c6fe 93 ===============================================================================
mbed_official 340:28d1f895c6fe 94 ##### Extension features functions #####
mbed_official 340:28d1f895c6fe 95 ===============================================================================
mbed_official 340:28d1f895c6fe 96 [..] This section provides functions allowing to:
mbed_official 340:28d1f895c6fe 97 (+) Configure Noise Filters
mbed_official 340:28d1f895c6fe 98
mbed_official 340:28d1f895c6fe 99 @endverbatim
mbed_official 340:28d1f895c6fe 100 * @{
mbed_official 340:28d1f895c6fe 101 */
mbed_official 340:28d1f895c6fe 102
mbed_official 340:28d1f895c6fe 103 /**
mbed_official 340:28d1f895c6fe 104 * @brief Configures I2C Analog noise filter.
mbed_official 340:28d1f895c6fe 105 * @param hi2c : pointer to a I2C_HandleTypeDef structure that contains
mbed_official 340:28d1f895c6fe 106 * the configuration information for the specified I2Cx peripheral.
mbed_official 340:28d1f895c6fe 107 * @param AnalogFilter : new state of the Analog filter.
mbed_official 340:28d1f895c6fe 108 * @retval HAL status
mbed_official 340:28d1f895c6fe 109 */
mbed_official 340:28d1f895c6fe 110 HAL_StatusTypeDef HAL_I2CEx_AnalogFilter_Config(I2C_HandleTypeDef *hi2c, uint32_t AnalogFilter)
mbed_official 340:28d1f895c6fe 111 {
mbed_official 340:28d1f895c6fe 112 /* Check the parameters */
mbed_official 340:28d1f895c6fe 113 assert_param(IS_I2C_ALL_INSTANCE(hi2c->Instance));
mbed_official 340:28d1f895c6fe 114 assert_param(IS_I2C_ANALOG_FILTER(AnalogFilter));
mbed_official 340:28d1f895c6fe 115
mbed_official 340:28d1f895c6fe 116 if((hi2c->State == HAL_I2C_STATE_BUSY) || (hi2c->State == HAL_I2C_STATE_MASTER_BUSY_TX) || (hi2c->State == HAL_I2C_STATE_MASTER_BUSY_RX)
mbed_official 340:28d1f895c6fe 117 || (hi2c->State == HAL_I2C_STATE_SLAVE_BUSY_TX) || (hi2c->State == HAL_I2C_STATE_SLAVE_BUSY_RX))
mbed_official 340:28d1f895c6fe 118 {
mbed_official 340:28d1f895c6fe 119 return HAL_BUSY;
mbed_official 340:28d1f895c6fe 120 }
mbed_official 340:28d1f895c6fe 121
mbed_official 340:28d1f895c6fe 122 /* Process Locked */
mbed_official 340:28d1f895c6fe 123 __HAL_LOCK(hi2c);
mbed_official 340:28d1f895c6fe 124
mbed_official 340:28d1f895c6fe 125 hi2c->State = HAL_I2C_STATE_BUSY;
mbed_official 340:28d1f895c6fe 126
mbed_official 340:28d1f895c6fe 127 /* Disable the selected I2C peripheral */
mbed_official 340:28d1f895c6fe 128 __HAL_I2C_DISABLE(hi2c);
mbed_official 340:28d1f895c6fe 129
mbed_official 340:28d1f895c6fe 130 /* Reset I2Cx ANOFF bit */
mbed_official 340:28d1f895c6fe 131 hi2c->Instance->CR1 &= ~(I2C_CR1_ANFOFF);
mbed_official 340:28d1f895c6fe 132
mbed_official 340:28d1f895c6fe 133 /* Set analog filter bit*/
mbed_official 340:28d1f895c6fe 134 hi2c->Instance->CR1 |= AnalogFilter;
mbed_official 340:28d1f895c6fe 135
mbed_official 340:28d1f895c6fe 136 __HAL_I2C_ENABLE(hi2c);
mbed_official 340:28d1f895c6fe 137
mbed_official 340:28d1f895c6fe 138 hi2c->State = HAL_I2C_STATE_READY;
mbed_official 340:28d1f895c6fe 139
mbed_official 340:28d1f895c6fe 140 /* Process Unlocked */
mbed_official 340:28d1f895c6fe 141 __HAL_UNLOCK(hi2c);
mbed_official 340:28d1f895c6fe 142
mbed_official 340:28d1f895c6fe 143 return HAL_OK;
mbed_official 340:28d1f895c6fe 144 }
mbed_official 340:28d1f895c6fe 145
mbed_official 340:28d1f895c6fe 146 /**
mbed_official 340:28d1f895c6fe 147 * @brief Configures I2C Digital noise filter.
mbed_official 340:28d1f895c6fe 148 * @param hi2c : pointer to a I2C_HandleTypeDef structure that contains
mbed_official 340:28d1f895c6fe 149 * the configuration information for the specified I2Cx peripheral.
mbed_official 340:28d1f895c6fe 150 * @param DigitalFilter : Coefficient of digital noise filter between 0x00 and 0x0F.
mbed_official 340:28d1f895c6fe 151 * @retval HAL status
mbed_official 340:28d1f895c6fe 152 */
mbed_official 340:28d1f895c6fe 153 HAL_StatusTypeDef HAL_I2CEx_DigitalFilter_Config(I2C_HandleTypeDef *hi2c, uint32_t DigitalFilter)
mbed_official 340:28d1f895c6fe 154 {
mbed_official 340:28d1f895c6fe 155 uint32_t tmpreg = 0;
mbed_official 340:28d1f895c6fe 156
mbed_official 340:28d1f895c6fe 157 /* Check the parameters */
mbed_official 340:28d1f895c6fe 158 assert_param(IS_I2C_ALL_INSTANCE(hi2c->Instance));
mbed_official 340:28d1f895c6fe 159 assert_param(IS_I2C_DIGITAL_FILTER(DigitalFilter));
mbed_official 340:28d1f895c6fe 160
mbed_official 340:28d1f895c6fe 161 if((hi2c->State == HAL_I2C_STATE_BUSY) || (hi2c->State == HAL_I2C_STATE_MASTER_BUSY_TX) || (hi2c->State == HAL_I2C_STATE_MASTER_BUSY_RX)
mbed_official 340:28d1f895c6fe 162 || (hi2c->State == HAL_I2C_STATE_SLAVE_BUSY_TX) || (hi2c->State == HAL_I2C_STATE_SLAVE_BUSY_RX))
mbed_official 340:28d1f895c6fe 163 {
mbed_official 340:28d1f895c6fe 164 return HAL_BUSY;
mbed_official 340:28d1f895c6fe 165 }
mbed_official 340:28d1f895c6fe 166
mbed_official 340:28d1f895c6fe 167 /* Process Locked */
mbed_official 340:28d1f895c6fe 168 __HAL_LOCK(hi2c);
mbed_official 340:28d1f895c6fe 169
mbed_official 340:28d1f895c6fe 170 hi2c->State = HAL_I2C_STATE_BUSY;
mbed_official 340:28d1f895c6fe 171
mbed_official 340:28d1f895c6fe 172 /* Disable the selected I2C peripheral */
mbed_official 340:28d1f895c6fe 173 __HAL_I2C_DISABLE(hi2c);
mbed_official 340:28d1f895c6fe 174
mbed_official 340:28d1f895c6fe 175 /* Get the old register value */
mbed_official 340:28d1f895c6fe 176 tmpreg = hi2c->Instance->CR1;
mbed_official 340:28d1f895c6fe 177
mbed_official 340:28d1f895c6fe 178 /* Reset I2Cx DNF bits [11:8] */
mbed_official 340:28d1f895c6fe 179 tmpreg &= ~(I2C_CR1_DFN);
mbed_official 340:28d1f895c6fe 180
mbed_official 340:28d1f895c6fe 181 /* Set I2Cx DNF coefficient */
mbed_official 340:28d1f895c6fe 182 tmpreg |= DigitalFilter << 8;
mbed_official 340:28d1f895c6fe 183
mbed_official 340:28d1f895c6fe 184 /* Store the new register value */
mbed_official 340:28d1f895c6fe 185 hi2c->Instance->CR1 = tmpreg;
mbed_official 340:28d1f895c6fe 186
mbed_official 340:28d1f895c6fe 187 __HAL_I2C_ENABLE(hi2c);
mbed_official 340:28d1f895c6fe 188
mbed_official 340:28d1f895c6fe 189 hi2c->State = HAL_I2C_STATE_READY;
mbed_official 340:28d1f895c6fe 190
mbed_official 340:28d1f895c6fe 191 /* Process Unlocked */
mbed_official 340:28d1f895c6fe 192 __HAL_UNLOCK(hi2c);
mbed_official 340:28d1f895c6fe 193
mbed_official 340:28d1f895c6fe 194 return HAL_OK;
mbed_official 340:28d1f895c6fe 195 }
mbed_official 340:28d1f895c6fe 196
mbed_official 340:28d1f895c6fe 197 /**
mbed_official 340:28d1f895c6fe 198 * @brief Enables I2C wakeup from stop mode.
mbed_official 340:28d1f895c6fe 199 * @param hi2c : pointer to a I2C_HandleTypeDef structure that contains
mbed_official 340:28d1f895c6fe 200 * the configuration information for the specified I2Cx peripheral.
mbed_official 340:28d1f895c6fe 201 * @retval HAL status
mbed_official 340:28d1f895c6fe 202 */
mbed_official 340:28d1f895c6fe 203 HAL_StatusTypeDef HAL_I2CEx_EnableWakeUp (I2C_HandleTypeDef *hi2c)
mbed_official 340:28d1f895c6fe 204 {
mbed_official 340:28d1f895c6fe 205 /* Check the parameters */
mbed_official 340:28d1f895c6fe 206 assert_param(IS_I2C_ALL_INSTANCE(hi2c->Instance));
mbed_official 340:28d1f895c6fe 207
mbed_official 340:28d1f895c6fe 208 if((hi2c->State == HAL_I2C_STATE_BUSY) || (hi2c->State == HAL_I2C_STATE_MASTER_BUSY_TX) || (hi2c->State == HAL_I2C_STATE_MASTER_BUSY_RX)
mbed_official 340:28d1f895c6fe 209 || (hi2c->State == HAL_I2C_STATE_SLAVE_BUSY_TX) || (hi2c->State == HAL_I2C_STATE_SLAVE_BUSY_RX))
mbed_official 340:28d1f895c6fe 210 {
mbed_official 340:28d1f895c6fe 211 return HAL_BUSY;
mbed_official 340:28d1f895c6fe 212 }
mbed_official 340:28d1f895c6fe 213
mbed_official 340:28d1f895c6fe 214 /* Process Locked */
mbed_official 340:28d1f895c6fe 215 __HAL_LOCK(hi2c);
mbed_official 340:28d1f895c6fe 216
mbed_official 340:28d1f895c6fe 217 hi2c->State = HAL_I2C_STATE_BUSY;
mbed_official 340:28d1f895c6fe 218
mbed_official 340:28d1f895c6fe 219 /* Disable the selected I2C peripheral */
mbed_official 340:28d1f895c6fe 220 __HAL_I2C_DISABLE(hi2c);
mbed_official 340:28d1f895c6fe 221
mbed_official 340:28d1f895c6fe 222 /* Enable wakeup from stop mode */
mbed_official 340:28d1f895c6fe 223 hi2c->Instance->CR1 |= I2C_CR1_WUPEN;
mbed_official 340:28d1f895c6fe 224
mbed_official 340:28d1f895c6fe 225 __HAL_I2C_ENABLE(hi2c);
mbed_official 340:28d1f895c6fe 226
mbed_official 340:28d1f895c6fe 227 hi2c->State = HAL_I2C_STATE_READY;
mbed_official 340:28d1f895c6fe 228
mbed_official 340:28d1f895c6fe 229 /* Process Unlocked */
mbed_official 340:28d1f895c6fe 230 __HAL_UNLOCK(hi2c);
mbed_official 340:28d1f895c6fe 231
mbed_official 340:28d1f895c6fe 232 return HAL_OK;
mbed_official 340:28d1f895c6fe 233 }
mbed_official 340:28d1f895c6fe 234
mbed_official 340:28d1f895c6fe 235
mbed_official 340:28d1f895c6fe 236 /**
mbed_official 340:28d1f895c6fe 237 * @brief Disables I2C wakeup from stop mode.
mbed_official 340:28d1f895c6fe 238 * @param hi2c : pointer to a I2C_HandleTypeDef structure that contains
mbed_official 340:28d1f895c6fe 239 * the configuration information for the specified I2Cx peripheral.
mbed_official 340:28d1f895c6fe 240 * @retval HAL status
mbed_official 340:28d1f895c6fe 241 */
mbed_official 340:28d1f895c6fe 242 HAL_StatusTypeDef HAL_I2CEx_DisableWakeUp (I2C_HandleTypeDef *hi2c)
mbed_official 340:28d1f895c6fe 243 {
mbed_official 340:28d1f895c6fe 244 /* Check the parameters */
mbed_official 340:28d1f895c6fe 245 assert_param(IS_I2C_ALL_INSTANCE(hi2c->Instance));
mbed_official 340:28d1f895c6fe 246
mbed_official 340:28d1f895c6fe 247 if((hi2c->State == HAL_I2C_STATE_BUSY) || (hi2c->State == HAL_I2C_STATE_MASTER_BUSY_TX) || (hi2c->State == HAL_I2C_STATE_MASTER_BUSY_RX)
mbed_official 340:28d1f895c6fe 248 || (hi2c->State == HAL_I2C_STATE_SLAVE_BUSY_TX) || (hi2c->State == HAL_I2C_STATE_SLAVE_BUSY_RX))
mbed_official 340:28d1f895c6fe 249 {
mbed_official 340:28d1f895c6fe 250 return HAL_BUSY;
mbed_official 340:28d1f895c6fe 251 }
mbed_official 340:28d1f895c6fe 252
mbed_official 340:28d1f895c6fe 253 /* Process Locked */
mbed_official 340:28d1f895c6fe 254 __HAL_LOCK(hi2c);
mbed_official 340:28d1f895c6fe 255
mbed_official 340:28d1f895c6fe 256 hi2c->State = HAL_I2C_STATE_BUSY;
mbed_official 340:28d1f895c6fe 257
mbed_official 340:28d1f895c6fe 258 /* Disable the selected I2C peripheral */
mbed_official 340:28d1f895c6fe 259 __HAL_I2C_DISABLE(hi2c);
mbed_official 340:28d1f895c6fe 260
mbed_official 340:28d1f895c6fe 261 /* Enable wakeup from stop mode */
mbed_official 340:28d1f895c6fe 262 hi2c->Instance->CR1 &= ~(I2C_CR1_WUPEN);
mbed_official 340:28d1f895c6fe 263
mbed_official 340:28d1f895c6fe 264 __HAL_I2C_ENABLE(hi2c);
mbed_official 340:28d1f895c6fe 265
mbed_official 340:28d1f895c6fe 266 hi2c->State = HAL_I2C_STATE_READY;
mbed_official 340:28d1f895c6fe 267
mbed_official 340:28d1f895c6fe 268 /* Process Unlocked */
mbed_official 340:28d1f895c6fe 269 __HAL_UNLOCK(hi2c);
mbed_official 340:28d1f895c6fe 270
mbed_official 340:28d1f895c6fe 271 return HAL_OK;
mbed_official 340:28d1f895c6fe 272 }
mbed_official 340:28d1f895c6fe 273
mbed_official 340:28d1f895c6fe 274 /**
mbed_official 340:28d1f895c6fe 275 * @}
mbed_official 340:28d1f895c6fe 276 */
mbed_official 340:28d1f895c6fe 277
mbed_official 340:28d1f895c6fe 278 /**
mbed_official 340:28d1f895c6fe 279 * @}
mbed_official 340:28d1f895c6fe 280 */
mbed_official 340:28d1f895c6fe 281
mbed_official 340:28d1f895c6fe 282 #endif /* HAL_I2C_MODULE_ENABLED */
mbed_official 340:28d1f895c6fe 283 /**
mbed_official 340:28d1f895c6fe 284 * @}
mbed_official 340:28d1f895c6fe 285 */
mbed_official 340:28d1f895c6fe 286
mbed_official 340:28d1f895c6fe 287 /**
mbed_official 340:28d1f895c6fe 288 * @}
mbed_official 340:28d1f895c6fe 289 */
mbed_official 340:28d1f895c6fe 290
mbed_official 340:28d1f895c6fe 291 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/