31 lines
939 B
C
31 lines
939 B
C
/**
|
|
******************************************************************************
|
|
* @file app_tof_pin_conf.c
|
|
* @author IMG SW Application Team
|
|
* @brief This file contains functions for TOF pins
|
|
******************************************************************************
|
|
* @attention
|
|
*
|
|
* Copyright (c) 2022 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.
|
|
*
|
|
******************************************************************************
|
|
*/
|
|
|
|
/* Includes ------------------------------------------------------------------*/
|
|
#include "app_tof_pin_conf.h"
|
|
|
|
extern volatile uint8_t ToF_EventDetected;
|
|
|
|
void HAL_GPIO_EXTI_Callback(uint16_t GPIO_Pin)
|
|
{
|
|
if (GPIO_Pin == TOF_INT_EXTI_PIN)
|
|
{
|
|
ToF_EventDetected = 1;
|
|
}
|
|
}
|