platform/core/api/peripheral-io.git
7 years agoDefine condition checking macros(RET_IF) 14/127414/1
Hyeongsik Min [Wed, 26 Apr 2017 11:50:23 +0000 (20:50 +0900)]
Define condition checking macros(RET_IF)

Change-Id: I5b39db783a6499c1c5429faa8a5777032e743306
Signed-off-by: Hyeongsik Min <hyeongsik.min@samsung.com>
7 years agoDecrease the reference count of the dbus proxy 68/127268/2
jino.cho [Thu, 27 Apr 2017 01:54:04 +0000 (10:54 +0900)]
Decrease the reference count of the dbus proxy

The resource will be destroyed when its reference count drops to
zero.

Change-Id: Ibaca7da33eb6538b9c1928c5b8ea2b06eaf03245
Signed-off-by: jino.cho <jino.cho@samsung.com>
7 years agoUpdate package version to 0.0.3 81/126781/2 accepted/tizen/unified/20170426.200824 submit/tizen/20170426.072552
Hyeongsik Min [Tue, 25 Apr 2017 05:26:16 +0000 (14:26 +0900)]
Update package version to 0.0.3

Change-Id: I81b41fb565e5b83c2e680e892503e44b033ab200
Signed-off-by: Hyeongsik Min <hyeongsik.min@samsung.com>
7 years agoRemove i2c_set_address() API and rearrange header 79/126779/2
Hyeongsik Min [Tue, 25 Apr 2017 05:13:52 +0000 (14:13 +0900)]
Remove i2c_set_address() API and rearrange header

 - i2c_open() will pass bus and address argument together.
 - Add description for i2c APIs and fix typo.

Change-Id: I1313fbf1fae23d828e1ac001d20f880747404109
Signed-off-by: Hyeongsik Min <hyeongsik.min@samsung.com>
7 years agoAdd parameters to the gpio open method 29/126929/1
jino.cho [Tue, 25 Apr 2017 09:10:09 +0000 (18:10 +0900)]
Add parameters to the gpio open method

- add parameters to the gpio open method.
- update the gpio handle when the gpio attributes are changed.

Change-Id: I2c2ba69605bcc85c65beeb512c32a4b5d1453f18
Signed-off-by: jino.cho <jino.cho@samsung.com>
7 years agoFix gdbus interface prefix and typo in xml 22/126522/3
Hyeongsik Min [Mon, 24 Apr 2017 04:11:26 +0000 (13:11 +0900)]
Fix gdbus interface prefix and typo in xml

Changed gdbus interface prefix to 'org.tizen.peripheral_io'.

Change-Id: Iab717d474a9c01011fe08268999d7849433849b4
Signed-off-by: Hyeongsik Min <hyeongsik.min@samsung.com>
7 years agoChange gdbus interface by using gdbus-codegen 35/126435/5
Sungguk Na [Fri, 21 Apr 2017 10:49:11 +0000 (19:49 +0900)]
Change gdbus interface by using gdbus-codegen

Change-Id: I8706817d7ad17952823fae1d1475b4dc1570f3e1
Signed-off-by: Sungguk Na <sungguk.na@samsung.com>
7 years agoReturn i2c handle through pointer argument 36/126036/3
Hyeongsik Min [Thu, 20 Apr 2017 02:05:08 +0000 (11:05 +0900)]
Return i2c handle through pointer argument

Change-Id: If65c0330fcd61edafea318018144d463fa1d559f
Signed-off-by: Hyeongsik Min <hyeongsik.min@samsung.com>
7 years agofix validation check of edge mode 23/126023/2
jino.cho [Thu, 20 Apr 2017 08:19:05 +0000 (17:19 +0900)]
fix validation check of edge mode

This patch fixed a value of validation check to the max value of
enum type.
PERIPHERAL_GPIO_EDGE_FALLING -> PERIPHERAL_GPIO_EDGE_BOTH

Change-Id: I6199f51f007b972a44f079f5d13cfd929963df00
Signed-off-by: jino.cho <jino.cho@samsung.com>
7 years agoRename peripheral_i2c_context_h to peripheral_i2c_h 35/126035/2
Hyeongsik Min [Wed, 19 Apr 2017 10:53:20 +0000 (19:53 +0900)]
Rename peripheral_i2c_context_h to peripheral_i2c_h

Change-Id: I533ee1772cdd9b055deac139226bdac3d04d5889
Signed-off-by: Hyeongsik Min <hyeongsik.min@samsung.com>
7 years agoRearrange the order of gpio API functions 34/126034/2
Hyeongsik Min [Wed, 19 Apr 2017 10:36:34 +0000 (19:36 +0900)]
Rearrange the order of gpio API functions

Change-Id: I3cfbc14654c35e47d141bc43e41507906a36242d
Signed-off-by: Hyeongsik Min <hyeongsik.min@samsung.com>
7 years agoRemove i2c_set_frequency API 08/125808/1
Hyeongsik Min [Tue, 18 Apr 2017 06:55:45 +0000 (15:55 +0900)]
Remove i2c_set_frequency API

Remove the API and related enum type because ioctl for i2c frequency setting
is not defiend in kernel.

Change-Id: Ib151fdcfbcb5978ef4d88350e05ac9f09252b959
Signed-off-by: Hyeongsik Min <hyeongsik.min@samsung.com>
7 years agoImport source codes from iotbus 16/125416/2
Hyeongsik Min [Mon, 17 Apr 2017 07:41:13 +0000 (16:41 +0900)]
Import source codes from iotbus

- Import client API source codes from below
  https://github.com/tizen-artik/iotbus

- Rename the pacakge to peripheral-io
- Use 'system' bus as dbus bus type
- Fix coding style
- Fix Svace issues

Change-Id: If1e90777d57f05411bb995fbd0ba3b4d09ff5c7f
Signed-off-by: Hyeongsik Min <hyeongsik.min@samsung.com>
7 years agoInitial empty repository master
Tizen Infrastructure [Mon, 10 Apr 2017 23:38:11 +0000 (16:38 -0700)]
Initial empty repository