mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-24 04:23:33 +08:00
NuttX sched notes add C linkage
This commit is contained in:
committed by
Lorenz Meier
parent
af84f449c7
commit
cea1a19fe6
@@ -45,21 +45,12 @@
|
|||||||
|
|
||||||
#include <drivers/drv_hrt.h>
|
#include <drivers/drv_hrt.h>
|
||||||
|
|
||||||
#include <sys/time.h>
|
|
||||||
|
|
||||||
#if defined(__PX4_NUTTX) && defined(CONFIG_SCHED_INSTRUMENTATION)
|
#if defined(__PX4_NUTTX) && defined(CONFIG_SCHED_INSTRUMENTATION)
|
||||||
|
__BEGIN_DECLS
|
||||||
# include <nuttx/sched_note.h>
|
# include <nuttx/sched_note.h>
|
||||||
|
|
||||||
void sched_note_suspend(FAR struct tcb_s *tcb);
|
|
||||||
void sched_note_resume(FAR struct tcb_s *tcb);
|
|
||||||
|
|
||||||
__EXPORT void sched_note_switch(FAR struct tcb_s *pFromTcb, FAR struct tcb_s *pToTcb);
|
|
||||||
|
|
||||||
__EXPORT struct system_load_s system_load;
|
__EXPORT struct system_load_s system_load;
|
||||||
|
|
||||||
extern FAR struct tcb_s *sched_gettcb(pid_t pid);
|
|
||||||
|
|
||||||
static px4::atomic_int cpuload_monitor_all_count{0};
|
static px4::atomic_int cpuload_monitor_all_count{0};
|
||||||
|
|
||||||
void cpuload_monitor_start()
|
void cpuload_monitor_start()
|
||||||
@@ -200,5 +191,5 @@ void sched_note_resume(FAR struct tcb_s *tcb)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
__END_DECLS
|
||||||
#endif // PX4_NUTTX && CONFIG_SCHED_INSTRUMENTATION
|
#endif // PX4_NUTTX && CONFIG_SCHED_INSTRUMENTATION
|
||||||
|
|||||||
Reference in New Issue
Block a user