You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by je...@apache.org on 2019/08/01 19:13:17 UTC
[mynewt-core] branch master updated: sensor_creator: Fix ADXL345
configuration for bus driver
This is an automated email from the ASF dual-hosted git repository.
jerzy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git
The following commit(s) were added to refs/heads/master by this push:
new 99461bd sensor_creator: Fix ADXL345 configuration for bus driver
99461bd is described below
commit 99461bd5114dce5be0c0833b48134719d76f6ee9
Author: Jerzy Kasenberg <je...@codecoup.pl>
AuthorDate: Thu Aug 1 11:52:17 2019 +0200
sensor_creator: Fix ADXL345 configuration for bus driver
Bus driver configuration had missing interrupt settings.
Now same configuration for interrupt is applied for
bus-driver and non-bus-driver build.
---
hw/sensor/creator/src/sensor_creator.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/hw/sensor/creator/src/sensor_creator.c b/hw/sensor/creator/src/sensor_creator.c
index 32333a6..8aa086d 100644
--- a/hw/sensor/creator/src/sensor_creator.c
+++ b/hw/sensor/creator/src/sensor_creator.c
@@ -439,7 +439,12 @@ static const struct bus_spi_node_cfg adxl345_node_cfg = {
.freq = 4000,
};
#endif
-static struct sensor_itf adxl345_itf;
+static struct sensor_itf adxl345_itf = {
+ .si_ints = {
+ { MYNEWT_VAL(ADXL345_INT_PIN_HOST), MYNEWT_VAL(ADXL345_INT_PIN_DEVICE),
+ MYNEWT_VAL(ADXL345_INT_CFG_ACTIVE)}
+ }
+};
#else
static struct sensor_itf adxl_itf = {
.si_type = SENSOR_ITF_I2C,