Contains Ayoub's Ranging and Custom interfaces for the VL53L3CX
53l3a2_conf_template.h@1:dae4cb24beec, 2021-07-21 (annotated)
- Committer:
- charlesmn
- Date:
- Wed Jul 21 14:47:53 2021 +0000
- Revision:
- 1:dae4cb24beec
- Parent:
- 0:c1910e04fc6c
strip out commented out code
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
charlesmn | 0:c1910e04fc6c | 1 | /** |
charlesmn | 0:c1910e04fc6c | 2 | ****************************************************************************** |
charlesmn | 0:c1910e04fc6c | 3 | * @file 53l3a2_conf_template.h |
charlesmn | 0:c1910e04fc6c | 4 | * @author IMG SW Application Team |
charlesmn | 0:c1910e04fc6c | 5 | * @brief This file contains definitions for the ToF components bus interfaces |
charlesmn | 0:c1910e04fc6c | 6 | * when using the X-NUCLEO-53L3A2 expansion board |
charlesmn | 0:c1910e04fc6c | 7 | * This file should be copied to the application folder and renamed |
charlesmn | 0:c1910e04fc6c | 8 | * to 53l3a2_conf.h. |
charlesmn | 0:c1910e04fc6c | 9 | ****************************************************************************** |
charlesmn | 0:c1910e04fc6c | 10 | * @attention |
charlesmn | 0:c1910e04fc6c | 11 | * |
charlesmn | 0:c1910e04fc6c | 12 | * <h2><center>© Copyright (c) 2021 STMicroelectronics. |
charlesmn | 0:c1910e04fc6c | 13 | * All rights reserved.</center></h2> |
charlesmn | 0:c1910e04fc6c | 14 | * |
charlesmn | 0:c1910e04fc6c | 15 | * This software component is licensed by ST under BSD 3-Clause license, |
charlesmn | 0:c1910e04fc6c | 16 | * the "License"; You may not use this file except in compliance with the |
charlesmn | 0:c1910e04fc6c | 17 | * License. You may obtain a copy of the License at: |
charlesmn | 0:c1910e04fc6c | 18 | * opensource.org/licenses/BSD-3-Clause |
charlesmn | 0:c1910e04fc6c | 19 | * |
charlesmn | 0:c1910e04fc6c | 20 | ****************************************************************************** |
charlesmn | 0:c1910e04fc6c | 21 | */ |
charlesmn | 0:c1910e04fc6c | 22 | |
charlesmn | 0:c1910e04fc6c | 23 | /* Replace the header file names with the ones of the target platform */ |
charlesmn | 0:c1910e04fc6c | 24 | #include "stm32yyxx_hal.h" |
charlesmn | 0:c1910e04fc6c | 25 | #include "nucleo_xyyyzz_bus.h" |
charlesmn | 0:c1910e04fc6c | 26 | #include "nucleo_xyyyzz_errno.h" |
charlesmn | 0:c1910e04fc6c | 27 | |
charlesmn | 0:c1910e04fc6c | 28 | /* Define to prevent recursive inclusion -------------------------------------*/ |
charlesmn | 0:c1910e04fc6c | 29 | #ifndef __53L3A2_CONF_H__ |
charlesmn | 0:c1910e04fc6c | 30 | #define __53L3A2_CONF_H__ |
charlesmn | 0:c1910e04fc6c | 31 | |
charlesmn | 0:c1910e04fc6c | 32 | #ifdef __cplusplus |
charlesmn | 0:c1910e04fc6c | 33 | extern "C" { |
charlesmn | 0:c1910e04fc6c | 34 | #endif |
charlesmn | 0:c1910e04fc6c | 35 | |
charlesmn | 0:c1910e04fc6c | 36 | /* USER CODE BEGIN 1 */ |
charlesmn | 0:c1910e04fc6c | 37 | |
charlesmn | 0:c1910e04fc6c | 38 | /* USER CODE END 1 */ |
charlesmn | 0:c1910e04fc6c | 39 | #define RANGING_SENSOR_INSTANCES_NBR (3U) |
charlesmn | 0:c1910e04fc6c | 40 | |
charlesmn | 0:c1910e04fc6c | 41 | #define VL53L3A2_hi2c (hi2c1) |
charlesmn | 0:c1910e04fc6c | 42 | |
charlesmn | 0:c1910e04fc6c | 43 | #define VL53L3A2_I2C_SCL_GPIO_PORT BUS_I2C1_SCL_GPIO_PORT |
charlesmn | 0:c1910e04fc6c | 44 | #define VL53L3A2_I2C_SCL_GPIO_PIN BUS_I2C1_SCL_GPIO_PIN |
charlesmn | 0:c1910e04fc6c | 45 | #define VL53L3A2_I2C_SDA_GPIO_PORT BUS_I2C1_SDA_GPIO_PORT |
charlesmn | 0:c1910e04fc6c | 46 | #define VL53L3A2_I2C_SDA_GPIO_PIN BUS_I2C1_SDA_GPIO_PIN |
charlesmn | 0:c1910e04fc6c | 47 | |
charlesmn | 0:c1910e04fc6c | 48 | #define VL53L3A2_I2C_Init BSP_I2C1_Init |
charlesmn | 0:c1910e04fc6c | 49 | #define VL53L3A2_I2C_DeInit BSP_I2C1_DeInit |
charlesmn | 0:c1910e04fc6c | 50 | #define VL53L3A2_I2C_WriteReg BSP_I2C1_Send |
charlesmn | 0:c1910e04fc6c | 51 | #define VL53L3A2_I2C_ReadReg BSP_I2C1_Recv |
charlesmn | 0:c1910e04fc6c | 52 | #define VL53L3A2_GetTick BSP_GetTick |
charlesmn | 0:c1910e04fc6c | 53 | |
charlesmn | 0:c1910e04fc6c | 54 | |
charlesmn | 0:c1910e04fc6c | 55 | #ifdef __cplusplus |
charlesmn | 0:c1910e04fc6c | 56 | } |
charlesmn | 0:c1910e04fc6c | 57 | #endif |
charlesmn | 0:c1910e04fc6c | 58 | |
charlesmn | 0:c1910e04fc6c | 59 | #endif /* __53L3A2_CONF_H__*/ |
charlesmn | 0:c1910e04fc6c | 60 | |
charlesmn | 0:c1910e04fc6c | 61 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ |
charlesmn | 0:c1910e04fc6c | 62 | |
charlesmn | 0:c1910e04fc6c | 63 |