diff options
author | Joey Castillo <joeycastillo@utexas.edu> | 2021-12-01 09:41:11 -0500 |
---|---|---|
committer | Joey Castillo <joeycastillo@utexas.edu> | 2021-12-01 09:41:48 -0500 |
commit | 36be251e893a0f9c186e409952c06e93d1031f7d (patch) | |
tree | e6298b80704d1e7f9756241d788aa899d0983c16 /apps | |
parent | b60d63f2634358e50de4aa77aa2f3b567c94f7aa (diff) | |
download | Sensor-Watch-36be251e893a0f9c186e409952c06e93d1031f7d.tar.gz Sensor-Watch-36be251e893a0f9c186e409952c06e93d1031f7d.tar.bz2 Sensor-Watch-36be251e893a0f9c186e409952c06e93d1031f7d.zip |
lis2dh: add support for interrupt latching (stays active until cleared)
Diffstat (limited to 'apps')
-rw-r--r-- | apps/Sensor Watch Accelerometer Test/app.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/Sensor Watch Accelerometer Test/app.c b/apps/Sensor Watch Accelerometer Test/app.c index f9483ebc..bea00f6f 100644 --- a/apps/Sensor Watch Accelerometer Test/app.c +++ b/apps/Sensor Watch Accelerometer Test/app.c @@ -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); |