You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by vi...@apache.org on 2017/03/09 23:29:53 UTC

incubator-mynewt-core git commit: MYNEWT-665 SensorAPI: Add TCS34725 Driver

Repository: incubator-mynewt-core
Updated Branches:
  refs/heads/develop 2d4f8a760 -> 3f8f82512


MYNEWT-665 SensorAPI: Add TCS34725 Driver

- color sensor support
- fix build


Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/3f8f8251
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/3f8f8251
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/3f8f8251

Branch: refs/heads/develop
Commit: 3f8f8251217e056f40e6dae114769160b423ef87
Parents: 2d4f8a7
Author: Vipul Rahane <vi...@apache.org>
Authored: Thu Mar 9 15:29:08 2017 -0800
Committer: Vipul Rahane <vi...@apache.org>
Committed: Thu Mar 9 15:29:08 2017 -0800

----------------------------------------------------------------------
 hw/bsp/nrf52dk/src/hal_bsp.c | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/3f8f8251/hw/bsp/nrf52dk/src/hal_bsp.c
----------------------------------------------------------------------
diff --git a/hw/bsp/nrf52dk/src/hal_bsp.c b/hw/bsp/nrf52dk/src/hal_bsp.c
index 3b7b375..e2aec26 100644
--- a/hw/bsp/nrf52dk/src/hal_bsp.c
+++ b/hw/bsp/nrf52dk/src/hal_bsp.c
@@ -42,10 +42,19 @@
 #endif
 #include "os/os_dev.h"
 #include "bsp.h"
+#if MYNEWT_VAL(LSM303DLHC_PRESENT)
 #include <lsm303dlhc/lsm303dlhc.h>
+static struct lsm303dlhc lsm303dlhc;
+#endif
+#if MYNEWT_VAL(BNO055_PRESENT)
+#include <bno055/bno055.h>
+#endif
+#if MYNEWT_VAL(TSL2561_PRESENT)
 #include <tsl2561/tsl2561.h>
+#endif
+#if MYNEWT_VAL(TCS34725_PRESENT)
 #include <tcs34725/tcs34725.h>
-#include <bno055/bno055.h>
+#endif
 
 #if MYNEWT_VAL(LSM303DLHC_PRESENT)
 static struct lsm303dlhc lsm303dlhc;