Compare commits

..

No commits in common. "863f977b07fb92aa462d25d6b7f3400f91492245" and "ad84e7189351d0c0beb9fd77ae651032522ea293" have entirely different histories.

6 changed files with 14 additions and 16 deletions

View File

@ -47,12 +47,12 @@ extern "C" {
/**
* @brief Verbose level for all trace logs
*/
#define VERBOSE_LEVEL VLEVEL_OFF
#define VERBOSE_LEVEL VLEVEL_M
/**
* @brief Enable trace logs
*/
#define APP_LOG_ENABLED 0
#define APP_LOG_ENABLED 1
/**
* @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)
* @note by HW serial wires are ON by default, need to put them OFF to save power
*/
#define DEBUGGER_ENABLED 0
#define DEBUGGER_ENABLED 1
/**
* @brief Disable Low Power mode

View File

@ -543,7 +543,7 @@ void STS_YunhornSTSEventP5_Process(void)
}
#elif defined(L8)
//STS_TOF_VL53L8X_Process();
//printf("\r\n P5 process \r\n");
printf("\r\n P5 process \r\n");
STSWakeupScanTimerStop();
STS_TOF_L8_Process();

View File

@ -220,7 +220,7 @@ void STS_LMZ_Ambient_Height_Scan_Process(void)
if (status != BSP_ERROR_NONE)
{
APP_LOG(TS_OFF, VLEVEL_M, "\r\nVL53L8A1_RANGING_SENSOR_Start failed\n");
printf("VL53L8A1_RANGING_SENSOR_Start failed\n");
while (1);
}
#endif
@ -241,15 +241,13 @@ void STS_LMZ_Ambient_Height_Scan_Process(void)
//} else {
for (i = 0; i < 64; i++)
{
if (i % 8 ==0) {
APP_LOG(TS_OFF, VLEVEL_H, "\r\n[cm] ");
}
if (i % 8 ==0) APP_LOG(TS_OFF, VLEVEL_H, "\r\n[cm] ");
//if ((Result.ZoneResult[i].NumberOfTargets > 0))
//{
{
bg_distance[i] += (uint16_t) Result.ZoneResult[i].Distance[0];
idx[i] ++;
APP_LOG(TS_OFF, VLEVEL_H, "|%3d ", Result.ZoneResult[i].Distance[0]/10);
//}
}
//else APP_LOG(TS_OFF, VLEVEL_H, "|%3d ", 0);
}
@ -426,11 +424,11 @@ void sts_generate_fall_gesture_map(void)
#if 0
for (i=0; i<64; i++)
{
if (i%8==0) APP_LOG(TS_OFF, VLEVEL_M, "\r\n");
APP_LOG(TS_OFF, VLEVEL_M, "\r\n|%d ", (uint8_t)fhmos_gesture.maskoff[i]);
if (i%8==0) printf("\r\n");
printf("|%d ", (uint8_t)fhmos_gesture.maskoff[i]);
}
for (i=0; i<8; i++)
APP_LOG(TS_OFF, VLEVEL_M, "\r\n%02X\r\n",fhmos_gesture_bitmap[i]);
printf("%02X\r\n",fhmos_gesture_bitmap[i]);
#endif
sts_fhmos_bitmap_pending = FHMOS_BITMAP_GENERATED;
@ -560,7 +558,7 @@ static void MX_53L8A1_ThresholdDetection_Init(void)
if (status != BSP_ERROR_NONE)
{
APP_LOG(TS_OFF, VLEVEL_L, "\r\nVL53L8A1_RANGING_SENSOR_Init failed\n");
printf("VL53L8A1_RANGING_SENSOR_Init failed\n");
//while (1);
}
APP_LOG(TS_OFF, VLEVEL_M, "\r\n ----------- SERNSOR ID =%4x \r\n", sensor_id);
@ -584,7 +582,7 @@ void MX_53L8A1_ThresholdDetection_ConfigIT(uint32_t low_threshold, uint32_t high
if (status != BSP_ERROR_NONE)
{
APP_LOG(TS_OFF, VLEVEL_M, "\r\nVL53L8A1_RANGING_SENSOR_Start failed\n");
printf("VL53L8A1_RANGING_SENSOR_Start failed\n");
while (1);
}
}
@ -627,7 +625,7 @@ static void MX_53L8A1_ThresholdDetection_Process(void)
if (status != BSP_ERROR_NONE)
{
APP_LOG(TS_OFF, VLEVEL_L, "\r\nVL53L8A1_RANGING_SENSOR_Start failed\n");
printf("VL53L8A1_RANGING_SENSOR_Start failed\n");
while (1);
}
#if 0