aboutsummaryrefslogtreecommitdiff
path: root/src/drivers/ms5611/ms5611.h
diff options
context:
space:
mode:
authorAndrew Tridgell <andrew@tridgell.net>2015-02-01 12:07:16 +1100
committerLorenz Meier <lm@inf.ethz.ch>2015-02-01 13:09:44 +0100
commit04a905041009e4763cdc9e08a853c16a7e0b7dca (patch)
treeb2380472c550423daf862ac5b44b33c57a275e88 /src/drivers/ms5611/ms5611.h
parenta2a244584e36a0e9ffdb93a0dda8473baf8344d3 (diff)
downloadpx4-firmware-04a905041009e4763cdc9e08a853c16a7e0b7dca.tar.gz
px4-firmware-04a905041009e4763cdc9e08a853c16a7e0b7dca.tar.bz2
px4-firmware-04a905041009e4763cdc9e08a853c16a7e0b7dca.zip
ms5611: allow for all 4 bus combinations in ms5611 driver
this uses the same table driven approach as the hmc5883 driver, and allows for a ms5611 baro on any of the 4 bus combinations. A simple "ms5611 start" will start all baros that are found.
Diffstat (limited to 'src/drivers/ms5611/ms5611.h')
-rw-r--r--src/drivers/ms5611/ms5611.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/drivers/ms5611/ms5611.h b/src/drivers/ms5611/ms5611.h
index 3f1f6c473..c8211b8dd 100644
--- a/src/drivers/ms5611/ms5611.h
+++ b/src/drivers/ms5611/ms5611.h
@@ -80,6 +80,6 @@ extern bool crc4(uint16_t *n_prom);
} /* namespace */
/* interface factories */
-extern device::Device *MS5611_spi_interface(ms5611::prom_u &prom_buf, bool external_bus) weak_function;
-extern device::Device *MS5611_i2c_interface(ms5611::prom_u &prom_buf) weak_function;
-
+extern device::Device *MS5611_spi_interface(ms5611::prom_u &prom_buf, uint8_t busnum) weak_function;
+extern device::Device *MS5611_i2c_interface(ms5611::prom_u &prom_buf, uint8_t busnum) weak_function;
+typedef device::Device* (*MS5611_constructor)(ms5611::prom_u &prom_buf, uint8_t busnum);