diff options
author | px4dev <px4@purgatory.org> | 2012-08-25 00:12:11 -0700 |
---|---|---|
committer | px4dev <px4@purgatory.org> | 2012-08-25 00:12:11 -0700 |
commit | 4456ca8827c59d8711e76bd644336d5b3cd344dd (patch) | |
tree | bc1f646e83d3649459540b75a752d0a7c3b164d9 /apps/drivers/drv_baro.h | |
parent | f901a35bd4393523c48a73a805b0f5d451cec35d (diff) | |
download | px4-firmware-4456ca8827c59d8711e76bd644336d5b3cd344dd.tar.gz px4-firmware-4456ca8827c59d8711e76bd644336d5b3cd344dd.tar.bz2 px4-firmware-4456ca8827c59d8711e76bd644336d5b3cd344dd.zip |
Sensor IOCTL reorganization. Common sensor operations are now shared across sensor drivers.
Revamp hmc5883, ms5611 and mpu6000 driver startup and test code.
Diffstat (limited to 'apps/drivers/drv_baro.h')
-rw-r--r-- | apps/drivers/drv_baro.h | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/apps/drivers/drv_baro.h b/apps/drivers/drv_baro.h index 323b25c83..b79d5b5b0 100644 --- a/apps/drivers/drv_baro.h +++ b/apps/drivers/drv_baro.h @@ -41,6 +41,7 @@ #include <stdint.h> #include <sys/ioctl.h> +#include "drv_sensor.h" #include "drv_orb_dev.h" #define BARO_DEVICE_PATH "/dev/baro" @@ -65,19 +66,9 @@ ORB_DECLARE(sensor_baro); * ioctl() definitions */ -#define _BAROIOCBASE (0x2100) +#define _BAROIOCBASE (0x2200) #define _BAROIOC(_n) (_IOC(_BAROIOCBASE, _n)) -/** set the driver polling rate to (arg) Hz, or one of the BARO_POLLRATE constants */ -#define BAROIOCSPOLLRATE _BAROIOC(0) - -#define BARO_POLLRATE_MANUAL 1000000 /**< poll when read */ -#define BARO_POLLRATE_EXTERNAL 1000001 /**< poll when device signals ready */ - -/** set the internal queue depth to (arg) entries, must be at least 1 */ -#define BAROIOCSQUEUEDEPTH _BAROIOC(1) - -/** set the report format to (arg); zero is the standard, 1-10 are reserved, all others are driver-specific. */ -#define BAROIOCSREPORTFORMAT _BAROIOC(2) +/* currently no baro-specific ioctls */ #endif /* _DRV_BARO_H */ |