debug enabled
This commit is contained in:
parent
e4c5cca11c
commit
2721055514
|
@ -47,12 +47,12 @@ extern "C" {
|
||||||
/**
|
/**
|
||||||
* @brief Verbose level for all trace logs
|
* @brief Verbose level for all trace logs
|
||||||
*/
|
*/
|
||||||
#define VERBOSE_LEVEL VLEVEL_OFF
|
#define VERBOSE_LEVEL VLEVEL_M
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Enable trace logs
|
* @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
|
* @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 0
|
#define DEBUGGER_ENABLED 1
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Disable Low Power mode
|
* @brief Disable Low Power mode
|
||||||
|
|
|
@ -1192,7 +1192,7 @@ static void SendTxData(void)
|
||||||
|
|
||||||
#if defined(L8)
|
#if defined(L8)
|
||||||
//AppData.Buffer[i++] = 4;
|
//AppData.Buffer[i++] = 4;
|
||||||
|
#if 0
|
||||||
if ((fhmos_data.state_fall ==3)||(fhmos_data.state_occupancy ==3)||(fhmos_data.state_human_movement ==3))
|
if ((fhmos_data.state_fall ==3)||(fhmos_data.state_occupancy ==3)||(fhmos_data.state_human_movement ==3))
|
||||||
{
|
{
|
||||||
AppData.Buffer[i++] = 10;
|
AppData.Buffer[i++] = 10;
|
||||||
|
@ -1222,7 +1222,10 @@ static void SendTxData(void)
|
||||||
AppData.Buffer[i++] = 0xff&(fhmos_data.time_stamp_motionless_confirmed);
|
AppData.Buffer[i++] = 0xff&(fhmos_data.time_stamp_motionless_confirmed);
|
||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else
|
||||||
|
#endif
|
||||||
|
{
|
||||||
|
|
||||||
AppData.Buffer[i++] = 9;
|
AppData.Buffer[i++] = 9;
|
||||||
AppData.Buffer[i++] = 0x01;
|
AppData.Buffer[i++] = 0x01;
|
||||||
AppData.Buffer[i++] = fhmos_data.state_fall;
|
AppData.Buffer[i++] = fhmos_data.state_fall;
|
||||||
|
|
Binary file not shown.
Binary file not shown.
|
@ -1991,6 +1991,12 @@ void STS_FHMOS_sensor_upload_map(uint8_t map_index)
|
||||||
tstbuf[i++] = (uint8_t) (fhmos_gesture_bitmap[5]);
|
tstbuf[i++] = (uint8_t) (fhmos_gesture_bitmap[5]);
|
||||||
tstbuf[i++] = (uint8_t) (fhmos_gesture_bitmap[6]);
|
tstbuf[i++] = (uint8_t) (fhmos_gesture_bitmap[6]);
|
||||||
tstbuf[i++] = (uint8_t) (fhmos_gesture_bitmap[7]);
|
tstbuf[i++] = (uint8_t) (fhmos_gesture_bitmap[7]);
|
||||||
|
// date and time stamp of event
|
||||||
|
// fhmos_data.time_stamp_fall_confirmed
|
||||||
|
tstbuf[i++] = (uint8_t) 0xff&(fhmos_data.time_stamp_fall_confirmed>>24);
|
||||||
|
tstbuf[i++] = (uint8_t) 0xff&(fhmos_data.time_stamp_fall_confirmed>>16);
|
||||||
|
tstbuf[i++] = (uint8_t) 0xff&(fhmos_data.time_stamp_fall_confirmed>>8);
|
||||||
|
tstbuf[i++] = (uint8_t) 0xff&(fhmos_data.time_stamp_fall_confirmed);
|
||||||
|
|
||||||
sts_fhmos_bitmap_pending = 2;
|
sts_fhmos_bitmap_pending = 2;
|
||||||
|
|
||||||
|
|
|
@ -330,7 +330,7 @@ uint16_t MX_TOF_Ranging_Process(void)
|
||||||
// int status = VL53L8A1_RANGING_SENSOR_GetDistance(VL53L8A1_DEV_CENTER, &Result);
|
// int status = VL53L8A1_RANGING_SENSOR_GetDistance(VL53L8A1_DEV_CENTER, &Result);
|
||||||
|
|
||||||
// printf("\r| 27 | 28 | 35 | 36 |\r\n");
|
// printf("\r| 27 | 28 | 35 | 36 |\r\n");
|
||||||
for (uint8_t k=0; k<10; k++)
|
for (uint8_t k=0; k<1; k++)
|
||||||
{
|
{
|
||||||
STS_TOF_L8_Process();
|
STS_TOF_L8_Process();
|
||||||
|
|
||||||
|
@ -358,7 +358,7 @@ uint16_t MX_TOF_Ranging_Process(void)
|
||||||
|
|
||||||
APP_LOG(TS_OFF, VLEVEL_M, "\n\r");
|
APP_LOG(TS_OFF, VLEVEL_M, "\n\r");
|
||||||
|
|
||||||
range_distance /=40;
|
range_distance /=4;
|
||||||
APP_LOG(TS_OFF, VLEVEL_M, "| %u mm\r\n", (uint16_t)range_distance);
|
APP_LOG(TS_OFF, VLEVEL_M, "| %u mm\r\n", (uint16_t)range_distance);
|
||||||
|
|
||||||
return (uint16_t) range_distance;
|
return (uint16_t) range_distance;
|
||||||
|
|
Loading…
Reference in New Issue