summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
kibak.yoon [Tue, 26 Sep 2017 02:05:43 +0000 (11:05 +0900)]
Merge branch 'tizen' into tizen_4.0
* tizen:
version up 0.1.0
api: added parameter check statement.
naming: added static keword at static variable.
api: sync functions name with changed apis name.
adc: the adc interface is not supported.
api: modified with new API set.
test: remove console local test app.
Fix Security Svace issue
Change-Id: I420baf5d8ea23e4b2eb2858fb96a309f29f4c076
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
kibak.yoon [Tue, 26 Sep 2017 01:59:53 +0000 (10:59 +0900)]
version up 0.1.0
Change-Id: I9fa1f3932c383ebe33951123a47c025b9e3ac57b
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
Segwon [Thu, 21 Sep 2017 07:37:46 +0000 (16:37 +0900)]
api: added parameter check statement.
Signed-off-by: Segwon <segwon.han@samsung.com>
Change-Id: I610bba87b751637c1443e7cd6b1ba83a25b8f246
Segwon [Thu, 21 Sep 2017 03:21:38 +0000 (12:21 +0900)]
naming: added static keword at static variable.
Signed-off-by: Segwon <segwon.han@samsung.com>
Change-Id: Ia8e14e8164311f7b40bb146a185eb08d8aabafa7
Segwon [Thu, 21 Sep 2017 03:12:41 +0000 (12:12 +0900)]
api: sync functions name with changed apis name.
Signed-off-by: Segwon <segwon.han@samsung.com>
Change-Id: I12c8dcc1a850b182b791674d0fe4891f74d3717a
Segwon [Thu, 21 Sep 2017 00:51:33 +0000 (09:51 +0900)]
adc: the adc interface is not supported.
Signed-off-by: Segwon <segwon.han@samsung.com>
Change-Id: I47b529fecb5820fcb633d990b76ee3d01f1aa74f
Segwon [Thu, 24 Aug 2017 10:39:51 +0000 (19:39 +0900)]
api: modified with new API set.
- ADC not supported
- Provides get list API to get necessary for open APIs
- Remove unnecessary and uncertain APIs
- Terminology unification
- Add peripheral_io_doc.h for doxygen
- Add feature key and privilege level to doxygen
Signed-off-by: Segwon <segwon.han@samsung.com>
Change-Id: Ie104753f270fdcc37df62e538c9ee06d254c2db2
Segwon [Thu, 21 Sep 2017 00:24:11 +0000 (09:24 +0900)]
test: remove console local test app.
- It will be replace to new something.
- The reason is many apis changed.
Signed-off-by: Segwon <segwon.han@samsung.com>
Change-Id: I142c413ff220aca1752a701998117d39dfedf22d
jino.cho [Tue, 12 Sep 2017 07:45:06 +0000 (16:45 +0900)]
Fix Security Svace issue
This patch fixes security issue from SVACE.
"WID:
31524889 Casting 'num' [ unsigned int *] to _Bool * makes
a pointer with a different pointee size. It can lead to
out-of-bounds memory access when dereferenced."
Change-Id: If3620630eaa8607d132da751f5ce2dc485b69ce4
Signed-off-by: jino.cho <jino.cho@samsung.com>
jino.cho [Tue, 12 Sep 2017 07:45:06 +0000 (16:45 +0900)]
Fix Security Svace issue
This patch fixes security issue from SVACE.
"WID:
31524889 Casting 'num' [ unsigned int *] to _Bool * makes
a pointer with a different pointee size. It can lead to
out-of-bounds memory access when dereferenced."
Change-Id: If3620630eaa8607d132da751f5ce2dc485b69ce4
Signed-off-by: jino.cho <jino.cho@samsung.com>
Hyeongsik Min [Wed, 16 Aug 2017 12:49:16 +0000 (21:49 +0900)]
Add PIE option to peripheral-io-test
Change-Id: I6e0669b4b0a7751d82ffd411006a1f33a9842877
Signed-off-by: Hyeongsik Min <hyeongsik.min@samsung.com>
Hyeongsik Min [Tue, 1 Aug 2017 01:19:38 +0000 (10:19 +0900)]
Add awk as a BuildRequries
In order to avoid possible build break, add BuildRequies for awk
explicitly.
Change-Id: I0a8ba8be024af0453f1483bb1468df0070fa657c
Signed-off-by: Hyeongsik Min <hyeongsik.min@samsung.com>
Hyeongsik Min [Mon, 17 Jul 2017 12:48:04 +0000 (21:48 +0900)]
Add MMA7455 sample dirver codes
This moves MMA7455 driver codes to sample directory after refactoring
it.
Change-Id: Idfa9b617f5081f7ea68a236b913ec1b97ff02a7a
Signed-off-by: Hyeongsik Min <hyeongsik.min@samsung.com>
jino.cho [Thu, 13 Jul 2017 04:26:04 +0000 (13:26 +0900)]
Update package version to 0.0.5
Change-Id: Ic3bf9cde4c19f30ede23d2f713ed349b4f865c3b
Signed-off-by: jino.cho <jino.cho@samsung.com>
jino.cho [Thu, 13 Jul 2017 02:03:18 +0000 (11:03 +0900)]
Add test code for HC-SR04 ultrasonic raging module
Change-Id: I132f2b25ed977181dbffd06f9570e0db4510cb81
Signed-off-by: jino.cho <jino.cho@samsung.com>
jino.cho [Tue, 11 Jul 2017 11:13:33 +0000 (20:13 +0900)]
Add a struct for gpio interrupt information
This patch adds gpio isr callback data deliverd via gpio_isr_cb().
A gpio isr callback data is delivered as a structure, which contains
the pin number, the pin value, and the timestamp(ms) when the gpio
interrupt occurred.
Change-Id: Iee60dc4d33fe856d46fda83c487ed27d8d1fadae
Signed-off-by: jino.cho <jino.cho@samsung.com>
Hyeongsik Min [Wed, 14 Jun 2017 09:47:10 +0000 (18:47 +0900)]
Improve preset test(I2C, PWM)
- Get user input for PWM device and channel number.
- Read 2 bytes from GY30 light sensor.
Change-Id: I2225119d7ae21e8fd7ebe9bd794c04afe0f40dd1
Signed-off-by: Hyeongsik Min <hyeongsik.min@samsung.com>
Hyeongsik Min [Tue, 13 Jun 2017 09:57:05 +0000 (18:57 +0900)]
Add log messages to API function
- Add log message for failure cases.
- Improve parameter validation with log messages.
Change-Id: I21f99c8fbbe1f50032da8933dbb92b6b21faad11
Signed-off-by: Hyeongsik Min <hyeongsik.min@samsung.com>
Hyeongsik Min [Tue, 13 Jun 2017 04:12:05 +0000 (13:12 +0900)]
Remove unnecessary EOL in log message
Change-Id: Ibd4a653e4ef1b77a13c0efbb866ade6249db04ff
Signed-off-by: Hyeongsik Min <hyeongsik.min@samsung.com>
jino.cho [Thu, 1 Jun 2017 01:32:26 +0000 (10:32 +0900)]
Add API for the adc device
This patch support the adc device. And, it should work properly
if the patch for peripheral-bus is applied together.
Change-Id: Iac0b0d3421634443ef2de95268b748ab098d5170
Signed-off-by: jino.cho <jino.cho@samsung.com>
Hyeongsik Min [Thu, 8 Jun 2017 07:38:07 +0000 (16:38 +0900)]
Replace error code from ENODEV with ENXIO
Change error code ENODEV to ENXIO for the case of no such device, because
ENODEV is not defined in tizen_error.h and is also suitable for the
case.
Change-Id: I5e0f6d17bc9af720fd6d15862aaa2fd8da259ad1
Signed-off-by: Hyeongsik Min <hyeongsik.min@samsung.com>
jino.cho [Thu, 1 Jun 2017 07:18:28 +0000 (16:18 +0900)]
Fix type mismatch issue
The type size of bool and gboolean are different.
Therefore, the pointer parameter should not be used directly as
a argument of gdbus functions.
Change-Id: I6ccccab228ca5fa57bee6db02e49bbe44a15eaef
Signed-off-by: jino.cho <jino.cho@samsung.com>
Hyeongsik Min [Thu, 1 Jun 2017 06:59:17 +0000 (15:59 +0900)]
Update package version to 0.0.4
Change-Id: Id21d404d52630822966c60442266c5d7337f77a8
Signed-off-by: Hyeongsik Min <hyeongsik.min@samsung.com>
Hyeongsik Min [Thu, 1 Jun 2017 04:05:45 +0000 (13:05 +0900)]
Improve I2C test by using new APIs
Change-Id: I06302e2c4c633a1746d58384554c7ba0e59e90b0
Signed-off-by: Hyeongsik Min <hyeongsik.min@samsung.com>
Hyeongsik Min [Thu, 1 Jun 2017 02:32:33 +0000 (11:32 +0900)]
Add new APIs for I2C smbus transaction
This patch adds below I2C APIs.
- peripheral_i2c_read_register_byte()
- peripheral_i2c_write_register_byte()
- peripheral_i2c_read_register_word()
- peripheral_i2c_write_register_word()
igned-off-by: Hyeongsik Min <hyeongsik.min@samsung.com>
Change-Id: Ic0e96b4225b6596556b670487c905e6c77c4039c
jino.cho [Thu, 25 May 2017 10:50:58 +0000 (19:50 +0900)]
Add APIs and functions for the spi device
This patch support the spi device. And, it should work properly
if the patch for peripheral-bus is applied together.
Change-Id: Ia0094e516d5dff9fba1e2d40170dc7cce844d347
Signed-off-by: jino.cho <jino.cho@samsung.com>
Hyeongsik Min [Tue, 30 May 2017 11:05:13 +0000 (20:05 +0900)]
Improve MMA7455 Accelerometer test(I2C)
If it receives gpio pin number for interrupt, the test will register isr
function to react to sensor interrupt.
Change-Id: I192db1ca642890672f5b216dbddb80cbb98f65d5
Signed-off-by: Hyeongsik Min <hyeongsik.min@samsung.com>
Hyeongsik Min [Tue, 30 May 2017 10:13:16 +0000 (19:13 +0900)]
Fix leak issue after reading byte array
Calling g_variant_unref() was missing in the routine.
Change-Id: Ie7cdfe86cab92c727397ddf31a062d8707cc65db
Signed-off-by: Hyeongsik Min <hyeongsik.min@samsung.com>
Hyeongsik Min [Tue, 30 May 2017 02:25:18 +0000 (11:25 +0900)]
Add i2c_write_byte, i2c_read_byte API
In order to provide for single byte communication, this patch adds
peripheral_i2c_write_byte() and peripheral_i2c_read_byte() APIs.
Change-Id: I0b1404fc1571f6d21ab7bfa5ceb9a76cb8a3e936
Signed-off-by: Hyeongsik Min <hyeongsik.min@samsung.com>
Hyeongsik Min [Mon, 29 May 2017 10:27:55 +0000 (19:27 +0900)]
Add sub menu for preset test
Change-Id: I5dd21166781377d15df3535be6fb2212f886203c
Signed-off-by: Hyeongsik Min <hyeongsik.min@samsung.com>
Hyeongsik Min [Thu, 25 May 2017 11:51:33 +0000 (20:51 +0900)]
Add preset test for MMA7455 accel. sensor
Change-Id: I51ed963015963f48d8b78db80a4ff6c4ac0bfc6f
Signed-off-by: Hyeongsik Min <hyeongsik.min@samsung.com>
jino.cho [Thu, 18 May 2017 10:25:15 +0000 (19:25 +0900)]
Add description for pwm APIs
This patch Adds description for pwm APIs.
Change-Id: I1dc40bf40e4405616c5f719d905680bf31d783e0
Signed-off-by: jino.cho <jino.cho@samsung.com>
Sungguk Na [Thu, 25 May 2017 10:34:13 +0000 (19:34 +0900)]
Change argument of gpio gdbus method
- The gpio methods will pass handle instead of device informations.
- Some arguments of gpio handle are removed.
Change-Id: I6a0910cbd5e03878c17e5c6426850dbd2865ada4
Signed-off-by: Sungguk Na <sungguk.na@samsung.com>
Hyeongsik Min [Wed, 24 May 2017 07:31:03 +0000 (16:31 +0900)]
Add GPIO unit test
This patch also implements menu for each tc module and utilizes glib
IO channel to receive user input.
Change-Id: Iedce7feab1887c822b172c30aba58b0f0eab959c
Signed-off-by: Hyeongsik Min <hyeongsik.min@samsung.com>
Sungguk Na [Thu, 25 May 2017 05:14:22 +0000 (14:14 +0900)]
Additional fix to handle reference count of proxy
Proxy object should be NULL after proxy deinit,
but g_object_unref just make free the object and do not make it NULL
Change-Id: I5ca2c14606527f5610181d6470d099fcf681c8cd
Signed-off-by: Sungguk Na <sungguk.na@samsung.com>
Hyeongsik Min [Mon, 22 May 2017 11:10:43 +0000 (20:10 +0900)]
Fix reference counting bug
Change-Id: If8be15c2815a11cc63d477e0af7fa79729a62966
Signed-off-by: Hyeongsik Min <hyeongsik.min@samsung.com>
Hyeongsik Min [Fri, 19 May 2017 10:22:11 +0000 (19:22 +0900)]
Fix possible memory leak in peripheral_pwm_close
Free pwm handle regardless of return value of
peripheral_gdbus_pwm_close().
Change-Id: Iaaa85b757f96851eac186c11efbdd8fa8e32bb98
Signed-off-by: Hyeongsik Min <hyeongsik.min@samsung.com>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
Tizen Infrastructure [Mon, 10 Apr 2017 23:38:11 +0000 (16:38 -0700)]
Initial empty repository