mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-22 09:28:58 +00:00
check CONFIG_SCHED_INSTRUMENTATION for print_load_nuttx
This commit is contained in:
committed by
David Sidrane
parent
fce35ba9d2
commit
8a2e3800d8
@@ -58,6 +58,10 @@
|
||||
#include <uORB/topics/cpuload.h>
|
||||
#include <uORB/topics/task_stack_info.h>
|
||||
|
||||
#if defined(__PX4_NUTTX) && !defined(CONFIG_SCHED_INSTRUMENTATION)
|
||||
# error load_mon support requires CONFIG_SCHED_INSTRUMENTATION
|
||||
#endif
|
||||
|
||||
extern struct system_load_s system_load;
|
||||
|
||||
#define STACK_LOW_WARNING_THRESHOLD 300 ///< if free stack space falls below this, print a warning
|
||||
|
||||
Reference in New Issue
Block a user