aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal
diff options
context:
space:
mode:
authorRocco Marco Guglielmi <roccomarco.guglielmi@live.com>2016-09-25 22:12:34 +0000
committerRocco Marco Guglielmi <roccomarco.guglielmi@live.com>2016-09-25 22:12:34 +0000
commit55288f04804b7fc1530a13cf0b0e54eab89465e5 (patch)
tree07668ea5d77137727fcd02266decbf87df2208fc /os/hal
parent473768bab855bf00ad0c53ce6c720a363c806738 (diff)
downloadChibiOS-55288f04804b7fc1530a13cf0b0e54eab89465e5.tar.gz
ChibiOS-55288f04804b7fc1530a13cf0b0e54eab89465e5.tar.bz2
ChibiOS-55288f04804b7fc1530a13cf0b0e54eab89465e5.zip
Changes in sensor interfaces. Now biases are float since used only for cooked data.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9800 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal')
-rw-r--r--os/hal/lib/peripherals/sensors/hal_accelerometer.h2
-rw-r--r--os/hal/lib/peripherals/sensors/hal_barometer.h2
-rw-r--r--os/hal/lib/peripherals/sensors/hal_compass.h2
-rw-r--r--os/hal/lib/peripherals/sensors/hal_gyroscope.h2
-rw-r--r--os/hal/lib/peripherals/sensors/hal_hygrometer.h2
-rw-r--r--os/hal/lib/peripherals/sensors/hal_thermometer.h2
6 files changed, 6 insertions, 6 deletions
diff --git a/os/hal/lib/peripherals/sensors/hal_accelerometer.h b/os/hal/lib/peripherals/sensors/hal_accelerometer.h
index af2000583..6f2249e91 100644
--- a/os/hal/lib/peripherals/sensors/hal_accelerometer.h
+++ b/os/hal/lib/peripherals/sensors/hal_accelerometer.h
@@ -48,7 +48,7 @@
*/
#define _base_accelerometer_methods_alone \
/* Invoke the set bias procedure.*/ \
- msg_t (*set_bias)(void *instance, int32_t biases[]); \
+ msg_t (*set_bias)(void *instance, float biases[]); \
/* Remove bias stored data.*/ \
msg_t (*reset_bias)(void *instance); \
/* Invoke the set sensitivity procedure.*/ \
diff --git a/os/hal/lib/peripherals/sensors/hal_barometer.h b/os/hal/lib/peripherals/sensors/hal_barometer.h
index 74f9a9828..e62b5116e 100644
--- a/os/hal/lib/peripherals/sensors/hal_barometer.h
+++ b/os/hal/lib/peripherals/sensors/hal_barometer.h
@@ -48,7 +48,7 @@
*/
#define _base_barometer_methods_alone \
/* Invoke the set bias procedure.*/ \
- msg_t (*set_bias)(void *instance, int32_t biases[]); \
+ msg_t (*set_bias)(void *instance, float biases[]); \
/* Remove bias stored data.*/ \
msg_t (*reset_bias)(void *instance); \
/* Invoke the set sensitivity procedure.*/ \
diff --git a/os/hal/lib/peripherals/sensors/hal_compass.h b/os/hal/lib/peripherals/sensors/hal_compass.h
index 3ddddf1a4..cf30f7318 100644
--- a/os/hal/lib/peripherals/sensors/hal_compass.h
+++ b/os/hal/lib/peripherals/sensors/hal_compass.h
@@ -48,7 +48,7 @@
*/
#define _base_compass_methods_alone \
/* Invoke the set bias procedure.*/ \
- msg_t (*set_bias)(void *instance, int32_t biases[]); \
+ msg_t (*set_bias)(void *instance, float biases[]); \
/* Remove bias stored data.*/ \
msg_t (*reset_bias)(void *instance); \
/* Invoke the set sensitivity procedure.*/ \
diff --git a/os/hal/lib/peripherals/sensors/hal_gyroscope.h b/os/hal/lib/peripherals/sensors/hal_gyroscope.h
index 73dbabdae..2ca19fd1d 100644
--- a/os/hal/lib/peripherals/sensors/hal_gyroscope.h
+++ b/os/hal/lib/peripherals/sensors/hal_gyroscope.h
@@ -50,7 +50,7 @@
/* Invoke the sample bias procedure.*/ \
msg_t (*sample_bias)(void *instance); \
/* Invoke the set bias procedure.*/ \
- msg_t (*set_bias)(void *instance, int32_t biases[]); \
+ msg_t (*set_bias)(void *instance, float biases[]); \
/* Remove bias stored data.*/ \
msg_t (*reset_bias)(void *instance); \
/* Invoke the set sensitivity procedure.*/ \
diff --git a/os/hal/lib/peripherals/sensors/hal_hygrometer.h b/os/hal/lib/peripherals/sensors/hal_hygrometer.h
index 3e62c618c..6080f5951 100644
--- a/os/hal/lib/peripherals/sensors/hal_hygrometer.h
+++ b/os/hal/lib/peripherals/sensors/hal_hygrometer.h
@@ -48,7 +48,7 @@
*/
#define _base_hygrometer_methods_alone \
/* Invoke the set bias procedure.*/ \
- msg_t (*set_bias)(void *instance, int32_t biases[]); \
+ msg_t (*set_bias)(void *instance, float biases[]); \
/* Remove bias stored data.*/ \
msg_t (*reset_bias)(void *instance); \
/* Invoke the set sensitivity procedure.*/ \
diff --git a/os/hal/lib/peripherals/sensors/hal_thermometer.h b/os/hal/lib/peripherals/sensors/hal_thermometer.h
index 58bcbbdbd..d6f62fb60 100644
--- a/os/hal/lib/peripherals/sensors/hal_thermometer.h
+++ b/os/hal/lib/peripherals/sensors/hal_thermometer.h
@@ -48,7 +48,7 @@
*/
#define _base_thermometer_methods_alone \
/* Invoke the set bias procedure.*/ \
- msg_t (*set_bias)(void *instance, int32_t biases[]); \
+ msg_t (*set_bias)(void *instance, float biases[]); \
/* Remove bias stored data.*/ \
msg_t (*reset_bias)(void *instance); \
/* Invoke the set sensitivity procedure.*/ \