aboutsummaryrefslogtreecommitdiff
path: root/src/zjs_common.h
diff options
context:
space:
mode:
authorJimmy Huang <jimmy.huang@intel.com>2017-10-10 17:44:30 -0700
committerGeoff Gustafson <geoff@linux.intel.com>2017-10-31 09:56:49 -0700
commit2d41bb5e89dee3628e039ffe0b80fe2769401513 (patch)
treea17fc5650e04e06c0c32227038409c415cfd30cc /src/zjs_common.h
parentc6876180080ae5197c5b098d92514df7c2228019 (diff)
[aio] Make AIO a EventEmitter and remove .on()
Refactor AIO to use the EventEmitter function for onchange events, and change the way how readAsync is implemented so that it shares the same logic as the synchronous version. Also update tests to use to proper listener removal APIs. Signed-off-by: Jimmy Huang <jimmy.huang@intel.com>
Diffstat (limited to 'src/zjs_common.h')
-rw-r--r--src/zjs_common.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/zjs_common.h b/src/zjs_common.h
index f561b6a..966d843 100644
--- a/src/zjs_common.h
+++ b/src/zjs_common.h
@@ -134,9 +134,9 @@ int zjs_get_ms(void);
#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
-#define ARC_AIO_LEN 6
+#define AIO_MIN 9
+#define AIO_MAX 14
+#define AIO_LEN 6
#ifdef CONFIG_BOARD_ARDUINO_101_SSS
#define BMI160_NAME CONFIG_BMI160_NAME
#elif CONFIG_BOARD_ARDUINO_101
@@ -146,6 +146,11 @@ int zjs_get_ms(void);
#define GYRO_DEVICE_NAME BMI160_NAME
#define TEMP_DEVICE_NAME BMI160_NAME
#elif CONFIG_BOARD_FRDM_K64F
+#define ADC_DEVICE_NAME "ADC_0"
+#define ADC_BUFFER_SIZE 2
+#define AIO_MIN 9
+#define AIO_MAX 14
+#define AIO_LEN 6
#define ACCEL_DEVICE_NAME CONFIG_FXOS8700_NAME
#define MAGN_DEVICE_NAME CONFIG_FXOS8700_NAME
#endif