mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-23 21:53:34 +08:00
QuRT: Added HRT workqueues as per POSIX
A high rate workqueue is required that acts like an interrupt handler for a HW timer. Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
@@ -49,8 +49,11 @@
|
||||
#include <unistd.h>
|
||||
#include <semaphore.h>
|
||||
#include "systemlib/param/param.h"
|
||||
#include "hrt_work.h"
|
||||
|
||||
|
||||
extern pthread_t _shell_task_id;
|
||||
|
||||
__BEGIN_DECLS
|
||||
|
||||
// FIXME - sysconf(_SC_CLK_TCK) not supported
|
||||
@@ -92,7 +95,10 @@ void init_once(void)
|
||||
// Required for QuRT
|
||||
//_posix_init();
|
||||
|
||||
_shell_task_id = pthread_self();
|
||||
PX4_INFO("Shell id is %lu", _shell_task_id);
|
||||
work_queues_init();
|
||||
hrt_work_queue_init();
|
||||
hrt_init();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user