From ee9e8f0a206c1abfcc79e37e0a5e7d39f73e4343 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Tue, 16 Dec 2014 08:16:53 -0600 Subject: [PATCH] Add ADXL345 accelerometer driver. From Alan Carvalho de Assis --- configs/freedom-kl25z/src/Makefile | 2 +- configs/freedom-kl25z/src/kl_adxl345.c | 8 ++------ configs/freedom-kl25z/src/kl_nsh.c | 2 +- 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/configs/freedom-kl25z/src/Makefile b/configs/freedom-kl25z/src/Makefile index f9fffab870..42d583488e 100644 --- a/configs/freedom-kl25z/src/Makefile +++ b/configs/freedom-kl25z/src/Makefile @@ -86,7 +86,7 @@ ifeq ($(CONFIG_NSH_LIBRARY),y) CSRCS += kl_nsh.c endif -ifeq ($(CONFIG_INPUT_ADXL345),y) +ifeq ($(CONFIG_SENSORS_ADXL345),y) CSRCS += kl_adxl345.c endif diff --git a/configs/freedom-kl25z/src/kl_adxl345.c b/configs/freedom-kl25z/src/kl_adxl345.c index ef9f0a2957..a756583579 100644 --- a/configs/freedom-kl25z/src/kl_adxl345.c +++ b/configs/freedom-kl25z/src/kl_adxl345.c @@ -57,11 +57,7 @@ ****************************************************************************/ /* Configuration ************************************************************/ -#ifdef CONFIG_INPUT_ADXL345 -#ifndef CONFIG_INPUT -# error "ADXL345 support requires CONFIG_INPUT" -#endif - +#ifdef CONFIG_SENSORS_ADXL345 #ifndef CONFIG_KL_SPI0 # error "ADXL345 support requires CONFIG_KL_SPI0" #endif @@ -286,4 +282,4 @@ int adxl345_archinitialize(int minor) return OK; } -#endif /* CONFIG_INPUT_ADXL345 */ +#endif /* CONFIG_SENSORS_ADXL345 */ diff --git a/configs/freedom-kl25z/src/kl_nsh.c b/configs/freedom-kl25z/src/kl_nsh.c index f17f523072..a191eba534 100644 --- a/configs/freedom-kl25z/src/kl_nsh.c +++ b/configs/freedom-kl25z/src/kl_nsh.c @@ -70,7 +70,7 @@ int nsh_archinitialize(void) { -#if defined(CONFIG_INPUT_ADXL345) +#if defined(CONFIG_SENSORS_ADXL345) int ret; ret = adxl345_archinitialize(0);