mbed library sources

Dependents:   Marvino mbot

Fork of mbed-src by mbed official

Committer:
mbed_official
Date:
Fri Aug 14 13:15:17 2015 +0100
Revision:
610:813dcc80987e
Synchronized with git revision 6d84db41c6833e0b9b024741eb0616a5f62d5599

Full URL: https://github.com/mbedmicro/mbed/commit/6d84db41c6833e0b9b024741eb0616a5f62d5599/

DISCO_F746NG - Improvements

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mbed_official 610:813dcc80987e 1 /**
mbed_official 610:813dcc80987e 2 ******************************************************************************
mbed_official 610:813dcc80987e 3 * @file stm32l4xx_hal_pcd_ex.c
mbed_official 610:813dcc80987e 4 * @author MCD Application Team
mbed_official 610:813dcc80987e 5 * @version V1.0.0
mbed_official 610:813dcc80987e 6 * @date 26-June-2015
mbed_official 610:813dcc80987e 7 * @brief PCD Extended HAL module driver.
mbed_official 610:813dcc80987e 8 * This file provides firmware functions to manage the following
mbed_official 610:813dcc80987e 9 * functionalities of the USB Peripheral Controller:
mbed_official 610:813dcc80987e 10 * + Extended features functions
mbed_official 610:813dcc80987e 11 *
mbed_official 610:813dcc80987e 12 ******************************************************************************
mbed_official 610:813dcc80987e 13 * @attention
mbed_official 610:813dcc80987e 14 *
mbed_official 610:813dcc80987e 15 * <h2><center>&copy; COPYRIGHT(c) 2015 STMicroelectronics</center></h2>
mbed_official 610:813dcc80987e 16 *
mbed_official 610:813dcc80987e 17 * Redistribution and use in source and binary forms, with or without modification,
mbed_official 610:813dcc80987e 18 * are permitted provided that the following conditions are met:
mbed_official 610:813dcc80987e 19 * 1. Redistributions of source code must retain the above copyright notice,
mbed_official 610:813dcc80987e 20 * this list of conditions and the following disclaimer.
mbed_official 610:813dcc80987e 21 * 2. Redistributions in binary form must reproduce the above copyright notice,
mbed_official 610:813dcc80987e 22 * this list of conditions and the following disclaimer in the documentation
mbed_official 610:813dcc80987e 23 * and/or other materials provided with the distribution.
mbed_official 610:813dcc80987e 24 * 3. Neither the name of STMicroelectronics nor the names of its contributors
mbed_official 610:813dcc80987e 25 * may be used to endorse or promote products derived from this software
mbed_official 610:813dcc80987e 26 * without specific prior written permission.
mbed_official 610:813dcc80987e 27 *
mbed_official 610:813dcc80987e 28 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
mbed_official 610:813dcc80987e 29 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
mbed_official 610:813dcc80987e 30 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
mbed_official 610:813dcc80987e 31 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
mbed_official 610:813dcc80987e 32 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
mbed_official 610:813dcc80987e 33 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
mbed_official 610:813dcc80987e 34 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
mbed_official 610:813dcc80987e 35 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
mbed_official 610:813dcc80987e 36 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
mbed_official 610:813dcc80987e 37 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
mbed_official 610:813dcc80987e 38 *
mbed_official 610:813dcc80987e 39 ******************************************************************************
mbed_official 610:813dcc80987e 40 */
mbed_official 610:813dcc80987e 41
mbed_official 610:813dcc80987e 42 /* Includes ------------------------------------------------------------------*/
mbed_official 610:813dcc80987e 43 #include "stm32l4xx_hal.h"
mbed_official 610:813dcc80987e 44
mbed_official 610:813dcc80987e 45 #if defined(STM32L475xx) || defined(STM32L476xx) || defined(STM32L485xx) || defined(STM32L486xx)
mbed_official 610:813dcc80987e 46
mbed_official 610:813dcc80987e 47 /** @addtogroup STM32L4xx_HAL_Driver
mbed_official 610:813dcc80987e 48 * @{
mbed_official 610:813dcc80987e 49 */
mbed_official 610:813dcc80987e 50
mbed_official 610:813dcc80987e 51 /** @defgroup PCDEx PCDEx
mbed_official 610:813dcc80987e 52 * @brief PCD Extended HAL module driver
mbed_official 610:813dcc80987e 53 * @{
mbed_official 610:813dcc80987e 54 */
mbed_official 610:813dcc80987e 55 #ifdef HAL_PCD_MODULE_ENABLED
mbed_official 610:813dcc80987e 56
mbed_official 610:813dcc80987e 57 /* Private types -------------------------------------------------------------*/
mbed_official 610:813dcc80987e 58 /* Private variables ---------------------------------------------------------*/
mbed_official 610:813dcc80987e 59 /* Private constants ---------------------------------------------------------*/
mbed_official 610:813dcc80987e 60 /* Private macros ------------------------------------------------------------*/
mbed_official 610:813dcc80987e 61 /* Private functions ---------------------------------------------------------*/
mbed_official 610:813dcc80987e 62 /* Exported functions --------------------------------------------------------*/
mbed_official 610:813dcc80987e 63
mbed_official 610:813dcc80987e 64 /** @defgroup PCDEx_Exported_Functions PCD Extended Exported Functions
mbed_official 610:813dcc80987e 65 * @{
mbed_official 610:813dcc80987e 66 */
mbed_official 610:813dcc80987e 67
mbed_official 610:813dcc80987e 68 /** @defgroup PCDEx_Exported_Functions_Group1 Peripheral Control functions
mbed_official 610:813dcc80987e 69 * @brief PCDEx control functions
mbed_official 610:813dcc80987e 70 *
mbed_official 610:813dcc80987e 71 @verbatim
mbed_official 610:813dcc80987e 72 ===============================================================================
mbed_official 610:813dcc80987e 73 ##### Extended features functions #####
mbed_official 610:813dcc80987e 74 ===============================================================================
mbed_official 610:813dcc80987e 75 [..] This section provides functions allowing to:
mbed_official 610:813dcc80987e 76 (+) Update FIFO configuration
mbed_official 610:813dcc80987e 77
mbed_official 610:813dcc80987e 78 @endverbatim
mbed_official 610:813dcc80987e 79 * @{
mbed_official 610:813dcc80987e 80 */
mbed_official 610:813dcc80987e 81
mbed_official 610:813dcc80987e 82 /**
mbed_official 610:813dcc80987e 83 * @brief Set Tx FIFO
mbed_official 610:813dcc80987e 84 * @param hpcd: PCD handle
mbed_official 610:813dcc80987e 85 * @param fifo: The number of Tx fifo
mbed_official 610:813dcc80987e 86 * @param size: Fifo size
mbed_official 610:813dcc80987e 87 * @retval HAL status
mbed_official 610:813dcc80987e 88 */
mbed_official 610:813dcc80987e 89 HAL_StatusTypeDef HAL_PCDEx_SetTxFiFo(PCD_HandleTypeDef *hpcd, uint8_t fifo, uint16_t size)
mbed_official 610:813dcc80987e 90 {
mbed_official 610:813dcc80987e 91 uint8_t i = 0;
mbed_official 610:813dcc80987e 92 uint32_t Tx_Offset = 0;
mbed_official 610:813dcc80987e 93
mbed_official 610:813dcc80987e 94 /* TXn min size = 16 words. (n : Transmit FIFO index)
mbed_official 610:813dcc80987e 95 When a TxFIFO is not used, the Configuration should be as follows:
mbed_official 610:813dcc80987e 96 case 1 : n > m and Txn is not used (n,m : Transmit FIFO indexes)
mbed_official 610:813dcc80987e 97 --> Txm can use the space allocated for Txn.
mbed_official 610:813dcc80987e 98 case2 : n < m and Txn is not used (n,m : Transmit FIFO indexes)
mbed_official 610:813dcc80987e 99 --> Txn should be configured with the minimum space of 16 words
mbed_official 610:813dcc80987e 100 The FIFO is used optimally when used TxFIFOs are allocated in the top
mbed_official 610:813dcc80987e 101 of the FIFO.Ex: use EP1 and EP2 as IN instead of EP1 and EP3 as IN ones.
mbed_official 610:813dcc80987e 102 When DMA is used 3n * FIFO locations should be reserved for internal DMA registers */
mbed_official 610:813dcc80987e 103
mbed_official 610:813dcc80987e 104 Tx_Offset = hpcd->Instance->GRXFSIZ;
mbed_official 610:813dcc80987e 105
mbed_official 610:813dcc80987e 106 if(fifo == 0)
mbed_official 610:813dcc80987e 107 {
mbed_official 610:813dcc80987e 108 hpcd->Instance->DIEPTXF0_HNPTXFSIZ = (size << 16) | Tx_Offset;
mbed_official 610:813dcc80987e 109 }
mbed_official 610:813dcc80987e 110 else
mbed_official 610:813dcc80987e 111 {
mbed_official 610:813dcc80987e 112 Tx_Offset += (hpcd->Instance->DIEPTXF0_HNPTXFSIZ) >> 16;
mbed_official 610:813dcc80987e 113 for (i = 0; i < (fifo - 1); i++)
mbed_official 610:813dcc80987e 114 {
mbed_official 610:813dcc80987e 115 Tx_Offset += (hpcd->Instance->DIEPTXF[i] >> 16);
mbed_official 610:813dcc80987e 116 }
mbed_official 610:813dcc80987e 117
mbed_official 610:813dcc80987e 118 /* Multiply Tx_Size by 2 to get higher performance */
mbed_official 610:813dcc80987e 119 hpcd->Instance->DIEPTXF[fifo - 1] = (size << 16) | Tx_Offset;
mbed_official 610:813dcc80987e 120 }
mbed_official 610:813dcc80987e 121
mbed_official 610:813dcc80987e 122 return HAL_OK;
mbed_official 610:813dcc80987e 123 }
mbed_official 610:813dcc80987e 124
mbed_official 610:813dcc80987e 125 /**
mbed_official 610:813dcc80987e 126 * @brief Set Rx FIFO
mbed_official 610:813dcc80987e 127 * @param hpcd: PCD handle
mbed_official 610:813dcc80987e 128 * @param size: Size of Rx fifo
mbed_official 610:813dcc80987e 129 * @retval HAL status
mbed_official 610:813dcc80987e 130 */
mbed_official 610:813dcc80987e 131 HAL_StatusTypeDef HAL_PCDEx_SetRxFiFo(PCD_HandleTypeDef *hpcd, uint16_t size)
mbed_official 610:813dcc80987e 132 {
mbed_official 610:813dcc80987e 133 hpcd->Instance->GRXFSIZ = size;
mbed_official 610:813dcc80987e 134
mbed_official 610:813dcc80987e 135 return HAL_OK;
mbed_official 610:813dcc80987e 136 }
mbed_official 610:813dcc80987e 137
mbed_official 610:813dcc80987e 138 /**
mbed_official 610:813dcc80987e 139 * @brief Activate LPM feature.
mbed_official 610:813dcc80987e 140 * @param hpcd: PCD handle
mbed_official 610:813dcc80987e 141 * @retval HAL status
mbed_official 610:813dcc80987e 142 */
mbed_official 610:813dcc80987e 143 HAL_StatusTypeDef HAL_PCDEx_ActivateLPM(PCD_HandleTypeDef *hpcd)
mbed_official 610:813dcc80987e 144 {
mbed_official 610:813dcc80987e 145 USB_OTG_GlobalTypeDef *USBx = hpcd->Instance;
mbed_official 610:813dcc80987e 146
mbed_official 610:813dcc80987e 147 hpcd->lpm_active = ENABLE;
mbed_official 610:813dcc80987e 148 hpcd->LPM_State = LPM_L0;
mbed_official 610:813dcc80987e 149 USBx->GINTMSK |= USB_OTG_GINTMSK_LPMINTM;
mbed_official 610:813dcc80987e 150 USBx->GLPMCFG |= (USB_OTG_GLPMCFG_LPMEN | USB_OTG_GLPMCFG_LPMACK | USB_OTG_GLPMCFG_ENBESL);
mbed_official 610:813dcc80987e 151
mbed_official 610:813dcc80987e 152 return HAL_OK;
mbed_official 610:813dcc80987e 153 }
mbed_official 610:813dcc80987e 154
mbed_official 610:813dcc80987e 155 /**
mbed_official 610:813dcc80987e 156 * @brief Deactivate LPM feature.
mbed_official 610:813dcc80987e 157 * @param hpcd: PCD handle
mbed_official 610:813dcc80987e 158 * @retval HAL status
mbed_official 610:813dcc80987e 159 */
mbed_official 610:813dcc80987e 160 HAL_StatusTypeDef HAL_PCDEx_DeActivateLPM(PCD_HandleTypeDef *hpcd)
mbed_official 610:813dcc80987e 161 {
mbed_official 610:813dcc80987e 162 USB_OTG_GlobalTypeDef *USBx = hpcd->Instance;
mbed_official 610:813dcc80987e 163
mbed_official 610:813dcc80987e 164 hpcd->lpm_active = DISABLE;
mbed_official 610:813dcc80987e 165 USBx->GINTMSK &= ~USB_OTG_GINTMSK_LPMINTM;
mbed_official 610:813dcc80987e 166 USBx->GLPMCFG &= ~(USB_OTG_GLPMCFG_LPMEN | USB_OTG_GLPMCFG_LPMACK | USB_OTG_GLPMCFG_ENBESL);
mbed_official 610:813dcc80987e 167
mbed_official 610:813dcc80987e 168 return HAL_OK;
mbed_official 610:813dcc80987e 169 }
mbed_official 610:813dcc80987e 170
mbed_official 610:813dcc80987e 171 /**
mbed_official 610:813dcc80987e 172 * @brief Handle BatteryCharging Process.
mbed_official 610:813dcc80987e 173 * @param hpcd: PCD handle
mbed_official 610:813dcc80987e 174 * @retval HAL status
mbed_official 610:813dcc80987e 175 */
mbed_official 610:813dcc80987e 176 void HAL_PCDEx_BCD_VBUSDetect(PCD_HandleTypeDef *hpcd)
mbed_official 610:813dcc80987e 177 {
mbed_official 610:813dcc80987e 178 USB_OTG_GlobalTypeDef *USBx = hpcd->Instance;
mbed_official 610:813dcc80987e 179 uint32_t tickstart = HAL_GetTick();
mbed_official 610:813dcc80987e 180
mbed_official 610:813dcc80987e 181 /* Start BCD When device is connected */
mbed_official 610:813dcc80987e 182 if (USBx_DEVICE->DCTL & USB_OTG_DCTL_SDIS)
mbed_official 610:813dcc80987e 183 {
mbed_official 610:813dcc80987e 184 /* Enable DCD : Data Contact Detect */
mbed_official 610:813dcc80987e 185 USBx->GCCFG |= USB_OTG_GCCFG_DCDEN;
mbed_official 610:813dcc80987e 186
mbed_official 610:813dcc80987e 187 /* Wait Detect flag or a timeout is happen*/
mbed_official 610:813dcc80987e 188 while ((USBx->GCCFG & USB_OTG_GCCFG_DCDET) == 0)
mbed_official 610:813dcc80987e 189 {
mbed_official 610:813dcc80987e 190 /* Check for the Timeout */
mbed_official 610:813dcc80987e 191 if((HAL_GetTick() - tickstart ) > 1000)
mbed_official 610:813dcc80987e 192 {
mbed_official 610:813dcc80987e 193 HAL_PCDEx_BCD_Callback(hpcd, PCD_BCD_ERROR);
mbed_official 610:813dcc80987e 194 return;
mbed_official 610:813dcc80987e 195 }
mbed_official 610:813dcc80987e 196 }
mbed_official 610:813dcc80987e 197
mbed_official 610:813dcc80987e 198 /* Right response got */
mbed_official 610:813dcc80987e 199 HAL_Delay(100);
mbed_official 610:813dcc80987e 200
mbed_official 610:813dcc80987e 201 /* Check Detect flag*/
mbed_official 610:813dcc80987e 202 if (USBx->GCCFG & USB_OTG_GCCFG_DCDET)
mbed_official 610:813dcc80987e 203 {
mbed_official 610:813dcc80987e 204 HAL_PCDEx_BCD_Callback(hpcd, PCD_BCD_CONTACT_DETECTION);
mbed_official 610:813dcc80987e 205 }
mbed_official 610:813dcc80987e 206
mbed_official 610:813dcc80987e 207 /*Primary detection: checks if connected to Standard Downstream Port
mbed_official 610:813dcc80987e 208 (without charging capability) */
mbed_official 610:813dcc80987e 209 USBx->GCCFG &=~ USB_OTG_GCCFG_DCDEN;
mbed_official 610:813dcc80987e 210 USBx->GCCFG |= USB_OTG_GCCFG_PDEN;
mbed_official 610:813dcc80987e 211 HAL_Delay(100);
mbed_official 610:813dcc80987e 212
mbed_official 610:813dcc80987e 213 if (!(USBx->GCCFG & USB_OTG_GCCFG_PDET))
mbed_official 610:813dcc80987e 214 {
mbed_official 610:813dcc80987e 215 /* Case of Standard Downstream Port */
mbed_official 610:813dcc80987e 216 HAL_PCDEx_BCD_Callback(hpcd, PCD_BCD_STD_DOWNSTREAM_PORT);
mbed_official 610:813dcc80987e 217 }
mbed_official 610:813dcc80987e 218 else
mbed_official 610:813dcc80987e 219 {
mbed_official 610:813dcc80987e 220 /* start secondary detection to check connection to Charging Downstream
mbed_official 610:813dcc80987e 221 Port or Dedicated Charging Port */
mbed_official 610:813dcc80987e 222 USBx->GCCFG &=~ USB_OTG_GCCFG_PDEN;
mbed_official 610:813dcc80987e 223 USBx->GCCFG |= USB_OTG_GCCFG_SDEN;
mbed_official 610:813dcc80987e 224 HAL_Delay(100);
mbed_official 610:813dcc80987e 225
mbed_official 610:813dcc80987e 226 if ((USBx->GCCFG) & USB_OTG_GCCFG_SDET)
mbed_official 610:813dcc80987e 227 {
mbed_official 610:813dcc80987e 228 /* case Dedicated Charging Port */
mbed_official 610:813dcc80987e 229 HAL_PCDEx_BCD_Callback(hpcd, PCD_BCD_DEDICATED_CHARGING_PORT);
mbed_official 610:813dcc80987e 230 }
mbed_official 610:813dcc80987e 231 else
mbed_official 610:813dcc80987e 232 {
mbed_official 610:813dcc80987e 233 /* case Charging Downstream Port */
mbed_official 610:813dcc80987e 234 HAL_PCDEx_BCD_Callback(hpcd, PCD_BCD_CHARGING_DOWNSTREAM_PORT);
mbed_official 610:813dcc80987e 235 }
mbed_official 610:813dcc80987e 236 }
mbed_official 610:813dcc80987e 237 /* Battery Charging capability discovery finished */
mbed_official 610:813dcc80987e 238 HAL_PCDEx_BCD_Callback(hpcd, PCD_BCD_DISCOVERY_COMPLETED);
mbed_official 610:813dcc80987e 239 }
mbed_official 610:813dcc80987e 240 }
mbed_official 610:813dcc80987e 241
mbed_official 610:813dcc80987e 242 /**
mbed_official 610:813dcc80987e 243 * @brief Activate BatteryCharging feature.
mbed_official 610:813dcc80987e 244 * @param hpcd: PCD handle
mbed_official 610:813dcc80987e 245 * @retval HAL status
mbed_official 610:813dcc80987e 246 */
mbed_official 610:813dcc80987e 247 HAL_StatusTypeDef HAL_PCDEx_ActivateBCD(PCD_HandleTypeDef *hpcd)
mbed_official 610:813dcc80987e 248 {
mbed_official 610:813dcc80987e 249 USB_OTG_GlobalTypeDef *USBx = hpcd->Instance;
mbed_official 610:813dcc80987e 250
mbed_official 610:813dcc80987e 251 hpcd->battery_charging_active = ENABLE;
mbed_official 610:813dcc80987e 252 USBx->GCCFG |= (USB_OTG_GCCFG_BCDEN);
mbed_official 610:813dcc80987e 253
mbed_official 610:813dcc80987e 254 return HAL_OK;
mbed_official 610:813dcc80987e 255 }
mbed_official 610:813dcc80987e 256
mbed_official 610:813dcc80987e 257 /**
mbed_official 610:813dcc80987e 258 * @brief Deactivate BatteryCharging feature.
mbed_official 610:813dcc80987e 259 * @param hpcd: PCD handle
mbed_official 610:813dcc80987e 260 * @retval HAL status
mbed_official 610:813dcc80987e 261 */
mbed_official 610:813dcc80987e 262 HAL_StatusTypeDef HAL_PCDEx_DeActivateBCD(PCD_HandleTypeDef *hpcd)
mbed_official 610:813dcc80987e 263 {
mbed_official 610:813dcc80987e 264 USB_OTG_GlobalTypeDef *USBx = hpcd->Instance;
mbed_official 610:813dcc80987e 265 hpcd->battery_charging_active = DISABLE;
mbed_official 610:813dcc80987e 266 USBx->GCCFG &= ~(USB_OTG_GCCFG_BCDEN);
mbed_official 610:813dcc80987e 267 return HAL_OK;
mbed_official 610:813dcc80987e 268 }
mbed_official 610:813dcc80987e 269
mbed_official 610:813dcc80987e 270 /**
mbed_official 610:813dcc80987e 271 * @brief Send LPM message to user layer callback.
mbed_official 610:813dcc80987e 272 * @param hpcd: PCD handle
mbed_official 610:813dcc80987e 273 * @param msg: LPM message
mbed_official 610:813dcc80987e 274 * @retval HAL status
mbed_official 610:813dcc80987e 275 */
mbed_official 610:813dcc80987e 276 __weak void HAL_PCDEx_LPM_Callback(PCD_HandleTypeDef *hpcd, PCD_LPM_MsgTypeDef msg)
mbed_official 610:813dcc80987e 277 {
mbed_official 610:813dcc80987e 278 }
mbed_official 610:813dcc80987e 279
mbed_official 610:813dcc80987e 280 /**
mbed_official 610:813dcc80987e 281 * @brief Send BatteryCharging message to user layer callback.
mbed_official 610:813dcc80987e 282 * @param hpcd: PCD handle
mbed_official 610:813dcc80987e 283 * @param msg: LPM message
mbed_official 610:813dcc80987e 284 * @retval HAL status
mbed_official 610:813dcc80987e 285 */
mbed_official 610:813dcc80987e 286 __weak void HAL_PCDEx_BCD_Callback(PCD_HandleTypeDef *hpcd, PCD_BCD_MsgTypeDef msg)
mbed_official 610:813dcc80987e 287 {
mbed_official 610:813dcc80987e 288 }
mbed_official 610:813dcc80987e 289
mbed_official 610:813dcc80987e 290 /**
mbed_official 610:813dcc80987e 291 * @}
mbed_official 610:813dcc80987e 292 */
mbed_official 610:813dcc80987e 293
mbed_official 610:813dcc80987e 294 /**
mbed_official 610:813dcc80987e 295 * @}
mbed_official 610:813dcc80987e 296 */
mbed_official 610:813dcc80987e 297
mbed_official 610:813dcc80987e 298 #endif /* HAL_PCD_MODULE_ENABLED */
mbed_official 610:813dcc80987e 299 /**
mbed_official 610:813dcc80987e 300 * @}
mbed_official 610:813dcc80987e 301 */
mbed_official 610:813dcc80987e 302
mbed_official 610:813dcc80987e 303 /**
mbed_official 610:813dcc80987e 304 * @}
mbed_official 610:813dcc80987e 305 */
mbed_official 610:813dcc80987e 306
mbed_official 610:813dcc80987e 307 #endif /* STM32L475xx || STM32L476xx || STM32L485xx || STM32L486xx */
mbed_official 610:813dcc80987e 308
mbed_official 610:813dcc80987e 309 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/