aboutsummaryrefslogtreecommitdiff
path: root/src/zjs_common.h
diff options
context:
space:
mode:
authorJimmy Huang <jimmy.huang@linux.intel.com>2017-03-28 16:34:50 -0700
committerGeoff Gustafson <geoff@linux.intel.com>2017-03-28 16:34:50 -0700
commit6245348691e0f5dbba9afd3a232dc1ba62194582 (patch)
tree6540871aa50577114e2326f2df3136eb25459576 /src/zjs_common.h
parent0531ab6915d53a8c6e6ec10c761fecca852d9765 (diff)
[sensor] Fixed bug where controller name can't get set (#912)
Change controller from a char* to array so that it can be overwritten, akso make default controller for AmbientLight to be "ADC_0" and fix a leak Signed-off-by: Jimmy Huang <jimmy.huang@intel.com>
Diffstat (limited to 'src/zjs_common.h')
-rw-r--r--src/zjs_common.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/zjs_common.h b/src/zjs_common.h
index 9ee29b5..470a7e4 100644
--- a/src/zjs_common.h
+++ b/src/zjs_common.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2016, Intel Corporation.
+// Copyright (c) 2016-2017, Intel Corporation.
#ifndef __zjs_common_h__
#define __zjs_common_h__
@@ -45,10 +45,12 @@ int zjs_get_ms(void);
#define MAX_SCRIPT_SIZE 8192
#if defined(CONFIG_BOARD_ARDUINO_101) || defined(CONFIG_BOARD_ARDUINO_101_SSS)
+#define ADC_DEVICE_NAME "ADC_0"
+#define ADC_BUFFER_SIZE 2
#define ARC_AIO_MIN 9
#define ARC_AIO_MAX 14
-// ARC_AIO_LEN = ARC_AIO_MAX - ARC_AIO_MIN + 1
#define ARC_AIO_LEN 6
+#define BMI160_DEVICE_NAME "bmi160"
#endif
#endif // __zjs_common_h__