Qurt lightweight parameter implementation (#20735)

This commit is contained in:
Zachary Lowell
2022-12-09 09:55:49 -08:00
committed by GitHub
parent f3884d5835
commit 643eed51cb
8 changed files with 13 additions and 9 deletions
@@ -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.
-2
View File
@@ -50,8 +50,6 @@ include(qurt_reqs)
include_directories(${HEXAGON_SDK_INCLUDES})
set(DISABLE_PARAMS_MODULE_SCOPING TRUE)
#=============================================================================
#
# Defined functions in this file
+2
View File
@@ -38,6 +38,8 @@
#include <pthread.h>
#include <visibility.h>
#include <inttypes.h>
#include <sys/stat.h>
__BEGIN_DECLS
+2
View File
@@ -35,5 +35,7 @@
__BEGIN_DECLS
long PX4_TICKS_PER_SEC = 1000L;
void fsync(int fd) { return; }
uint32_t crc32part(const uint8_t *src, size_t len, uint32_t crc32val) { return 1; }
__END_DECLS