diff options
author | Nick Vaccaro <nvaccaro@google.com> | 2014-05-08 16:30:33 -0700 |
---|---|---|
committer | Nick Vaccaro <nvaccaro@google.com> | 2014-05-08 21:46:25 -0700 |
commit | f51dc826bb5e75a074a14c1227e750160b3fc694 (patch) | |
tree | 9f18db2447e38a1fc12d58fa1e6ad96d50e46916 /6515/libsensors_iio/software/simple_apps/stress_iio/stress_iio.c | |
parent | e1df3ea6fb4c1af4069e0610a5a7a8634b786e99 (diff) | |
download | invensense-f51dc826bb5e75a074a14c1227e750160b3fc694.tar.gz |
Invensense: 6515: update HAL to 5.2.0 RC23
RC23 (driver and HAL combination) purports to fix the following RC22
issues:
- Cadence fix to improve Step counter performance.
- Batch mode wakes up device in suspend mode
- Implement suspend_noirq method, removed unnecessary usleep
- Handle bad compass data in HAL
- Handle pressure support correctly in HAL
Added the following fixes to RC23 HAL drop from Invensense:
- fix bug caused when pressure sensor is disabled
- remember pedometer poll rate
- remove hard-coded pedometer poll time
Bug: 14234011
Change-Id: I3e0a7b232d8047a66029b6af967752f9e653ab27
Diffstat (limited to '6515/libsensors_iio/software/simple_apps/stress_iio/stress_iio.c')
-rw-r--r-- | 6515/libsensors_iio/software/simple_apps/stress_iio/stress_iio.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/6515/libsensors_iio/software/simple_apps/stress_iio/stress_iio.c b/6515/libsensors_iio/software/simple_apps/stress_iio/stress_iio.c index 0186041..5959cd6 100644 --- a/6515/libsensors_iio/software/simple_apps/stress_iio/stress_iio.c +++ b/6515/libsensors_iio/software/simple_apps/stress_iio/stress_iio.c @@ -253,6 +253,10 @@ static void setup_dmp(char *dev_path){ if (ret < 0) return; /* selelct which event to enable and interrupt on/off here */ + //enable_glu(sysfs_path, 0); +// ret = write_sysfs_int_and_verify("tap_on", sysfs_path, 0); +// if (ret < 0) +// return; ret = write_sysfs_int_and_verify("pedometer_int_on", sysfs_path, 1); ret = write_sysfs_int_and_verify("pedometer_on", sysfs_path, 1); @@ -510,7 +514,9 @@ static int run_enable_sequence() a = true; g = true; +// g = false; a = true; +// a = false; /*disable the master enable */ enable_enable(0); if(g) { @@ -569,6 +575,10 @@ static int run_enable_sequence() first_flag = 1; /*enable the master enable */ enable_enable(1); + //enable_enable(0); + //verify_img(); + //while(1); + //write_sysfs_string_and_verify("wake_unlock", "/sys/power/", "hack"); if (enable_random_delay) random_delay(); else { @@ -624,6 +634,7 @@ static int run_dmp_off() { g = true; a = true; a = false; +// g = false; /*disable the master enable */ enable_enable(0); if(g) { |