mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-18 07:53:34 +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.
|
||||
|
||||
@@ -50,8 +50,6 @@ include(qurt_reqs)
|
||||
|
||||
include_directories(${HEXAGON_SDK_INCLUDES})
|
||||
|
||||
set(DISABLE_PARAMS_MODULE_SCOPING TRUE)
|
||||
|
||||
#=============================================================================
|
||||
#
|
||||
# Defined functions in this file
|
||||
|
||||
@@ -38,6 +38,8 @@
|
||||
|
||||
#include <pthread.h>
|
||||
#include <visibility.h>
|
||||
#include <inttypes.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
__BEGIN_DECLS
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user