Platforms: Fix platform headers

This commit is contained in:
Lorenz Meier
2015-10-19 13:25:39 +02:00
parent 2c8e853294
commit 73545a4311
13 changed files with 168 additions and 172 deletions
+11 -13
View File
@@ -48,7 +48,7 @@
#include <px4_platform_types.h>
#ifdef __PX4_QURT
#include <dspal_types.h>
#include <dspal_types.h>
#endif
__BEGIN_DECLS
@@ -57,10 +57,9 @@ __BEGIN_DECLS
#define LPWORK 1
#define NWORKERS 2
struct wqueue_s
{
pid_t pid; /* The task ID of the worker thread */
struct dq_queue_s q; /* The queue of pending work */
struct wqueue_s {
pid_t pid; /* The task ID of the worker thread */
struct dq_queue_s q; /* The queue of pending work */
};
extern struct wqueue_s g_work[NWORKERS];
@@ -69,13 +68,12 @@ extern struct wqueue_s g_work[NWORKERS];
typedef void (*worker_t)(void *arg);
struct work_s
{
struct dq_entry_s dq; /* Implements a doubly linked list */
worker_t worker; /* Work callback */
void *arg; /* Callback argument */
uint64_t qtime; /* Time work queued */
uint32_t delay; /* Delay until work performed */
struct work_s {
struct dq_entry_s dq; /* Implements a doubly linked list */
worker_t worker; /* Work callback */
void *arg; /* Callback argument */
uint64_t qtime; /* Time work queued */
uint32_t delay; /* Delay until work performed */
};
/****************************************************************************
@@ -144,6 +142,6 @@ int work_lpthread(int argc, char *argv[]);
__END_DECLS
#else
#else
#error "Unknown target OS"
#endif