50 #if defined(__PX4_QURT) 51 #include <dspal_types.h> 53 #include <sys/types.h> 58 #define PX4_F_RDONLY 1 59 #define PX4_F_WRONLY 2 63 typedef struct pollfd px4_pollfd_struct_t;
65 #if defined(__cplusplus) 70 #define px4_open _GLOBAL open 71 #define px4_close _GLOBAL close 72 #define px4_ioctl _GLOBAL ioctl 73 #define px4_write _GLOBAL write 74 #define px4_read _GLOBAL read 75 #define px4_poll _GLOBAL poll 76 #define px4_fsync _GLOBAL fsync 77 #define px4_access _GLOBAL access 78 #define px4_getpid _GLOBAL getpid 80 #define PX4_STACK_OVERHEAD 0 82 #elif defined(__PX4_POSIX) 84 #define PX4_STACK_OVERHEAD 8192 88 typedef short pollevent_t;
99 } px4_pollfd_struct_t;
101 __EXPORT int px4_open(
const char *path,
int flags, ...);
104 __EXPORT ssize_t px4_write(
int fd,
const void *
buffer,
size_t buflen);
105 __EXPORT int px4_ioctl(
int fd,
int cmd,
unsigned long arg);
106 __EXPORT int px4_poll(px4_pollfd_struct_t *fds, nfds_t nfds,
int timeout);
108 __EXPORT int px4_access(
const char *pathname,
int mode);
109 __EXPORT px4_task_t px4_getpid(
void);
113 #error "No TARGET OS Provided" 121 #define PX4_STACK_ADJUSTED(_s) (_s * (__SIZEOF_POINTER__ >> 2) + PX4_STACK_OVERHEAD) 124 extern int px4_errno;
126 __EXPORT void px4_show_devices(
void);
128 __EXPORT const char *px4_get_device_names(
unsigned int *handle);
130 __EXPORT void px4_show_topics(
void);
131 __EXPORT const char *px4_get_topic_names(
unsigned int *handle);
137 __EXPORT uint64_t hrt_system_time(
void);
Synchronization primitive: Semaphore.
Generally used magic defines.
Definition: rc_loss_alarm.cpp:50
Definition: video_device.h:50