refine defines of VL53L0

This commit is contained in:
Yunhorn 2025-07-23 11:03:04 +08:00
parent 08e11d57c8
commit 4addfae3f8
2 changed files with 4 additions and 4 deletions

View File

@ -117,7 +117,7 @@ void Error_Handler(void);
#define PME_OFF HAL_GPIO_WritePin(MEMS_POWER_GPIO_Port, MEMS_POWER_Pin, GPIO_PIN_RESET ) #define PME_OFF HAL_GPIO_WritePin(MEMS_POWER_GPIO_Port, MEMS_POWER_Pin, GPIO_PIN_RESET )
#define PME_TOGGLE HAL_GPIO_TogglePin(MEMS_POWER_GPIO_Port, MEMS_POWER_Pin) #define PME_TOGGLE HAL_GPIO_TogglePin(MEMS_POWER_GPIO_Port, MEMS_POWER_Pin)
#if (defined(TOF_1)||defined(TOF_2)||defined(STS_R1)||defined(STS_R5)||defined(STS_R1D)) #if (defined(TOF_1)||defined(TOF_2)||defined(STS_R1)||defined(STS_R2)||defined(STS_R5)||defined(STS_R1D)||defined(STS_R1x)||defined(STS_R2x)||defined(STS_R5x))
#define VL53L0 1U #define VL53L0 1U
#elif (defined(STS_P2)||defined(STS_T6)) #elif (defined(STS_P2)||defined(STS_T6))
#define VL53LX 1U #define VL53LX 1U

View File

@ -29,7 +29,7 @@
#include "sys_app.h" #include "sys_app.h"
#include "yunhorn_sts_sensors.h" #include "yunhorn_sts_sensors.h"
#if defined(VL53L0)||(VL53L0 == 1) #if defined(VL53L0)
/** /**
* @defgroup Configuration Static configuration * @defgroup Configuration Static configuration
* @{ * @{