POSIX: Fixes for HRT implementation of simulated HW clock polling

There is a race condition for the accel and mag polling rates.
Whichever one gets set first, the other will be uninitialized.

Set the mag polling rate to 1ms if uninitilized.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
Mark Charlebois
2015-06-02 16:55:34 +00:00
parent cced8ed69e
commit 5e95b83eff
11 changed files with 213 additions and 63 deletions
+1 -1
View File
@@ -69,7 +69,7 @@ struct work_s
struct dq_entry_s dq; /* Implements a doubly linked list */
worker_t worker; /* Work callback */
void *arg; /* Callback argument */
uint32_t qtime; /* Time work queued */
uint64_t qtime; /* Time work queued */
uint32_t delay; /* Delay until work performed */
};