mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-01 09:34:06 +08:00
POSIX: PX4 posix header fixes
This commit is contained in:
parent
76508ab5b5
commit
039b72788c
@ -64,7 +64,7 @@ typedef struct
|
||||
__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_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);
|
||||
|
||||
__END_DECLS
|
||||
@ -75,8 +75,8 @@ typedef px4_sem_t sem_t
|
||||
|
||||
#define px4_sem_init _GLOBAL sem_init
|
||||
#define px4_sem_wait _GLOBAL sem_wait
|
||||
#define px4_sem_post _GLOBAL px4_sem_post
|
||||
#define px4_sem_getvalue _GLOBAL px4_sem_getvalue
|
||||
#define px4_sem_post _GLOBAL sem_post
|
||||
#define px4_sem_getvalue _GLOBAL sem_getvalue
|
||||
#define px4_sem_destroy _GLOBAL sem_destroy
|
||||
|
||||
|
||||
@ -122,7 +122,7 @@ typedef struct {
|
||||
pollevent_t revents; /* The output event flags */
|
||||
|
||||
/* 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 */
|
||||
} px4_pollfd_struct_t;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user