tree: d86a6c1362c732738cdad1e729755ffa43390dd5 [path history] [tgz]
  1. BUILD.gn
  2. OWNERS
  3. README.md
  4. accelerometer_test.cc
  5. configuration.cc
  6. configuration.h
  7. delegate.h
  8. delegate_impl.cc
  9. delegate_impl.h
  10. gyroscope_test.cc
  11. main.cc
  12. sensor_kind.cc
  13. sensor_kind.h
  14. sensor_location.h
  15. test_helper.cc
  16. test_helper.h
  17. test_mocks.cc
  18. test_mocks.h
  19. vpd_loader_test.cc
mems_setup/README.md

Chrome OS MEMS Setup Code

/usr/sbin/mems_setup

This tool handles the boot-time setup of cros_ec sensors on the device, such as accelerometers, gyroscopes, and potentially other sensors in the future.

The goals of introducing this tool vs. using a shell script include:

  • improved testability;
  • more readable;
  • better performance.

This tool is based on libmems.

Configuration

Currently, the actions taken by the tool are statically determined by the type of sensor being initialized, and the only values that are discovered at runtime are the VPD calibrations. If your use case needs tweaking the behavior of this tool in other ways, please file a bug.