aboutsummaryrefslogtreecommitdiff
path: root/src/zjs_common.h
diff options
context:
space:
mode:
authorJimmy Huang <jimmy.huang@linux.intel.com>2017-06-29 12:38:35 -0700
committerGeoff Gustafson <geoff@linux.intel.com>2017-06-29 12:38:35 -0700
commit98e8a9f8b7bcd59389d705909fba1d6fa37d7044 (patch)
tree40812940ec3dc6d8e6d796595baa81274694820d /src/zjs_common.h
parentdf40f83ee3c14ec44ca01c3bd032df2f279d3cae (diff)
[sensor] Added Magnetometer sensor support (#1309)
It will support the fxos8700 magnetometer sensor on the FRDM_K64F Signed-off-by: Jimmy Huang <jimmy.huang@intel.com>
Diffstat (limited to 'src/zjs_common.h')
-rw-r--r--src/zjs_common.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/zjs_common.h b/src/zjs_common.h
index 4e113b1..8142f2b 100644
--- a/src/zjs_common.h
+++ b/src/zjs_common.h
@@ -74,6 +74,7 @@ int zjs_get_ms(void);
#define TEMP_DEVICE_NAME BMI160_NAME
#elif CONFIG_BOARD_FRDM_K64F
#define ACCEL_DEVICE_NAME CONFIG_FXOS8700_NAME
+#define MAGN_DEVICE_NAME CONFIG_FXOS8700_NAME
#endif
// default to blank if not found in board configs
@@ -89,6 +90,10 @@ int zjs_get_ms(void);
#define LIGHT_DEVICE_NAME ""
#endif
+#ifndef MAGN_DEVICE_NAME
+#define MAGN_DEVICE_NAME ""
+#endif
+
#ifndef TEMP_DEVICE_NAME
#define TEMP_DEVICE_NAME ""
#endif