30688bbe0fe1b07407c033d07ed7e3d49a9fb22c |
|
30-Jan-2016 |
Mihai Serban <mihai.serban@intel.com> |
sensors: use Autolock instead of mutex methods BUG=none Change-Id: I2033254032a0d8bdf1bd2342920ca8061c282722 Signed-off-by: Mihai Serban <mihai.serban@intel.com>
/hardware/bsp/intel/peripheral/sensors/mraa/SensorsHAL.cpp
|
017e5df408ad372efd8897eb24575d69a824281e |
|
26-Jan-2016 |
Constantin Musca <constantin.musca@intel.com> |
sensors: make the HAL thread safe According to the Sensors HAL interface documentation, the implementation must be thread safe and allow functions defined in sensors.h to be called from different threads at the same time. Use a mutex to synchronize the HAL. In addition, initialize the acquisition pipes with the O_NONBLOCK flag to return immediately in case another tread which calls poll() reads the data. Put the read pipe call in a loop as the read system call might return a number less than the number of requested bytes. BUG=none Change-Id: I6ee3f8e0c2ba19942da8b82da1660c9163c5d237 Tracked-On: https://jira01.devtools.intel.com/browse/BP-247 Signed-off-by: Constantin Musca <constantin.musca@intel.com>
/hardware/bsp/intel/peripheral/sensors/mraa/SensorsHAL.cpp
|
9178ce05cb05831817580fc11fb7b20bc2031319 |
|
26-Jan-2016 |
Constantin Musca <constantin.musca@intel.com> |
sensors: add missing checks and fix the pollEvents comments Check the returned value in the missing places. Fix the pollEvents comments to match the behavior of the sensors.h poll function. BUG=none Change-Id: Iee2c14b8c7155584b6edf84705096d3007ba22bc Tracked-On: https://jira01.devtools.intel.com/browse/BP-250 Signed-off-by: Constantin Musca <constantin.musca@intel.com>
/hardware/bsp/intel/peripheral/sensors/mraa/SensorsHAL.cpp
|
2a67f2c7bad3e2a1fa11679c19d0d71c301fe6c1 |
|
08-Jan-2016 |
Constantin Musca <constantin.musca@intel.com> |
sensors: cleanup mraa sensor code Rename sensors/edison_arduino to sensors/mraa given that sensors HAL is not platform specific. It depends on the mraa hardware support. Move the Android.mk file to be hal.mk (requires recent change in device/generic/google). Change the LOCAL_MODULE use $(TARGET_DEVICE) BUG=none Change-Id: I2be3ac69ffa107e9787c163bf45010e5048f08ea Tracked-On: https://jira01.devtools.intel.com/browse/BP-121 Signed-off-by: Constantin Musca <constantin.musca@intel.com> Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
/hardware/bsp/intel/peripheral/sensors/mraa/SensorsHAL.cpp
|