lis2dh: add support for interrupt latching (stays active until cleared)

This commit is contained in:
Joey Castillo committed 2021-12-01 09:41:48 -05:00
1 parent b60d63f263
commit 36be251e89
3 files changed
+9 -5

No files matched your search

+1 -1
View File
@@ -58,7 +58,7 @@ void app_init() {
LIS2DH_INTERRUPT_CONFIGURATION_OR |
LIS2DH_INTERRUPT_CONFIGURATION_X_HIGH_ENABLE |
LIS2DH_INTERRUPT_CONFIGURATION_Y_HIGH_ENABLE |
LIS2DH_INTERRUPT_CONFIGURATION_Z_HIGH_ENABLE, 96, 0);
LIS2DH_INTERRUPT_CONFIGURATION_Z_HIGH_ENABLE, 96, 0, true);
watch_register_interrupt_callback(A1, cb_interrupt_1, INTERRUPT_TRIGGER_RISING);
watch_rtc_register_tick_callback(cb_tick);