CHERRY-PICK: sensors: rewrite the hal to address all sensors.h requirements

Sensors support:
  - MMA7660 accelerometer
  - MPU9150/9250 accelerometer
  - Grove Light sensor

Features:
  - Implements the get_sensor_list, activate, batch, setDelay, flush
and poll functions defined by sensors.h
  - Polling is implemented via separate threads which signal the
main thread via pipes. This enables the HAL to provide data at
the correct frequency for each sensor and no longer burn the CPU
as the main thread sleeps until events are signaled
  - Sets MMA7660 as the default accelerometer due to physical sensor
scarcity
  - Has documentation. To generate the docs change your current
directory to *doc* and run the *doxygen* cmdline tool

BUG=25458391

Change-Id: I2d83e8035630ff01e302c88ad700ade4463375bb
Signed-off-by: Constantin Musca <constantin.musca@intel.com>
(cherry picked from commit cf6591ae5272db9f2718d75d0e32d0298b0dc7fd)
26 files changed
tree: 0bb3bcf83d18116c19979fb3f5d34365d835d807
  1. peripheral/
  2. soc/