disable debug

This commit is contained in:
Yunhorn 2025-05-14 14:58:16 +08:00
parent 489cf7917a
commit 3c822eda50
8 changed files with 16 additions and 12 deletions

View File

@ -47,12 +47,12 @@ extern "C" {
/** /**
* @brief Verbose level for all trace logs * @brief Verbose level for all trace logs
*/ */
#define VERBOSE_LEVEL VLEVEL_M #define VERBOSE_LEVEL VLEVEL_OFF
/** /**
* @brief Enable trace logs * @brief Enable trace logs
*/ */
#define APP_LOG_ENABLED 1 #define APP_LOG_ENABLED 0
/** /**
* @brief Activate monitoring (probes) of some internal RF signals for debug purpose * @brief Activate monitoring (probes) of some internal RF signals for debug purpose
@ -75,7 +75,7 @@ extern "C" {
* @brief Enable/Disable MCU Debugger pins (dbg serial wires) * @brief Enable/Disable MCU Debugger pins (dbg serial wires)
* @note by HW serial wires are ON by default, need to put them OFF to save power * @note by HW serial wires are ON by default, need to put them OFF to save power
*/ */
#define DEBUGGER_ENABLED 1 #define DEBUGGER_ENABLED 0
/** /**
* @brief Disable Low Power mode * @brief Disable Low Power mode

View File

@ -364,7 +364,7 @@ static void OnYunhornSTSDurationCheckTimerEvent(void *context);
* @param context ptr of STS RSS WakeUp context * @param context ptr of STS RSS WakeUp context
*/ */
static void OnYunhornSTSOORSSWakeUpTimerEvent(void *context); //static void OnYunhornSTSOORSSWakeUpTimerEvent(void *context);
/** /**
* @brief Yunhorn STS Heart beat timer callback function * @brief Yunhorn STS Heart beat timer callback function
@ -1751,13 +1751,14 @@ static void OnYunhornSTSLampBarColorTimerEvent(void *context)
* @brief SYS occupancy, door lock, motion duration check timer callback function * @brief SYS occupancy, door lock, motion duration check timer callback function
* @param context ptr of duration check context * @param context ptr of duration check context
*/ */
#if 0
static void OnYunhornSTSDurationCheckTimerEvent(void *context) static void OnYunhornSTSDurationCheckTimerEvent(void *context)
{ {
#ifdef STS_O6 #ifdef STS_O6
#endif #endif
} }
#endif
/** /**
* @brief Yunhorn STS Occupancy RSS WakeUP timer callback function * @brief Yunhorn STS Occupancy RSS WakeUP timer callback function
* @param context ptr of STS RSS WakeUp context * @param context ptr of STS RSS WakeUp context

Binary file not shown.

View File

@ -257,6 +257,8 @@ void OnRestoreSTSCFGContextProcess(void);
void STS_SENSOR_Power_ON(uint8_t cnt); void STS_SENSOR_Power_ON(uint8_t cnt);
void STS_SENSOR_Power_OFF(uint8_t cnt); void STS_SENSOR_Power_OFF(uint8_t cnt);
void STS_SENSOR_MEMS_Reset(uint8_t cnt); void STS_SENSOR_MEMS_Reset(uint8_t cnt);
void STS_Sensor_Init(void);
void STS_Sensor_Prepare(void);
void STS_PRESENCE_SENSOR_NVM_CFG(void); void STS_PRESENCE_SENSOR_NVM_CFG(void);
void STS_PRESENCE_SENSOR_NVM_CFG_SIMPLE(void); void STS_PRESENCE_SENSOR_NVM_CFG_SIMPLE(void);

View File

@ -84,7 +84,7 @@ static void MX_53L8A1_ThresholdDetection_Process(void);
static void print_result(RANGING_SENSOR_Result_t *Result); static void print_result(RANGING_SENSOR_Result_t *Result);
#endif #endif
static int32_t status = 0; //static int32_t status = 0;
volatile uint8_t ToF_EventDetected = 0; volatile uint8_t ToF_EventDetected = 0;
uint16_t sensor_id=0; uint16_t sensor_id=0;

View File

@ -67,7 +67,7 @@ int status = 0;
volatile int IntCount; volatile int IntCount;
#define isInterrupt 1 /* If isInterrupt = 1 then device working in interrupt mode, else device working in polling mode */ #define isInterrupt 1 /* If isInterrupt = 1 then device working in interrupt mode, else device working in polling mode */
/* USER CODE END PV */ /* USER CODE END PV */
static int PplCounter; //static int PplCounter;
static int center[2] = {FRONT_ZONE_CENTER,BACK_ZONE_CENTER}; static int center[2] = {FRONT_ZONE_CENTER,BACK_ZONE_CENTER};
static int Zone = 0; static int Zone = 0;
@ -661,16 +661,17 @@ void STS_TOF_VL53LX_PeopleCounting_Process_Start(void)
#if (defined(STS_T6)) #if (defined(STS_T6))
void STS_TOF_VL53LX_PresenceDetection_Process_Start(void) void STS_TOF_VL53LX_PresenceDetection_Process_Start(void)
{ {
int status=0;
//APP_LOG(TS_OFF, VLEVEL_M,"############### TOF VL53LX_ PRESENCE DETECTION SUB-PROCESS \r\n"); //APP_LOG(TS_OFF, VLEVEL_M,"############### TOF VL53LX_ PRESENCE DETECTION SUB-PROCESS \r\n");
{ {
//volatile int sts_tof_init_status=0; //volatile int sts_tof_init_status=0;
if (sts_tof_init_status !=0) if (sts_tof_init_status !=0)
{ {
int ret=sts_tof_vl53lx_presence_detection_init(); status=sts_tof_vl53lx_presence_detection_init();
} else } else
{ {
int status = sts_tof_vl53lx_presence_detection_start(); status = sts_tof_vl53lx_presence_detection_start();
if (status == -1) if (status == -1)
{ {
sts_tof_vl53lx_presence_detection_init(); sts_tof_vl53lx_presence_detection_init();

View File

@ -96,7 +96,7 @@ CurIOVal;
/* Forward definition of private function */ /* Forward definition of private function */
static int _ExpanderRd(int I2cExpAddr, int index, uint8_t *data, int n_data); //static int _ExpanderRd(int I2cExpAddr, int index, uint8_t *data, int n_data);
static int _ExpanderWR(int I2cExpAddr, int index, uint8_t *data, int n_data); static int _ExpanderWR(int I2cExpAddr, int index, uint8_t *data, int n_data);
//static int _ExpandersSetAllIO(void); //static int _ExpandersSetAllIO(void);
@ -342,7 +342,7 @@ done_err:
* @param n_data number of byte to read * @param n_data number of byte to read
* @return of if ok else i2c I/O operation status * @return of if ok else i2c I/O operation status
*/ */
#if 0
static int _ExpanderRd(int I2cExpAddr, int index, uint8_t *data, int n_data) { static int _ExpanderRd(int I2cExpAddr, int index, uint8_t *data, int n_data) {
int status; int status;
@ -358,7 +358,7 @@ static int _ExpanderRd(int I2cExpAddr, int index, uint8_t *data, int n_data) {
XNUCLEO53L1A1_PutI2cBus(); XNUCLEO53L1A1_PutI2cBus();
return status; return status;
} }
#endif
/** /**
* STMPE1600 i2c Expender register write * STMPE1600 i2c Expender register write
* @param I2cExpAddr Expender address * @param I2cExpAddr Expender address