mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-25 06:33:33 +08:00
QuRT: updated task support based on posix fixes
The posix layer implementations should work on QuRT. QuRT needs to provide a way for getting the current time. Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
@@ -56,6 +56,8 @@ long PX4_TICKS_PER_SEC = 1000;
|
||||
void usleep(useconds_t usec) {}
|
||||
unsigned int sleep(unsigned int sec) { return 0; }
|
||||
|
||||
extern void hrt_init(void);
|
||||
|
||||
__END_DECLS
|
||||
|
||||
extern struct wqueue_s gwork[NWORKERS];
|
||||
@@ -63,6 +65,14 @@ extern struct wqueue_s gwork[NWORKERS];
|
||||
namespace px4
|
||||
{
|
||||
|
||||
void init_once(void);
|
||||
|
||||
void init_once(void)
|
||||
{
|
||||
work_queues_init();
|
||||
hrt_init();
|
||||
}
|
||||
|
||||
void init(int argc, char *argv[], const char *app_name)
|
||||
{
|
||||
printf("App name: %s\n", app_name);
|
||||
|
||||
Reference in New Issue
Block a user