check CONFIG_SCHED_INSTRUMENTATION for print_load_nuttx

This commit is contained in:
Christian Rauch
2018-11-29 22:05:48 +00:00
committed by David Sidrane
parent fce35ba9d2
commit 8a2e3800d8
3 changed files with 12 additions and 0 deletions

View File

@@ -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