/**
  ******************************************************************************
  * @file    app_tof_pin_conf.h
  * @author  IMG SW Application Team
  * @brief   This file contains definitions for TOF pins
  ******************************************************************************
  * @attention
  *
  * Copyright (c) 2023 STMicroelectronics.
  * All rights reserved.
  *
  * This software is licensed under terms that can be found in the LICENSE file
  * in the root directory of this software component.
  * If no LICENSE file comes with this software, it is provided AS-IS.
  *
  ******************************************************************************
  */

/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __APP_TOF_PIN_CONF_H__
#define __APP_TOF_PIN_CONF_H__

#ifdef __cplusplus
extern "C" {
#endif

/* Includes ------------------------------------------------------------------*/
#include "stm32wlxx_hal.h"

/* Exported symbols ----------------------------------------------------------*/
// for NUCLEO DEV 55JCIX
#if 0
#define TOF_INT_EXTI_PIN    	(GPIO_PIN_10)		//(GPIO_PIN_4)
#define TOF_INT_EXTI_PORT   	(GPIOA)				//(GPIOA)
#define TOF_INT_EXTI_IRQn		EXTI15_10_IRQn

#define VL53L8A1_PWR_EN_C_PIN   (GPIO_PIN_7)		//(GPIO_PIN_7)
#define VL53L8A1_PWR_EN_C_PORT  (GPIOA)				//(GPIOA)

#define VL53L8A1_LPn_C_PIN   	(GPIO_PIN_4)		//(GPIO_PIN_0)
#define VL53L8A1_LPn_C_PORT  	(GPIOB)				//(GPIOB)
#endif

// for Yunhorn STS RM1.3
#if 1
#define TOF_INT_EXTI_PIN    	(GPIO_PIN_15)		//(GPIO_PIN_4)
#define TOF_INT_EXTI_PORT   	(GPIOA)				//(GPIOA)
#define TOF_INT_EXTI_IRQn		EXTI15_10_IRQn

#define VL53L8A1_PWR_EN_C_PIN   (GPIO_PIN_4)		//(GPIO_PIN_7)
#define VL53L8A1_PWR_EN_C_PORT  (GPIOB)				//(GPIOA)

#define VL53L8A1_LPn_C_PIN   	(GPIO_PIN_10)		//(GPIO_PIN_0)
#define VL53L8A1_LPn_C_PORT  	(GPIOA)				//(GPIOB)

#endif

#ifdef __cplusplus
}
#endif

#endif /* __APP_TOF_PIN_CONF_H__ */