platform/hal/backend/tm1/sensor-tm1.git
8 years agosensor-hal-tm1: version 1.0.1
kibak.yoon [Mon, 15 Feb 2016 10:30:41 +0000 (19:30 +0900)]
sensor-hal-tm1: version 1.0.1

Change-Id: Idaba7fcef331df058219a3807707139456451090
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agosensor-hal: rename sensor_handle_t to sensor_info_t
kibak.yoon [Mon, 15 Feb 2016 09:49:45 +0000 (18:49 +0900)]
sensor-hal: rename sensor_handle_t to sensor_info_t

Change-Id: I6df3bd8701794d5964d8330ac219d4abe7c47bc7
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agosensor-hal: move sensor_hal.h to sensor-hal-devel package
kibak.yoon [Sat, 13 Feb 2016 04:13:05 +0000 (13:13 +0900)]
sensor-hal: move sensor_hal.h to sensor-hal-devel package

Change-Id: I8695389a17dfbfe2a9d7a9461a137a935ddcfc34
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agosensor-hal: change the interface of set_attribute_*
kibak.yoon [Fri, 12 Feb 2016 06:36:21 +0000 (15:36 +0900)]
sensor-hal: change the interface of set_attribute_*

Change-Id: I0cda7289e9251f4ce794b8df0ef18c07f67e0f2a
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agosensorhub-hal: set the id as the library number
kibak.yoon [Fri, 12 Feb 2016 06:25:28 +0000 (15:25 +0900)]
sensorhub-hal: set the id as the library number

Change-Id: Ic4f39f627e24e5da5d2f75eaaff6e6082062c71e
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agosensor-hal: change the type of id to uint32_t
kibak.yoon [Fri, 12 Feb 2016 06:03:36 +0000 (15:03 +0900)]
sensor-hal: change the type of id to uint32_t

Change-Id: I27de063be69b3b253f244b61704fcaccc18aaf9e
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agosensor-hal-sensorhub: fix the bug caused by static member variable
kibak.yoon [Thu, 11 Feb 2016 14:19:25 +0000 (23:19 +0900)]
sensor-hal-sensorhub: fix the bug caused by static member variable

- static member variable has to be declared for using it.
  strangely std::vector variable is always okay regardless of a compile
  order if it is declared once anywhere. but std::map is not okay.
  dlopen() invokes the segmentation error when std::map variable is used.
  but if compile file order is changed, it doesn't have problem....
- because the problem about initializing static member variable, it is
  issued. so this patch just changes manager/controller to singleton class
  for removing the code that use static variables.
- now it is fixed.

Change-Id: I84777861e5afc374a2ceecbd4d420a90c8f2c1ef
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agosensor-hal: add interface of sensorhub
kibak.yoon [Fri, 5 Feb 2016 12:43:08 +0000 (21:43 +0900)]
sensor-hal: add interface of sensorhub

* it doesn't have specific implementation of sensorhub

Change-Id: I232ecff56f1a3c18eea8622c7655199da72b8408
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agosensor-hal-tm1: enable proximity sensor
kibak.yoon [Fri, 5 Feb 2016 12:41:01 +0000 (21:41 +0900)]
sensor-hal-tm1: enable proximity sensor

Change-Id: I569f88db90a82f5837b1f5b3eb11bc811eefdaa3
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agosensor-hal-tm1: modify Sensor HAL interface
kibak.yoon [Fri, 5 Feb 2016 12:35:52 +0000 (21:35 +0900)]
sensor-hal-tm1: modify Sensor HAL interface

+ clean up boilerplate

Change-Id: I1c79151d4ee26d39ac6ea31ab8c37e506f250bd6
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agosensor-hal-tm1: rename package name to sensor-hal-tm1
kibak.yoon [Fri, 5 Feb 2016 12:31:39 +0000 (21:31 +0900)]
sensor-hal-tm1: rename package name to sensor-hal-tm1

Change-Id: I282e3f6512d23b1ab32949c0bdd23b2f927959f7
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agosensor-hal-tm1: remove unused sensors on TM1
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
seonil kim [Wed, 3 Feb 2016 02:24:58 +0000 (18:24 -0800)]
Initial empty repository