mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-31 10:26:52 +08:00
Qurt lightweight parameter implementation (#20735)
This commit is contained in:
@@ -100,6 +100,12 @@ typedef struct {
|
||||
#define POLLIN (0x01)
|
||||
#endif
|
||||
|
||||
#if defined(__PX4_QURT)
|
||||
// Qurt has no fsync implementation so need to declare one here
|
||||
// and then define a fake one in the Qurt platform code.
|
||||
void fsync(int fd);
|
||||
#endif
|
||||
|
||||
__EXPORT int px4_open(const char *path, int flags, ...);
|
||||
__EXPORT int px4_close(int fd);
|
||||
__EXPORT ssize_t px4_read(int fd, void *buffer, size_t buflen);
|
||||
@@ -114,7 +120,6 @@ __END_DECLS
|
||||
#error "No TARGET OS Provided"
|
||||
#endif
|
||||
|
||||
|
||||
// The stack size is intended for 32-bit architectures; therefore
|
||||
// we often run out of stack space when pointers are larger than 4 bytes.
|
||||
// Double the stack size on posix when we're on a 64-bit architecture.
|
||||
|
||||
Reference in New Issue
Block a user