Contains the BSP driver for the B-L475E-IOT01 board.

Dependents:   mbed-os-example-ble-Thermometer DISCO_L475VG_IOT01-Telegram-BOT DISCO_L475VG_IOT01-sche_cheveux DISCO_L475VG_IOT01-QSPI_FLASH_FILE_SYSTEM ... more

https://os.mbed.com/platforms/ST-Discovery-L475E-IOT01A/

Committer:
jeromecoutant
Date:
Tue Sep 24 15:30:09 2019 +0200
Revision:
7:bfe8272ced90
Parent:
6:9dfa42666f03
Update BSP files with STM32Cube L4 V1.14.0

Who changed what in which revision?

UserRevisionLine numberNew contents of line
bcostm 3:c6b5944187d5 1 /**
bcostm 3:c6b5944187d5 2 ******************************************************************************
bcostm 3:c6b5944187d5 3 * @file stm32l475e_iot01_gyro.h
bcostm 3:c6b5944187d5 4 * @author MCD Application Team
bcostm 3:c6b5944187d5 5 * @brief This file contains definitions for the stm32l475e_iot01_gyro.c
bcostm 3:c6b5944187d5 6 ******************************************************************************
bcostm 3:c6b5944187d5 7 * @attention
bcostm 3:c6b5944187d5 8 *
jeromecoutant 7:bfe8272ced90 9 * <h2><center>&copy; Copyright (c) 2017 STMicroelectronics.
bcostm 3:c6b5944187d5 10 * All rights reserved.</center></h2>
bcostm 3:c6b5944187d5 11 *
jeromecoutant 7:bfe8272ced90 12 * This software component is licensed by ST under BSD 3-Clause license,
jeromecoutant 7:bfe8272ced90 13 * the "License"; You may not use this file except in compliance with the
jeromecoutant 7:bfe8272ced90 14 * License. You may obtain a copy of the License at:
jeromecoutant 7:bfe8272ced90 15 * opensource.org/licenses/BSD-3-Clause
bcostm 3:c6b5944187d5 16 *
bcostm 3:c6b5944187d5 17 ******************************************************************************
bcostm 3:c6b5944187d5 18 */
bcostm 3:c6b5944187d5 19
bcostm 3:c6b5944187d5 20 /* Define to prevent recursive inclusion -------------------------------------*/
bcostm 3:c6b5944187d5 21 #ifndef __STM32L475E_IOT01_GYRO_H
bcostm 3:c6b5944187d5 22 #define __STM32L475E_IOT01_GYRO_H
bcostm 3:c6b5944187d5 23
bcostm 3:c6b5944187d5 24 #ifdef __cplusplus
bcostm 3:c6b5944187d5 25 extern "C" {
bcostm 3:c6b5944187d5 26 #endif
bcostm 3:c6b5944187d5 27
bcostm 3:c6b5944187d5 28 /* Includes ------------------------------------------------------------------*/
bcostm 3:c6b5944187d5 29 #include "stm32l475e_iot01.h"
bcostm 3:c6b5944187d5 30 /* Include Gyro component driver */
bcostm 3:c6b5944187d5 31 #include "../Components/lsm6dsl/lsm6dsl.h"
bcostm 3:c6b5944187d5 32
bcostm 3:c6b5944187d5 33 /** @addtogroup BSP
bcostm 3:c6b5944187d5 34 * @{
bcostm 3:c6b5944187d5 35 */
bcostm 3:c6b5944187d5 36
bcostm 3:c6b5944187d5 37 /** @addtogroup STM32L475E_IOT01
bcostm 3:c6b5944187d5 38 * @{
bcostm 3:c6b5944187d5 39 */
bcostm 3:c6b5944187d5 40
bcostm 3:c6b5944187d5 41 /** @addtogroup STM32L475E_IOT01_GYROSCOPE
bcostm 3:c6b5944187d5 42 * @{
bcostm 3:c6b5944187d5 43 */
bcostm 3:c6b5944187d5 44
bcostm 3:c6b5944187d5 45 /** @defgroup STM32L475_IOT01_GYROSCOPE_Exported_Constants GYROSCOPE Exported Constants
bcostm 3:c6b5944187d5 46 * @{
bcostm 3:c6b5944187d5 47 */
bcostm 3:c6b5944187d5 48 typedef enum
bcostm 3:c6b5944187d5 49 {
bcostm 3:c6b5944187d5 50 GYRO_OK = 0,
bcostm 3:c6b5944187d5 51 GYRO_ERROR = 1,
bcostm 3:c6b5944187d5 52 GYRO_TIMEOUT = 2
bcostm 3:c6b5944187d5 53 }
bcostm 3:c6b5944187d5 54 GYRO_StatusTypeDef;
bcostm 3:c6b5944187d5 55
bcostm 3:c6b5944187d5 56 /**
bcostm 3:c6b5944187d5 57 * @}
bcostm 3:c6b5944187d5 58 */
bcostm 3:c6b5944187d5 59
bcostm 3:c6b5944187d5 60 /** @defgroup STM32L475E_IOT01_GYROSCOPE_Exported_Functions GYROSCOPE Exported Functions
bcostm 3:c6b5944187d5 61 * @{
bcostm 3:c6b5944187d5 62 */
bcostm 3:c6b5944187d5 63 uint8_t BSP_GYRO_Init(void);
bcostm 3:c6b5944187d5 64 void BSP_GYRO_DeInit(void);
bcostm 3:c6b5944187d5 65 void BSP_GYRO_LowPower(uint16_t status); /* 0 Means Disable Low Power Mode, otherwise Low Power Mode is enabled */
bcostm 3:c6b5944187d5 66 void BSP_GYRO_GetXYZ(float* pfData);
bcostm 3:c6b5944187d5 67 /**
bcostm 3:c6b5944187d5 68 * @}
bcostm 3:c6b5944187d5 69 */
bcostm 3:c6b5944187d5 70
bcostm 3:c6b5944187d5 71 /**
bcostm 3:c6b5944187d5 72 * @}
bcostm 3:c6b5944187d5 73 */
bcostm 3:c6b5944187d5 74
bcostm 3:c6b5944187d5 75 /**
bcostm 3:c6b5944187d5 76 * @}
bcostm 3:c6b5944187d5 77 */
bcostm 3:c6b5944187d5 78
bcostm 3:c6b5944187d5 79 /**
bcostm 3:c6b5944187d5 80 * @}
bcostm 3:c6b5944187d5 81 */
bcostm 3:c6b5944187d5 82 #ifdef __cplusplus
bcostm 3:c6b5944187d5 83 }
bcostm 3:c6b5944187d5 84 #endif
bcostm 3:c6b5944187d5 85
bcostm 3:c6b5944187d5 86 #endif /* __STM32L475E_IOT01_GYRO_H */
bcostm 3:c6b5944187d5 87
bcostm 3:c6b5944187d5 88 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/