platform/core/api/peripheral-io.git
7 years agoReplace checking validation of the pwm device and channel 99/129899/1
jino.cho [Thu, 18 May 2017 09:36:20 +0000 (18:36 +0900)]
Replace checking validation of the pwm device and channel

Change-Id: I13a2b3b14dec162e6abc140def5bb3c4000f9622
Signed-off-by: jino.cho <jino.cho@samsung.com>
7 years agoAdd pwm set_polarity & get_polarity functions 98/129898/1
jino.cho [Thu, 18 May 2017 06:47:53 +0000 (15:47 +0900)]
Add pwm set_polarity & get_polarity functions

Change-Id: Ia68fab71850f2ef0b68e6c3f22310dbb13484e8f
Signed-off-by: jino.cho <jino.cho@samsung.com>
7 years agoModify peripheral_gdbus_pwm.c 00/129800/1
jino.cho [Thu, 18 May 2017 06:38:42 +0000 (15:38 +0900)]
Modify peripheral_gdbus_pwm.c

- Change return type to peripheral_error_e
- Remove TODO comment

Change-Id: Iec750952c3d2ee827ef4a830b3bac81c9373068b
Signed-off-by: jino.cho <jino.cho@samsung.com>
7 years agoFix gdbus error log 96/129796/2
jino.cho [Thu, 18 May 2017 06:28:19 +0000 (15:28 +0900)]
Fix gdbus error log

Change-Id: Ib2831b01f1080dba1204940c43f23bd02278d98f
Signed-off-by: jino.cho <jino.cho@samsung.com>
7 years agoCheck validation of pwm handle in the peripheral_pwm_close() 85/129785/2
jino.cho [Thu, 18 May 2017 05:59:20 +0000 (14:59 +0900)]
Check validation of pwm handle in the peripheral_pwm_close()

Change-Id: I0b8ae08011188087819365a2dc5cd40bb6b14f39
Signed-off-by: jino.cho <jino.cho@samsung.com>
7 years agoRemove unused defines 84/129784/2
jino.cho [Thu, 18 May 2017 05:04:57 +0000 (14:04 +0900)]
Remove unused defines

Change-Id: Ic330c835875625d782db9cee8e9b6b957443dff9
Signed-off-by: jino.cho <jino.cho@samsung.com>
7 years agoTest function for uart API 59/128959/5
jino.cho [Fri, 12 May 2017 06:47:40 +0000 (15:47 +0900)]
Test function for uart API

The function reads data stream from uart port.

Change-Id: Ic85657939aaa8da4ed3914c9fa4e50388b81627b
Signed-off-by: jino.cho <jino.cho@samsung.com>
7 years agoChange data type for parameter to a boolean 64/129564/1
jino.cho [Wed, 17 May 2017 03:30:55 +0000 (12:30 +0900)]
Change data type for parameter to a boolean

The parameter('enable') have only two state just like enabled/disabled.
Therefore, change it to a boolean.

Change-Id: Icefe77a4b62d3e63b882c9106a48134f9036fc16
Signed-off-by: jino.cho <jino.cho@samsung.com>
7 years agoChange argument of pwm gdbus method 68/129468/3
jino.cho [Tue, 16 May 2017 11:49:28 +0000 (20:49 +0900)]
Change argument of pwm gdbus method

- The pwm methods will pass handle instead of device informations.
- The pwm enable(set/get) functions were modified.

Change-Id: I54aa6444f6d22f1ba9ee1bf30391d2c04ff9a4f7
Signed-off-by: jino.cho <jino.cho@samsung.com>
7 years agoChange parameter name dev to pwm 67/129467/2
jino.cho [Tue, 16 May 2017 10:55:27 +0000 (19:55 +0900)]
Change parameter name dev to pwm

Change-Id: Ia015376523dcc505d355b22b9d40eaa51a0308bc
Signed-off-by: jino.cho <jino.cho@samsung.com>
7 years agoRearrange the order of pwm API functions 66/129466/2
jino.cho [Tue, 16 May 2017 10:29:20 +0000 (19:29 +0900)]
Rearrange the order of pwm API functions

Change-Id: I2adeabd3eb2b085fc2e672e9f4c66436b9acbe30
Signed-off-by: jino.cho <jino.cho@samsung.com>
7 years agoReturn pwm handle through pointer argument 65/129465/2
jino.cho [Tue, 16 May 2017 10:16:42 +0000 (19:16 +0900)]
Return pwm handle through pointer argument

Change-Id: I3b62a841edaafe2298592132cb2fdd8ed23a9694
Signed-off-by: jino.cho <jino.cho@samsung.com>
7 years agoRename peripheral_pwm_context_h to peripheral_pwm_h 64/129464/1
jino.cho [Tue, 16 May 2017 12:02:51 +0000 (21:02 +0900)]
Rename peripheral_pwm_context_h to peripheral_pwm_h

Change-Id: I0e39d439d1095502b158b26a8be140aa3cad98fa
Signed-off-by: jino.cho <jino.cho@samsung.com>
7 years agoAdd APIs and functions for uart 58/128958/3
jino.cho [Fri, 12 May 2017 06:43:49 +0000 (15:43 +0900)]
Add APIs and functions for uart

This patch support uart device. And, it should work properly
if the patch for peripheral-bus is applied together.

Change-Id: I79777883a705824af7bf9329f3470bd51ffdfb7d
Signed-off-by: jino.cho <jino.cho@samsung.com>
7 years agoAdd description for uart APIs 57/128957/4
jino.cho [Fri, 12 May 2017 06:34:54 +0000 (15:34 +0900)]
Add description for uart APIs

This patch Adds description for uart APIs and modify uart handle.

Change-Id: I0f5387ab0441cf822cfdc792ce4da28dfef86de4
Signed-off-by: jino.cho <jino.cho@samsung.com>
7 years agoRefactor gdbus interface codes 99/128299/2
Hyeongsik Min [Mon, 8 May 2017 11:15:55 +0000 (20:15 +0900)]
Refactor gdbus interface codes

Split peripheral_dbus.c into separate files per low-level interface.

Change-Id: Ifdc6bba7d3d4628693e041882ee88b39c763629f
Signed-off-by: Hyeongsik Min <hyeongsik.min@samsung.com>
7 years agoWorng method was called 67/128267/2 accepted/tizen/unified/20170510.013101 submit/tizen/20170508.093623 tizen_4.0.m1_release
jino.cho [Mon, 8 May 2017 08:26:27 +0000 (17:26 +0900)]
Worng method was called

replace gpio_proxy_deinit() to i2c_proxy_deinit()

Change-Id: I7df8f0213b5e129efe6400d60d1b990e189e7bfd
Signed-off-by: jino.cho <jino.cho@samsung.com>
7 years agoChange argument name and type of i2c gdbus method 28/128128/1 submit/tizen/20170508.033648
Hyeongsik Min [Sun, 7 May 2017 09:03:51 +0000 (18:03 +0900)]
Change argument name and type of i2c gdbus method

The i2c methods will pass handle instead of file descriptor.

Change-Id: Ia370c2fe4f3284e8d0b8925cc7bd4bb64c5f0df4
Signed-off-by: Hyeongsik Min <hyeongsik.min@samsung.com>
7 years agoSupport gpio interrupt 40/127640/4
jino.cho [Thu, 20 Apr 2017 01:33:55 +0000 (10:33 +0900)]
Support gpio interrupt

The gpio interrupt should work properly if the patch for
peripheral-bus is applied together.

Change-Id: I1c7b0b9db563ea3b3fd222bb4b05b1dbc7b279c8
Signed-off-by: jino.cho <jino.cho@samsung.com>
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