platform/adaptation/tm1/sensor-hal-tm1.git
8 years agosensor-hal-tm1: remove unused sensors on TM1 74/58974/6
kibak.yoon [Fri, 5 Feb 2016 12:19:36 +0000 (21:19 +0900)]
sensor-hal-tm1: remove unused sensors on TM1

Change-Id: I59637f65afd66231ac14bc6f0cb63ebdb2b12a8c
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agosensor-hal: unify code style for class brackets 59/58759/1
Mu-Woong Lee [Wed, 3 Feb 2016 07:49:47 +0000 (16:49 +0900)]
sensor-hal: unify code style for class brackets

Change-Id: I1f5deb4405d2a38ed2a4a5a6c3ea77a94f0f487b
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agosensor-hal: add including stdbool.h 58/58758/1
Mu-Woong Lee [Wed, 3 Feb 2016 07:49:35 +0000 (16:49 +0900)]
sensor-hal: add including stdbool.h

Change-Id: I981c78e96639b2f2066a6b6e8f6f8c307f2f6ec0
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agosensor-hal: modify HAL interface for batching 57/58757/1
Mu-Woong Lee [Wed, 3 Feb 2016 07:49:21 +0000 (16:49 +0900)]
sensor-hal: modify HAL interface for batching

* int get_data(id, data, length)
  - return value: the remaining count of data

Change-Id: Ifa952443a115531b8ecd2c08b469a2ffe7dfb8cf
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agosensor-hal: remove vector in sensro HAL interface 56/58756/1
Mu-Woong Lee [Wed, 3 Feb 2016 07:49:10 +0000 (16:49 +0900)]
sensor-hal: remove vector in sensro HAL interface

* instead of using std::vector, use point array for interface

Change-Id: Ib9e156fef47315f8faeb741389f7c1b9d8ac9419
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agosensor-hal: refactoring sensor HAL interface 55/58755/1
Mu-Woong Lee [Wed, 3 Feb 2016 07:48:58 +0000 (16:48 +0900)]
sensor-hal: refactoring sensor HAL interface

* remove useless functions and consolidate functions to 1 function
* hal-id: int32_t -> int16_t
* common structures are defined in sensor_hal.h

Change-Id: Ie1d8f32a15ebf3a851e43b07972200647ce74dfa
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agosensor-hal: clean up the code and dependency 54/58754/1
Mu-Woong Lee [Wed, 3 Feb 2016 07:48:45 +0000 (16:48 +0900)]
sensor-hal: clean up the code and dependency

* disable proximity sensor HAL for refactoring
* add macro.h for common macro

Change-Id: I6fa699ca78492f2107484920d519935744d0c4db
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agosensor-hal: change sensor_device_base to util class 53/58753/1
Mu-Woong Lee [Wed, 3 Feb 2016 07:48:33 +0000 (16:48 +0900)]
sensor-hal: change sensor_device_base to util class

Change-Id: Ia4ac5e8dbae1764c1dd260ea748f24442f851f6c
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agosensor-hal: re-organize build procedure 52/58752/1
Mu-Woong Lee [Wed, 3 Feb 2016 07:48:13 +0000 (16:48 +0900)]
sensor-hal: re-organize build procedure

Change-Id: I7e34d8f61cc69c2c8a021fcb9969f48882aa048e
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agosensor-hal: rename interface of HAL for managing it easily 51/58751/1
Mu-Woong Lee [Wed, 3 Feb 2016 07:47:57 +0000 (16:47 +0900)]
sensor-hal: rename interface of HAL for managing it easily

Change-Id: Icc2327a0c7a34e45560abb9b5ddf94eec9a2758c
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agosensor-hal: remove xml dependency and xml-related code 50/58750/1
Mu-Woong Lee [Wed, 3 Feb 2016 07:47:36 +0000 (16:47 +0900)]
sensor-hal: remove xml dependency and xml-related code

- remove xml dependency and clean up code
- sensor-hal: add sensor_properties_s to sensor_handle_t

Change-Id: I7452c08bd3cf793dd08a6ee801722ff0ebc3c5b6
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agosensor-plugins-tm1: enable proximity sensor HAL 49/58749/1
Mu-Woong Lee [Wed, 3 Feb 2016 07:47:24 +0000 (16:47 +0900)]
sensor-plugins-tm1: enable proximity sensor HAL

Change-Id: Ie0c62492dfe819e9f34e1c7e6328d4bd2f1cfeb4
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agosensor-hal: add HAL interface for sensor_event_t 48/58748/1
Mu-Woong Lee [Wed, 3 Feb 2016 07:47:09 +0000 (16:47 +0900)]
sensor-hal: add HAL interface for sensor_event_t

* added sensor_get_sensor_event()
* implemented sensor_get_sensor_event() in accelerometer HAL

Change-Id: Id0555ced2da84b1916dea9fbea7074179e430dc8
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agosensor-hal: reorderring sensor hal types for managing them easily 47/58747/1
Mu-Woong Lee [Wed, 3 Feb 2016 07:46:56 +0000 (16:46 +0900)]
sensor-hal: reorderring sensor hal types for managing them easily

Change-Id: I66f9475e57a45086365562d98a5e2eb6442e1f3f
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agosensor-plugin-tm1: modify HAL interface for support sensorhub HAL 46/58746/1
Mu-Woong Lee [Wed, 3 Feb 2016 07:46:38 +0000 (16:46 +0900)]
sensor-plugin-tm1: modify HAL interface for support sensorhub HAL

* HAL has to be based on 1 device(it means that it is looking at 1 node)
* If the device manufacturer make a HAL only, he can operate the device.

* Interface of HAL has to be more considered.

* Implementation of accelerometer HAL has to be cleaned
  - sensorhub-related code is unnecessary on the reference target(TM1)
  - managing of sensor config should be refactored

Change-Id: I05bb4fbc837e2e6836026b95da6fdd9c4b9e6363
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agosensor-plugin-tm1: clean up the code 45/58745/1
Mu-Woong Lee [Wed, 3 Feb 2016 07:46:24 +0000 (16:46 +0900)]
sensor-plugin-tm1: clean up the code

clean up & remove the useless code

Change-Id: I148041ba2d798aeb9022ac9b8f36dd58f3c00810
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agosensor-plugin-tm1: remove useless code 44/58744/1
Mu-Woong Lee [Wed, 3 Feb 2016 07:46:11 +0000 (16:46 +0900)]
sensor-plugin-tm1: remove useless code

Change-Id: I3ea44e720be1cbd77de8e71f915f110dc7d98fb7
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agosensor-plugin-tm1: modify wrong raw_data_unit of accelerometer 43/58743/1
Mu-Woong Lee [Wed, 3 Feb 2016 07:45:57 +0000 (16:45 +0900)]
sensor-plugin-tm1: modify wrong raw_data_unit of accelerometer

because accelerometer is set to 4G from kernel driver,
raw_data_unit has to be changed.

* IMHO, sensor fw should received this setting information from kernel.
  I will check whether it is available or not. (from IIO interface)

Change-Id: I7fa98b51e892be8839a5246816ab29ad9e1ec66e
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agosensor-plugin-tm1: remove useless lock 42/58742/1
Mu-Woong Lee [Wed, 3 Feb 2016 07:45:42 +0000 (16:45 +0900)]
sensor-plugin-tm1: remove useless lock

HAL developer doesn't need to consider lock mechanism

* It is started to refactoring sensor HAL for supporting sensorhub
from this patch.

Change-Id: Ib594af73a741d1805f2a35e995ccebd110e89ddc
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agoExclude from all builds except 32bit arm mobile build
Mu-Woong Lee [Wed, 3 Feb 2016 07:39:07 +0000 (16:39 +0900)]
Exclude from all builds except 32bit arm mobile build

Change-Id: Iad9cfe461b1b616483ac86245766711e2331edd6
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agosensor-plugin-tm1: change sprintf to snprintf
Mu-Woong Lee [Wed, 3 Feb 2016 07:38:52 +0000 (16:38 +0900)]
sensor-plugin-tm1: change sprintf to snprintf

Change-Id: Ifcaa1c010fbd7bef51246e1bec30450f7e19390a
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agoRe-package sensor-hal to sensor-plugins-tm1
Mu-Woong Lee [Wed, 3 Feb 2016 07:38:38 +0000 (16:38 +0900)]
Re-package sensor-hal to sensor-plugins-tm1

Change-Id: I0f0e95eaf7c908b98cbe77b0863f8c86f22004ba
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agosensor-plugin-tm1: plugins for tm1
Mu-Woong Lee [Wed, 3 Feb 2016 07:38:15 +0000 (16:38 +0900)]
sensor-plugin-tm1: plugins for tm1

supported sensors on TM1:
  accelerometer
  proximity

code is copied from /platform/adaptation/samsung_exynos/sensor-plugins

Change-Id: I13f945bdd5eef5dc559268e5f543ba24323fb751
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agoInitial empty repository master
seonil kim [Wed, 3 Feb 2016 02:24:58 +0000 (18:24 -0800)]
Initial empty repository