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:
Mark Charlebois
2015-05-07 22:58:51 -07:00
parent 3225edfabb
commit 84ca66dcf7
9 changed files with 261 additions and 42 deletions
@@ -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);