| | |
| | | #include "mk_common.h" |
| | | #include "uwb_radar_task.h" |
| | | |
| | | // The Complier have influence on radar data processing speed |
| | | #if defined(__ARMCC_VERSION) |
| | | |
| | | #if UWB_RADAR_DETECT_PROCESS_EN |
| | | // If it is a local calculation, it depends on the running time of the algorithm |
| | | #define UWB_RADAR_SLOT_DURATION (MS_TO_PHY_TIMER_COUNT(40)) |
| | |
| | | #define UWB_RADAR_SLOT_DURATION (MS_TO_PHY_TIMER_COUNT(20)) |
| | | #endif |
| | | |
| | | #elif defined(__GNUC__) || defined(__ICCARM__) |
| | | |
| | | #if UWB_RADAR_DETECT_PROCESS_EN |
| | | // If it is a local calculation, it depends on the running time of the algorithm |
| | | #define UWB_RADAR_SLOT_DURATION (MS_TO_PHY_TIMER_COUNT(50)) |
| | | #else |
| | | #define UWB_RADAR_SLOT_DURATION (MS_TO_PHY_TIMER_COUNT(30)) |
| | | #endif |
| | | |
| | | #endif |
| | | |
| | | // Ranging IDLE duration needs to substract post-processing time (includes result reporting and printing) for radar frame num calculation |
| | | #define RANGING_POST_PROCESSING_TIME (MS_TO_PHY_TIMER_COUNT(15)) |
| | | |
| | | /* Main control block of the uwb radar task */ |
| | | struct UWB_RADAR_CB_T |
| | | { |