mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-17 12:23:34 +08:00
Linux: added support for sdlog2
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
@@ -44,6 +44,7 @@
|
||||
#include <px4_config.h>
|
||||
#elif defined (__PX4_LINUX)
|
||||
#define CONFIG_NFILE_STREAMS 1
|
||||
#define CONFIG_ARCH_BOARD_LINUXTEST 1
|
||||
|
||||
#define px4_errx(x, ...) errx(x, __VA_ARGS__)
|
||||
|
||||
|
||||
@@ -69,7 +69,7 @@
|
||||
|
||||
#elif defined(__PX4_NUTTX) || defined(__PX4_LINUX)
|
||||
/*
|
||||
* Building for NuttX
|
||||
* Building for NuttX or Linux
|
||||
*/
|
||||
#include <platforms/px4_includes.h>
|
||||
/* Main entry point */
|
||||
@@ -102,6 +102,8 @@ typedef param_t px4_param_t;
|
||||
|
||||
#define _PX4_IOC(x,y) _IOC(x,y)
|
||||
|
||||
#define px4_statfs_buf_f_bavail_t int
|
||||
|
||||
/* Linux Specific defines */
|
||||
#elif defined(__PX4_LINUX)
|
||||
|
||||
@@ -123,6 +125,8 @@ __END_DECLS
|
||||
|
||||
#define USEC2TICK(x) (PX4_TICKS_PER_SEC*(long)x/1000000L)
|
||||
|
||||
#define px4_statfs_buf_f_bavail_t unsigned long
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user