mirror of
https://github.com/joeycastillo/second-movement.git
synced 2026-02-04 18:45:29 +00:00
Revert "Added double-tap capabilities to LIS2DW"
This commit is contained in:
@ -302,20 +302,6 @@ void lis2dw_clear_fifo(void) {
|
||||
#endif
|
||||
}
|
||||
|
||||
void lis2dw_enable_double_tap(void) {
|
||||
#ifdef I2C_SERCOM
|
||||
uint8_t configuration = watch_i2c_read8(LIS2DW_ADDRESS, LIS2DW_REG_WAKE_UP_THS);
|
||||
watch_i2c_write8(LIS2DW_ADDRESS, LIS2DW_REG_WAKE_UP_THS, configuration | LIS2DW_WAKE_UP_THS_ENABLE_DOUBLE_TAP);
|
||||
#endif
|
||||
}
|
||||
|
||||
void lis2dw_disable_double_tap(void) {
|
||||
#ifdef I2C_SERCOM
|
||||
uint8_t configuration = watch_i2c_read8(LIS2DW_ADDRESS, LIS2DW_REG_WAKE_UP_THS);
|
||||
watch_i2c_write8(LIS2DW_ADDRESS, LIS2DW_REG_WAKE_UP_THS, configuration & ~LIS2DW_WAKE_UP_THS_ENABLE_DOUBLE_TAP);
|
||||
#endif
|
||||
}
|
||||
|
||||
void lis2dw_enable_sleep(void) {
|
||||
#ifdef I2C_SERCOM
|
||||
uint8_t configuration = watch_i2c_read8(LIS2DW_ADDRESS, LIS2DW_REG_WAKE_UP_THS);
|
||||
|
||||
@ -343,10 +343,6 @@ bool lis2dw_read_fifo(lis2dw_fifo_t *fifo_data);
|
||||
|
||||
void lis2dw_clear_fifo(void);
|
||||
|
||||
void lis2dw_enable_double_tap(void);
|
||||
|
||||
void lis2dw_disable_double_tap(void);
|
||||
|
||||
void lis2dw_enable_sleep(void);
|
||||
|
||||
void lis2dw_disable_sleep(void);
|
||||
|
||||
Reference in New Issue
Block a user