Linux: added support for sdlog2

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
Mark Charlebois
2015-04-20 11:15:12 -07:00
parent 13d84ef17b
commit 5f3496353c
8 changed files with 45 additions and 28 deletions
+1
View File
@@ -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__)
+5 -1
View File
@@ -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