mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-01 04:31:38 +08:00
POSIX: PX4 posix header fixes
This commit is contained in:
@@ -64,7 +64,7 @@ typedef struct
|
|||||||
__EXPORT int px4_sem_init(px4_sem_t *s, int pshared, unsigned value);
|
__EXPORT int px4_sem_init(px4_sem_t *s, int pshared, unsigned value);
|
||||||
__EXPORT int px4_sem_wait(px4_sem_t *s);
|
__EXPORT int px4_sem_wait(px4_sem_t *s);
|
||||||
__EXPORT int px4_sem_post(px4_sem_t *s);
|
__EXPORT int px4_sem_post(px4_sem_t *s);
|
||||||
__EXPORT int px4_sem_getvalue(px4_sem_t *s);
|
__EXPORT int px4_sem_getvalue(px4_sem_t *s, int *sval);
|
||||||
__EXPORT int px4_sem_destroy(px4_sem_t *s);
|
__EXPORT int px4_sem_destroy(px4_sem_t *s);
|
||||||
|
|
||||||
__END_DECLS
|
__END_DECLS
|
||||||
@@ -75,8 +75,8 @@ typedef px4_sem_t sem_t
|
|||||||
|
|
||||||
#define px4_sem_init _GLOBAL sem_init
|
#define px4_sem_init _GLOBAL sem_init
|
||||||
#define px4_sem_wait _GLOBAL sem_wait
|
#define px4_sem_wait _GLOBAL sem_wait
|
||||||
#define px4_sem_post _GLOBAL px4_sem_post
|
#define px4_sem_post _GLOBAL sem_post
|
||||||
#define px4_sem_getvalue _GLOBAL px4_sem_getvalue
|
#define px4_sem_getvalue _GLOBAL sem_getvalue
|
||||||
#define px4_sem_destroy _GLOBAL sem_destroy
|
#define px4_sem_destroy _GLOBAL sem_destroy
|
||||||
|
|
||||||
|
|
||||||
@@ -122,7 +122,7 @@ typedef struct {
|
|||||||
pollevent_t revents; /* The output event flags */
|
pollevent_t revents; /* The output event flags */
|
||||||
|
|
||||||
/* Required for PX4 compatability */
|
/* Required for PX4 compatability */
|
||||||
sem_t *sem; /* Pointer to semaphore used to post output event */
|
px4_sem_t *sem; /* Pointer to semaphore used to post output event */
|
||||||
void *priv; /* For use by drivers */
|
void *priv; /* For use by drivers */
|
||||||
} px4_pollfd_struct_t;
|
} px4_pollfd_struct_t;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user