mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-23 07:46:37 +08:00
Platforms: Fix platform headers
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user