Contains Ayoub's Ranging and Custom interfaces for the VL53L3CX

Committer:
charlesmn
Date:
Wed Jul 21 14:19:31 2021 +0000
Revision:
0:c1910e04fc6c
Child:
1:dae4cb24beec
Change from directory to lib

Who changed what in which revision?

UserRevisionLine numberNew contents of line
charlesmn 0:c1910e04fc6c 1
charlesmn 0:c1910e04fc6c 2 /**
charlesmn 0:c1910e04fc6c 3 ******************************************************************************
charlesmn 0:c1910e04fc6c 4 * @file 53l3a2_conf.h
charlesmn 0:c1910e04fc6c 5 * @author IMG SW Application Team
charlesmn 0:c1910e04fc6c 6 * @brief This file contains definitions for the ToF components bus interfaces
charlesmn 0:c1910e04fc6c 7 * when using the X-NUCLEO-53L3A2 expansion board
charlesmn 0:c1910e04fc6c 8 ******************************************************************************
charlesmn 0:c1910e04fc6c 9 * @attention
charlesmn 0:c1910e04fc6c 10 *
charlesmn 0:c1910e04fc6c 11 * <h2><center>&copy; Copyright (c) 2021 STMicroelectronics.
charlesmn 0:c1910e04fc6c 12 * All rights reserved.</center></h2>
charlesmn 0:c1910e04fc6c 13 *
charlesmn 0:c1910e04fc6c 14 * This software component is licensed by ST under BSD 3-Clause license,
charlesmn 0:c1910e04fc6c 15 * the "License"; You may not use this file except in compliance with the
charlesmn 0:c1910e04fc6c 16 * License. You may obtain a copy of the License at:
charlesmn 0:c1910e04fc6c 17 * opensource.org/licenses/BSD-3-Clause
charlesmn 0:c1910e04fc6c 18 *
charlesmn 0:c1910e04fc6c 19 ******************************************************************************
charlesmn 0:c1910e04fc6c 20 */
charlesmn 0:c1910e04fc6c 21
charlesmn 0:c1910e04fc6c 22 /* Define to prevent recursive inclusion -------------------------------------*/
charlesmn 0:c1910e04fc6c 23 #ifndef VL53L3A2_CONF_H
charlesmn 0:c1910e04fc6c 24 #define VL53L3A2_CONF_H
charlesmn 0:c1910e04fc6c 25
charlesmn 0:c1910e04fc6c 26 //#include "stm32l4xx_hal.h"
charlesmn 0:c1910e04fc6c 27 //#include "stm32l4xx_nucleo_bus.h"
charlesmn 0:c1910e04fc6c 28 //#include "stm32l4xx_nucleo_errno.h"
charlesmn 0:c1910e04fc6c 29
charlesmn 0:c1910e04fc6c 30 #ifdef __cplusplus
charlesmn 0:c1910e04fc6c 31 extern "C" {
charlesmn 0:c1910e04fc6c 32 #endif
charlesmn 0:c1910e04fc6c 33
charlesmn 0:c1910e04fc6c 34 /* USER CODE BEGIN 1 */
charlesmn 0:c1910e04fc6c 35
charlesmn 0:c1910e04fc6c 36 /* USER CODE END 1 */
charlesmn 0:c1910e04fc6c 37
charlesmn 0:c1910e04fc6c 38 /*
charlesmn 0:c1910e04fc6c 39 * the 53L3A2 BSP driver uses this symbol to allocate a structure for each device
charlesmn 0:c1910e04fc6c 40 * if you are only using the on-board sensor without break-out boards
charlesmn 0:c1910e04fc6c 41 * change its to (1U) in order to save space in RAM memory
charlesmn 0:c1910e04fc6c 42 */
charlesmn 0:c1910e04fc6c 43 #define RANGING_SENSOR_INSTANCES_NBR (3U)
charlesmn 0:c1910e04fc6c 44
charlesmn 0:c1910e04fc6c 45 ////#define VL53L3A2_hi2c (hi2c1)
charlesmn 0:c1910e04fc6c 46
charlesmn 0:c1910e04fc6c 47 ////#define VL53L3A2_I2C_SCL_GPIO_PORT BUS_I2C1_SCL_GPIO_PORT
charlesmn 0:c1910e04fc6c 48 ////#define VL53L3A2_I2C_SCL_GPIO_PIN BUS_I2C1_SCL_GPIO_PIN
charlesmn 0:c1910e04fc6c 49 ////#define VL53L3A2_I2C_SDA_GPIO_PORT BUS_I2C1_SDA_GPIO_PORT
charlesmn 0:c1910e04fc6c 50 ////#define VL53L3A2_I2C_SDA_GPIO_PIN BUS_I2C1_SDA_GPIO_PIN
charlesmn 0:c1910e04fc6c 51
charlesmn 0:c1910e04fc6c 52 ////#define VL53L3A2_I2C_Init BSP_I2C1_Init
charlesmn 0:c1910e04fc6c 53 ////#define VL53L3A2_I2C_DeInit BSP_I2C1_DeInit
charlesmn 0:c1910e04fc6c 54 ////#define VL53L3A2_I2C_WriteReg BSP_I2C1_Send
charlesmn 0:c1910e04fc6c 55 ////#define VL53L3A2_I2C_ReadReg BSP_I2C1_Recv
charlesmn 0:c1910e04fc6c 56 // #define VL53L3A2_GetTick BSP_GetTick
charlesmn 0:c1910e04fc6c 57
charlesmn 0:c1910e04fc6c 58 #ifdef __cplusplus
charlesmn 0:c1910e04fc6c 59 }
charlesmn 0:c1910e04fc6c 60 #endif
charlesmn 0:c1910e04fc6c 61
charlesmn 0:c1910e04fc6c 62 #endif /* VL53L3A2_CONF_H */
charlesmn 0:c1910e04fc6c 63
charlesmn 0:c1910e04fc6c 64 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
charlesmn 0:c1910e04fc6c 65