Linux to posix conversion

Changed "linux" target to "posix". Most of the changes are shared with
QuRT and with OSX. The Linux specific parts are in for i2c which uses
<linux/i2c.h> and <linux/i2c-dev.h>.

There is also a check for __PX4_LINUX in mavlink for a tty ioctl that is
not supported.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
Mark Charlebois
2015-04-21 09:53:09 -07:00
parent 40faa98416
commit f3b5076d70
109 changed files with 106 additions and 107 deletions
+3 -3
View File
@@ -67,7 +67,7 @@
/* Get value of parameter by name, which is equal to the handle for ros */
#define PX4_PARAM_GET_BYNAME(_name, _destpt) ros::param::get(_name, *_destpt)
#elif defined(__PX4_NUTTX) || defined(__PX4_LINUX) || defined(__PX4_QURT)
#elif defined(__PX4_NUTTX) || defined(__PX4_POSIX) || defined(__PX4_QURT)
/*
* Building for NuttX or Linux
*/
@@ -107,7 +107,7 @@ typedef param_t px4_param_t;
#define PX4_ISFINITE(x) isfinite(x)
/* Linux Specific defines */
#elif defined(__PX4_LINUX)
#elif defined(__PX4_POSIX)
// Flag is meaningless on Linux
#define O_BINARY 0
@@ -134,7 +134,7 @@ __END_DECLS
/* Defines for ROS and Linux */
#if defined(__PX4_ROS) || defined(__PX4_LINUX) || defined(__PX4_QURT)
#if defined(__PX4_ROS) || defined(__PX4_POSIX) || defined(__PX4_QURT)
#define OK 0
#define ERROR -1