You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by GitBox <gi...@apache.org> on 2018/03/28 07:11:17 UTC

[GitHub] jacobrosenthal commented on a change in pull request #967: Add Wake Up configuration to LIS2DW12 driver

jacobrosenthal commented on a change in pull request #967: Add Wake Up configuration to LIS2DW12 driver
URL: https://github.com/apache/mynewt-core/pull/967#discussion_r177655728
 
 

 ##########
 File path: hw/drivers/sensors/lis2dw12/include/lis2dw12/lis2dw12.h
 ##########
 @@ -89,6 +89,38 @@ extern "C" {
 #define LIS2DW12_INT_SRC_WU_IA                  0x02
 #define LIS2DW12_INT_SRC_FF_IA                  0x01
 
+#define LIS2DW12_WAKE_UP_SRC_FF_IA              0x20
+#define LIS2DW12_WAKE_UP_SRC_SLEEP_STATE_IA     0x10
+#define LIS2DW12_WAKE_UP_SRC_WU_IA              0x08
+#define LIS2DW12_WAKE_UP_SRC_X_WU               0x04
+#define LIS2DW12_WAKE_UP_SRC_Y_WU               0x02
+#define LIS2DW12_WAKE_UP_SRC_Z_WU               0x01
+
+#define LIS2DW12_TAP_SRC_TAP_IA                 0x40
+#define LIS2DW12_TAP_SRC_SINGLE_TAP             0x20
+#define LIS2DW12_TAP_SRC_DOUBLE_TAP             0x10
+#define LIS2DW12_TAP_SRC_TAP_SIGN               0x08
+#define LIS2DW12_TAP_SRC_X_TAP                  0x04
+#define LIS2DW12_TAP_SRC_Y_TAP                  0x02
+#define LIS2DW12_TAP_SRC_Z_TAP                  0x01
+
+#define LIS2DW12_SIXD_SRC_6D_IA                 0x40
 
 Review comment:
   You use 6d here, and sixd and one or two other places, but everywhere else. My datasheet references 6d so I dont hate that everywhere personally.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services