rtos/tinyara.git
7 years agoFix the Readme about Kconfig-frontend Installation explanation
jc_.kim [Fri, 28 Jul 2017 00:34:46 +0000 (09:34 +0900)]
Fix the Readme about Kconfig-frontend Installation explanation

7 years agoMerge pull request #308 from sunghan-chang/master
Taejun-Kwon [Wed, 26 Jul 2017 09:59:43 +0000 (18:59 +0900)]
Merge pull request #308 from sunghan-chang/master

add/modify README

7 years agoMerge pull request #315 from junmin-kim/apps_typo
Taejun-Kwon [Wed, 26 Jul 2017 09:57:52 +0000 (18:57 +0900)]
Merge pull request #315 from junmin-kim/apps_typo

Fix typo in apps/shell/README.md

7 years agoFix typo in apps/shell/README.md
junmin kim [Tue, 25 Jul 2017 07:48:26 +0000 (00:48 -0700)]
Fix typo in apps/shell/README.md

7 years agoMerge pull request #314 from jeongarmy/fs_tc
Taejun-Kwon [Mon, 24 Jul 2017 01:42:22 +0000 (10:42 +0900)]
Merge pull request #314 from jeongarmy/fs_tc

Fix bugs in fs dup2 tc

7 years agoAdd ommitted assignment for fd in dup2 tc
Ahreum Jeong [Thu, 29 Jun 2017 05:53:26 +0000 (14:53 +0900)]
Add ommitted assignment for fd in dup2 tc
Although negative tc is failed below, fd1 can be positive value because of tc success before
So fd should be assigned as negative value

7 years agoMerge pull request #307 from lokeshbv/libc_math
Juitem JoonWoo Kim [Mon, 24 Jul 2017 00:58:55 +0000 (09:58 +0900)]
Merge pull request #307 from lokeshbv/libc_math

libc/math: Fix for wrong ouput in ceil() API

7 years agoMerge pull request #306 from kyungse/kernel_appconfig
sunghan-chang [Fri, 21 Jul 2017 06:33:54 +0000 (15:33 +0900)]
Merge pull request #306 from kyungse/kernel_appconfig

Add appconfig command for making app config metafile

7 years agoAdd omitted APPNAME and FUNCNAME in apps/examples/*/Makefile
root [Fri, 21 Jul 2017 01:32:03 +0000 (10:32 +0900)]
Add omitted APPNAME and FUNCNAME in apps/examples/*/Makefile

7 years agoAdd appconfig command for making app config metafile
root [Thu, 20 Jul 2017 08:28:59 +0000 (17:28 +0900)]
Add appconfig command for making app config metafile

7 years agoMerge pull request #302 from pradeepns85/use_secure_snprintf
sunghan-chang [Fri, 21 Jul 2017 00:31:52 +0000 (09:31 +0900)]
Merge pull request #302 from pradeepns85/use_secure_snprintf

Replace sprintf with secure API snprintf for security reasons

7 years agoAdd/modify README to show how to make and download ROMFS image
sunghan [Thu, 20 Jul 2017 11:17:27 +0000 (20:17 +0900)]
Add/modify README to show how to make and download ROMFS image

7 years agolibc/math: Fix for wrong ouput in ceil() API
Lokesh B V [Thu, 20 Jul 2017 10:50:24 +0000 (16:20 +0530)]
libc/math: Fix for wrong ouput in ceil() API

Ex:for input x = 1.0, the ouput should be 1.0, but the ouput was 2.0.
This wrong ouput is fixed.

Signed-off-by: Lokesh B V <lokesh.bv@partner.samsung.com>
7 years agoMerge pull request #305 from manoharahk/sidk_s5jt200_romfs_dev
sunghan-chang [Thu, 20 Jul 2017 08:20:54 +0000 (17:20 +0900)]
Merge pull request #305 from manoharahk/sidk_s5jt200_romfs_dev

Sidk s5jt200 romfs dev

7 years agoadd contents for README
sunghan [Thu, 20 Jul 2017 07:56:04 +0000 (16:56 +0900)]
add contents for README

7 years agoReplace sprintf with secure API snprintf for security reasons
pradeep.ns [Wed, 19 Jul 2017 18:00:16 +0000 (23:30 +0530)]
Replace sprintf with secure API snprintf for security reasons

Usage of sprintf can help hackers to cause buffer overflows and even
developers may unnotice the size of the destination buffer before
passing the formatted string and thus cause buffer overflow scenarios.
It's wise to use snprintf to avoid any such scenarios.

This patch takes care of sprintf usage inside OS folder only.

Signed-off-by: pradeep.ns <pradeep.ns@samsung.com>
7 years agosidk_s5jt200 : support romfs image download
Manohara HK [Wed, 28 Jun 2017 05:52:23 +0000 (11:22 +0530)]
sidk_s5jt200 : support romfs image download

1. This patch adds support for creating romfs.img and
   creates partition_map.cfg.

2. partition_gen.sh script creates partition_map.cfg by reading partition
   information from .config

3. partition_map.cfg is included in flash_all.cfg for flashing romfs.img
   at the romfs partition start address.

Signed-off-by: Manohara HK <manohara.hk@samsung.com>
7 years agosidk_s5jt200 : add romfs device automount support
Manohara HK [Wed, 28 Jun 2017 05:43:00 +0000 (11:13 +0530)]
sidk_s5jt200 : add romfs device automount support

This patch adds configuration and mount code for supporting
romfs device auto mount
If the romfs partition size and type and name are added in the
FLASH_PART_* configurtion and CONFIG_FS_ROMFS enabled,
a smart device(/dev/smart0pX) will be created and
romfs filesystem will be automounted on it.

To test it,
1. configure for sidk_s5jt200/hello_with_tash
2. make menuconfig
- Enable CONFIG_FS_ROMFS
- Split last partition size to (256,256) in CONFIG_SIDK_S5JT200_FLASH_PART_LIST
- Append "smartfs" at the end to CONFIG_SIDK_S5JT200_FLASH_PART_TYPE
- Append "romfs" at the end to CONFIG_SIDK_S5JT200_FLASH_PART_NAME
  (Above 3 steps created romfs partition with size 256K at the end,
where romfs device is a smart device and romfs filesystem will be
mounted on smartdevice "/dev/smart0p15" )

- Enable CONFIG_SIDK_S5JT200_AUTOMOUNT_ROMFS
3. make
4. Put "contents" into "external/contents" directory
4. make download ALL

Signed-off-by: Manohara HK <manohara.hk@samsung.com>
7 years agoMerge pull request #297 from heejin-kim/hj_rt
sunghan-chang [Thu, 20 Jul 2017 06:00:57 +0000 (15:00 +0900)]
Merge pull request #297 from heejin-kim/hj_rt

Revert the some changes #284

7 years agoMerge pull request #303 from jeongarmy/logm
sunghan-chang [Thu, 20 Jul 2017 05:52:09 +0000 (14:52 +0900)]
Merge pull request #303 from jeongarmy/logm

Update Logm

7 years agoRevert the some changes #284
Heejin Kim [Wed, 19 Jul 2017 05:26:39 +0000 (14:26 +0900)]
Revert the some changes #284

To clarify the function's meaning, some changes is reverted from #284.

7 years agoSet flag and priority parameters properly in macros in debug.h
Ahreum Jeong [Fri, 14 Jul 2017 08:22:01 +0000 (17:22 +0900)]
Set flag and priority parameters properly in macros in debug.h

7 years agoSupport flag parameter in logm
Ahreum Jeong [Thu, 13 Jul 2017 04:47:56 +0000 (13:47 +0900)]
Support flag parameter in logm

Gernerally, logm puts entered messages to buffer and flushes them in logm task
But sometimes it is needed to print messages directly.
So logm supports this functionallity using flags
If flag is LOGM_LOWPUT, logm prints messages to low output directly after flushing buffer

7 years agoClean codes of logm
Ahreum Jeong [Thu, 13 Jul 2017 04:27:18 +0000 (13:27 +0900)]
Clean codes of logm

7 years agoMerge pull request #274 from pradeepns85/stkmonitor_tash_dependency
sunghan-chang [Thu, 20 Jul 2017 04:57:17 +0000 (13:57 +0900)]
Merge pull request #274 from pradeepns85/stkmonitor_tash_dependency

Add !BUILD_PROTECTED && !BUILD_KERNEL dependency for ENABLE_STACKMONITOR flag

7 years agoMerge pull request #295 from lokeshbv/libc
sunghan-chang [Thu, 20 Jul 2017 04:46:18 +0000 (13:46 +0900)]
Merge pull request #295 from lokeshbv/libc

libc/stdlib: Error Fixes

7 years agoMerge pull request #296 from lokeshbv/libc_math
sunghan-chang [Thu, 20 Jul 2017 04:45:59 +0000 (13:45 +0900)]
Merge pull request #296 from lokeshbv/libc_math

Libc math: Refactoring

7 years agolibc/math: Fix for wrong ouput in modf() API
Lokesh B V [Wed, 19 Jul 2017 14:52:14 +0000 (20:22 +0530)]
libc/math: Fix for wrong ouput in modf() API

The sign of integral part given by the modf() should be same as sign of input.
But for inputs between 0 and 1, the sign of integral part was not same as sign of input.

Signed-off-by: Lokesh B V <lokesh.bv@partner.samsung.com>
7 years agolibc/math: Update lib_sqrtf.c lib_sqrt.c lib_sqrtl.c
Lokesh B V [Wed, 19 Jul 2017 06:54:31 +0000 (12:24 +0530)]
libc/math: Update lib_sqrtf.c lib_sqrt.c lib_sqrtl.c

Declared each variable in new line.

Signed-off-by: Lokesh B V <lokesh.bv@partner.samsung.com>
7 years agoMerge pull request #300 from thapav/missingStdioAPIs
sunghan-chang [Wed, 19 Jul 2017 08:07:11 +0000 (17:07 +0900)]
Merge pull request #300 from thapav/missingStdioAPIs

Added Missing stdio API's: freopen,setbuf,setvbuf,remove

7 years agoAdded missing stdio API's: freopen,setbuf,setvbuf,remove
Vidisha Thapa [Wed, 19 Jul 2017 07:09:02 +0000 (12:39 +0530)]
Added missing stdio API's: freopen,setbuf,setvbuf,remove

This patch adds missing stdio API's namely:
'freopen', 'setbuf', 'setvbuf', 'remove' to TizenRT.
These API's are ported by referring to the latest Nuttx.

Signed-off-by: Vidisha Thapa <thapa.v@samsung.com>
7 years agoRefactoring on stream
Vidisha Thapa [Wed, 19 Jul 2017 06:46:28 +0000 (12:16 +0530)]
Refactoring on stream

This patch implements refactoring on I/O buffer stream.

Signed-off-by: Vidisha Thapa <thapa.v@samsung.com>
7 years agoModify return value on fcntl
Vidisha Thapa [Wed, 19 Jul 2017 06:26:17 +0000 (11:56 +0530)]
Modify return value on fcntl

This patch sets errno flag EBADF and modifies return value.

Signed-off-by: Vidisha Thapa <thapa.v@samsung.com>
7 years agoModify description on Kconfig
Vidisha Thapa [Wed, 19 Jul 2017 06:22:41 +0000 (11:52 +0530)]
Modify description on Kconfig

This patch modifies description of STDIO_BUFFER_SIZE config.

Signed-off-by: Vidisha Thapa <thapa.v@samsung.com>
7 years agoUpdate lib_sqrtf.c
Lokesh B V [Wed, 19 Jul 2017 06:54:31 +0000 (12:24 +0530)]
Update lib_sqrtf.c

7 years agoAdd !BUILD_PROTECTED && !BUILD_KERNEL dependency for ENABLE_STACKMONITOR flag
pradeep.ns [Thu, 13 Jul 2017 19:51:37 +0000 (01:21 +0530)]
Add !BUILD_PROTECTED && !BUILD_KERNEL dependency for ENABLE_STACKMONITOR flag

This feature internally uses kernel data structures and thus should not be
enabled during kernel build(BUILD_KERNEL) and protected build (BUILD_PROTECTED)

Signed-off-by: pradeep.ns <pradeep.ns@samsung.com>
7 years agoMerge pull request #294 from kiwoongko/master
sunghan-chang [Wed, 19 Jul 2017 03:09:06 +0000 (12:09 +0900)]
Merge pull request #294 from kiwoongko/master

correction of errata (protocal --> protocol)

7 years agolib/math: Fix sqrtf
Lokesh B V [Tue, 18 Jul 2017 14:13:19 +0000 (19:43 +0530)]
lib/math: Fix sqrtf
          wrong ouput for large input
          Also typo changes.

Signed-off-by: Lokesh B V <lokesh.bv@partner.samsung.com>
7 years agolibc/math: Typo Fix
Lokesh B V [Tue, 18 Jul 2017 14:12:45 +0000 (19:42 +0530)]
libc/math: Typo Fix

Signed-off-by: Lokesh B V <lokesh.bv@partner.samsung.com>
7 years agolibc/stdlib: Error Fixes
Lokesh B V [Tue, 18 Jul 2017 11:41:20 +0000 (17:11 +0530)]
libc/stdlib: Error Fixes
       1.Fix an error in mkstemp() the could result in an infinite loop.
       2.Fix for wrong output in some cases.
         For Example:
         input: "FILEXX"
         output: "FILE00" and repeating same output for further invocations of mkstemp().
         But, the ouput has to be FILE01, FILE02, ...., FILEZZ.

Signed-off-by: Lokesh B V <lokesh.bv@partner.samsung.com>
7 years agocorrection of errata (protocal --> protocol)
Kiwoong Ko [Tue, 18 Jul 2017 10:42:29 +0000 (19:42 +0900)]
correction of errata (protocal --> protocol)

7 years agoMerge pull request #285 from dr-venkman/master
pillip8282 [Mon, 17 Jul 2017 09:41:04 +0000 (18:41 +0900)]
Merge pull request #285 from dr-venkman/master

Removed doc folder in tinydtls subfolder in wakaama

7 years agoMerge pull request #288 from junmin-kim/common_qemu
sunghan-chang [Mon, 17 Jul 2017 08:58:14 +0000 (17:58 +0900)]
Merge pull request #288 from junmin-kim/common_qemu

Add qemu feature

7 years agoMerge pull request #281 from jeongchanKim/kernel_idlestack
sunghan-chang [Mon, 17 Jul 2017 08:56:39 +0000 (17:56 +0900)]
Merge pull request #281 from jeongchanKim/kernel_idlestack

modify the peak stack size of idle task

7 years agoMerge pull request #286 from JeongJunSik/master
sunghan-chang [Mon, 17 Jul 2017 08:25:28 +0000 (17:25 +0900)]
Merge pull request #286 from JeongJunSik/master

Remove the unavailable iotbus_spi api funtion

7 years agoRemove the unavailable iotbus_spi api funtion
JunSik Jeong [Mon, 17 Jul 2017 07:50:23 +0000 (16:50 +0900)]
Remove the unavailable iotbus_spi api funtion

7 years agoCreate qemu config README.md
junmin kim [Fri, 14 Jul 2017 08:12:20 +0000 (01:12 -0700)]
Create qemu config README.md

7 years agoCall qemu command when user type "make download"
junmin kim [Mon, 10 Jul 2017 07:34:20 +0000 (00:34 -0700)]
Call qemu command when user type "make download"

7 years agoCreate qemu build config
junmin kim [Thu, 13 Jul 2017 08:19:14 +0000 (01:19 -0700)]
Create qemu build config

7 years agoport lm3s6965-ek board from NuttX
Manohara HK [Tue, 21 Mar 2017 13:45:54 +0000 (19:15 +0530)]
port lm3s6965-ek board from NuttX

This is required for running tinyara on QEMU.
lm3s6965-ek board is supported in qemu and as well as in NuttX.
This patch ports lm3s6965-ek board and associated SoC(tiva) from latest nuttx.
lm3s6965-ek and tiva chip source are not exactly from laster master, but
build compatible version is choosen while porting.

Signed-off-by: Manohara HK <manohara.hk@samsung.com>
7 years agoRemoved doc folder in tinydtls subfilder within wakaama/examples/shared. This should...
dr-venkman [Mon, 17 Jul 2017 07:31:11 +0000 (16:31 +0900)]
Removed doc folder in tinydtls subfilder within wakaama/examples/shared. This should fix GPLv2 license issue

7 years agoMerge pull request #284 from heejin-kim/hj_rt
lssgood [Mon, 17 Jul 2017 06:47:46 +0000 (15:47 +0900)]
Merge pull request #284 from heejin-kim/hj_rt

Fix defects for webserver

7 years agoMerge branch 'master' into hj_rt
heejin-kim [Mon, 17 Jul 2017 06:46:03 +0000 (15:46 +0900)]
Merge branch 'master' into hj_rt

7 years agoFix defects for webserver
Heejin Kim [Mon, 17 Jul 2017 06:30:33 +0000 (15:30 +0900)]
Fix defects for webserver

7 years agoMerge pull request #277 from sunghan-chang/master
btheosam [Mon, 17 Jul 2017 06:09:08 +0000 (15:09 +0900)]
Merge pull request #277 from sunghan-chang/master

refactoring

7 years agomodify the peak stack size of idle task
jc_.kim [Mon, 17 Jul 2017 01:43:48 +0000 (10:43 +0900)]
modify the peak stack size of idle task

update the stack info in idle task tcb and add coloration for idle stack before os_start

7 years agoMerge pull request #280 from HONGCHAEHEE/modify-cjson
pillip8282 [Mon, 17 Jul 2017 04:40:09 +0000 (13:40 +0900)]
Merge pull request #280 from HONGCHAEHEE/modify-cjson

Add cJSON functions

7 years agoMerge pull request #282 from jeongchanKim/kernel_readme
sunghan-chang [Mon, 17 Jul 2017 02:05:10 +0000 (11:05 +0900)]
Merge pull request #282 from jeongchanKim/kernel_readme

Modify the Readme.md about setting the Kconfig-frontends Installation

7 years agoModify the Readme.md about setting the Kconfig-frontends Installation
jc_.kim [Mon, 17 Jul 2017 01:47:27 +0000 (10:47 +0900)]
Modify the Readme.md about setting the Kconfig-frontends Installation

7 years agoAdd cJSON functions
chaehee.hong [Mon, 17 Jul 2017 01:28:32 +0000 (18:28 -0700)]
Add cJSON functions

7 years agofixup! examples/tls: fix certificates retrieval from SSS
sunghan [Fri, 14 Jul 2017 12:45:07 +0000 (21:45 +0900)]
fixup! examples/tls: fix certificates retrieval from SSS

MQTT configurations are added manually.
It makes duplicated and added wrong location.

7 years agomodify incorrect comment on socket.h
sunghan [Fri, 14 Jul 2017 12:00:07 +0000 (21:00 +0900)]
modify incorrect comment on socket.h

CONFIG_CUSTOM_SOCKETS -> CONFIG_NET_SOCKET

7 years agofixup! external/wakaama: clean up the wakaama build tree
sunghan [Fri, 14 Jul 2017 11:39:39 +0000 (20:39 +0900)]
fixup! external/wakaama: clean up the wakaama build tree

Including dm include folder is already existed at line 82.

7 years agoMerge pull request #276 from tadziopazur/dummy_shutdown_removed_from_libc
sunghan-chang [Fri, 14 Jul 2017 11:17:21 +0000 (20:17 +0900)]
Merge pull request #276 from tadziopazur/dummy_shutdown_removed_from_libc

dummy shutdown removed from built-in libc

7 years agodummy shutdown removed from built-in libc
Tomasz Wozniak [Fri, 14 Jul 2017 10:21:06 +0000 (12:21 +0200)]
dummy shutdown removed from built-in libc

7 years agoMerge pull request #275 from shivgarg/master
sunghan-chang [Fri, 14 Jul 2017 08:20:08 +0000 (17:20 +0900)]
Merge pull request #275 from shivgarg/master

Fixed coding rule violation in arastorage

7 years agoFixed coding rule violation in arastorage
Shivam Garg [Fri, 14 Jul 2017 08:04:13 +0000 (17:04 +0900)]
Fixed coding rule violation in arastorage

7 years agoMerge pull request #198 from pmarcinkiew/FIONREAD_fix
sunghan-chang [Fri, 14 Jul 2017 02:11:33 +0000 (11:11 +0900)]
Merge pull request #198 from pmarcinkiew/FIONREAD_fix

FIONREAD macro namespace clash resolved for IOCTL and SOCKETS

7 years agoFIONREAD macro namespace clash resolved for IOCTL and SOCKETS
Piotr Marcinkiewicz [Thu, 13 Jul 2017 10:13:59 +0000 (12:13 +0200)]
FIONREAD macro namespace clash resolved for IOCTL and SOCKETS

There is macro with the same name but different content within two basic
OS headers - sockets.h and ioctl.h. It can be fixed with including ioctl.h
into sockets.h so the same macro will be used everywhere.

7 years agoMerge pull request #269 from EunBongSong/ds-dev3
sunghan-chang [Wed, 12 Jul 2017 07:59:17 +0000 (16:59 +0900)]
Merge pull request #269 from EunBongSong/ds-dev3

Ds dev3

7 years agoMerge pull request #205 from heejin-kim/nw_iotivity
lssgood [Wed, 12 Jul 2017 03:55:01 +0000 (12:55 +0900)]
Merge pull request #205 from heejin-kim/nw_iotivity

Update external/Makefile to remove object files.

7 years agowakaama/example: indicate DM specific source code.
Junyeon LEE [Thu, 6 Jul 2017 14:43:15 +0000 (23:43 +0900)]
wakaama/example: indicate DM specific source code.

This commit seperates DM (device management) related source code with
original open source and return value between error and success case.

Change-Id: I5009b39ad7aba5b57ec6b57aa5824bd5908014d0
Signed-off-by: Junyeon LEE <junyeon2.lee@samsung.com>
7 years agonetutils/mqtt: handle exception case in mqtt_disconnect()
Wonsang Ryou [Thu, 29 Jun 2017 01:19:52 +0000 (10:19 +0900)]
netutils/mqtt: handle exception case in mqtt_disconnect()

This patch handles the exception in which mqtt_disconnect() returns
MOSQ_ERR_NO_CONN even if mqtt_client's state is not 'NOT_CONNECTED'.
If this exception case occurs, mqtt_disconnect() returns the success
value after the state is changed to 'MQTT_CLIENT_STATE_NOT_CONNECTED'.

Change-Id: I6b552f36cdba0bf0aa53a252477177fb569a4c15
Signed-off-by: Wonsang Ryou <wonsang.yoo@samsung.com>
7 years agowakaama/core: fixes TCP/TLS observation cancel error.
Junyeon LEE [Tue, 27 Jun 2017 10:45:42 +0000 (19:45 +0900)]
wakaama/core: fixes TCP/TLS observation cancel error.

This commit fixes "Cancel an observe" error with TCP/TLS.
Responses type from TCP/TLS are alwayse COAP_TYPE_CON
and the transaction_handleResponse function can't handle
every TCP case.

Not that if we received CON message from our trustful peer
through TCP/TLS, we regard it as ack message.

Change-Id: I7cac5861932f0213bffb4265a0cd553e7d280d15
Signed-off-by: Junyeon LEE <junyeon2.lee@samsung.com>
7 years agonetutils/libcoap : add license files for libcoap
Jin-Seong Kim [Mon, 26 Jun 2017 23:46:46 +0000 (08:46 +0900)]
netutils/libcoap : add license files for libcoap

This commit is to add license files for libcoap
 - libcoap is under BSD license

Change-Id: I4d3768a0490f8510f48e8a8864520bee331063c6
Signed-off-by: Jin-Seong Kim <jseong82.kim@samsung.com>
7 years agonet/lwip : add MIT license file for dhcps
Jin-Seong Kim [Mon, 26 Jun 2017 23:35:35 +0000 (08:35 +0900)]
net/lwip : add MIT license file for dhcps

This commit is to add MIT license files for dhcps
 - dhcps is under MIT license hence, add full statement of MIT license

Change-Id: Ie58070b815a2734b6a6ca57cea53a5cbed7dc980
Signed-off-by: Jin-Seong Kim <jseong82.kim@samsung.com>
7 years agoexamples/libcoap_client : trivial patch, update usages
Jin-Seong Kim [Mon, 26 Jun 2017 23:25:14 +0000 (08:25 +0900)]
examples/libcoap_client : trivial patch, update usages

This commit is trivial patch to update usages
 - delete not-supported options

Change-Id: Id9dee2add1866b0a748dcea6b8bafb5a81a427a3
Signed-off-by: Jin-Seong Kim <jseong82.kim@samsung.com>
7 years agotls : add license files (Apache v2.0)
Jin-Seong Kim [Mon, 26 Jun 2017 23:29:31 +0000 (08:29 +0900)]
tls : add license files (Apache v2.0)

This commit is to add license files
 - apache-2.0.txt : full statement of license

Change-Id: Ibb85ef283bbd0080894b2e1e6b497e489dcc3f3e
Signed-off-by: Jin-Seong Kim <jseong82.kim@samsung.com>
7 years agonetutils/codec : separates build source codes in Makefile
Jin-Seong Kim [Mon, 26 Jun 2017 04:53:43 +0000 (13:53 +0900)]
netutils/codec : separates build source codes in Makefile

This commit is to separate build source codes in Makefile
 - base64.c, md5.c and urldecode.c codes are compiled,
   when CONFIG_NETUTILS_CODEC is enabled
 - separates them accordingly its specific configuration

Change-Id: I157fd5077673c075b16b79f341ad21dec8e062e9
Signed-off-by: Jin-Seong Kim <jseong82.kim@samsung.com>
7 years agoexamples/libcoap_client : fix memory leakage on libcoap_client
Jin-Seong Kim [Fri, 23 Jun 2017 06:27:12 +0000 (15:27 +0900)]
examples/libcoap_client : fix memory leakage on libcoap_client

This commit is to fix memoray leakage on libcoap_client
 - TizenRT should free allocated memory by using free
 - payload.s and optlist has not-freed memory so, fix them

Change-Id: I07e2bc0ceca0138dd8a68c4ae07a926ad94e8615
Signed-off-by: Jin-Seong Kim <jseong82.kim@samsung.com>
7 years agolibc/netdb : fix overflow issue on DNS send buffer
Jin-Seong Kim [Fri, 23 Jun 2017 09:00:53 +0000 (18:00 +0900)]
libc/netdb : fix overflow issue on DNS send buffer

This commit is to fix overflow issue on DNS send buffer
 - dns query is consists of as below :
   header (12 bytes)+  dns hostname (variables) + query type (2 bytes)
   + query class (2 bytes)
 - previously send buffer size is fixed size of 64 bytes,
   when hostname is larger than 48 bytes, send buffer is going to
   be overflowed
 - to prevent corruption of send buffer, set SEND_BUFFER_SIZE accordingly
   hostname size

Change-Id: I6428311e51a2db002dde5265e7d7de80ee5cd1bd
Signed-off-by: Jin-Seong Kim <jseong82.kim@samsung.com>
7 years agonetutils/libcoap : trivial patches, to improve stabliity of code
Jin-Seong Kim [Fri, 23 Jun 2017 03:10:03 +0000 (12:10 +0900)]
netutils/libcoap : trivial patches, to improve stabliity of code

This commit is to fix static analysis defects
 - fix defects types as belows :
   1. defererences of null value
   2. memory leakage
   3. fix precedence
   4. unchekced function returns

Change-Id: I617161d1aee5b58dbe2f24a05724d3b023e6155d
Signed-off-by: Jin-Seong Kim <jseong82.kim@samsung.com>
7 years agoexternal/wakaama : fixes memory leakage in tcp api
Seongeun Choi [Fri, 23 Jun 2017 11:32:36 +0000 (20:32 +0900)]
external/wakaama : fixes memory leakage in tcp api

This patch fixes memory leakage issue in tcp api.
Without this commit, 32 bytes are not released when client is
registered over tcp.

Change-Id: Iad0fc2e474acfee96742b571264a7c85da676b7f
Signed-off-by: Seongeun Choi <seongeun.choi@samsung.com>
7 years agoexamples/lwm2m_test : fixes memory leakage
Seongeun Choi [Mon, 12 Jun 2017 07:58:41 +0000 (16:58 +0900)]
examples/lwm2m_test : fixes memory leakage

This patch fixes memory leakage issues in the prv_add(),
prv_remove() and prv_create_client() functions.

Change-Id: I2ebb268099cd5d5da603c51b0851aa958ba6cf2c
Signed-off-by: Seongeun Choi <seongeun.choi@samsung.com>
7 years agonet/tls: fixes memory leakage in easy tls api.
Junyeon LEE [Fri, 23 Jun 2017 14:02:53 +0000 (23:02 +0900)]
net/tls: fixes memory leakage in easy tls api.

This commit is to fix memory leakage in easy tls api.
Without this commit, tls_ctx and tls_session structures
are not freed and remain in memory.

Change-Id: Idea8bf2a44d1401e81f97a377a5480c580c96d92
Signed-off-by: Junyeon LEE <junyeon2.lee@samsung.com>
7 years agoexamples/lwm2m_test: fixes lwm2m_test usage.
Junyeon LEE [Fri, 23 Jun 2017 14:54:38 +0000 (23:54 +0900)]
examples/lwm2m_test: fixes lwm2m_test usage.

This commit fixes wrong usage about psk and addes guide for
all input combination.

Change-Id: I79168f07f628c8b54908ed2cffc4721a096a358e
Signed-off-by: Junyeon LEE <junyeon2.lee@samsung.com>
7 years agoexamples/libcoap: fix compile error in example.
Junyeon LEE [Fri, 23 Jun 2017 13:58:34 +0000 (22:58 +0900)]
examples/libcoap: fix compile error in example.

This commit is to fix below compilation error on client example.

CC: libcoap-client.c
libcoap-client.c:787:47: error: '_token_data' is static but used
            in inline function 'cmdline_token' which is not static [-Werror]
  strncpy((char *)the_token.s, arg, min(sizeof(_token_data), strlen(arg)));
                                               ^
libcoap-client.c:82:32: note: in definition of macro 'min'
 #define min(a,b) ((a) < (b) ? (a) : (b))
                                ^
ibcoap-client.c:787:47: error: '_token_data' is static but used
            in inline function 'cmdline_token' which is not static [-Werror]
  strncpy((char *)the_token.s, arg, min(sizeof(_token_data), strlen(arg)));
                                               ^
libcoap-client.c:82:20: note: in definition of macro 'min'
 #define min(a,b) ((a) < (b) ? (a) : (b))
                    ^
Signed-off-by: Junyeon LEE <junyeon2.lee@samsung.com>
Change-Id: I820e3c872ca100b9e34027e1d28e4b4f42c78d11

7 years agoexternal/wakaama : Fix compilation error on client example
Jin-Seong Kim [Wed, 21 Jun 2017 04:31:15 +0000 (13:31 +0900)]
external/wakaama : Fix compilation error on client example

This commit is to fix compilation error on client example
 - use global lwm2mH variable instead of shadowed variable in the function
 - initialize variables and remove un-used variables
 - fix compiliation eror of mismatched data type on connectivity_interface
 - fix return value of client_main function
 - add protocol parameter on connection_create and create_socket APIs
 - add common_monitor_interface files to prevent build error
   on connectivity_interface

Change-Id: Ib1e694a76823edf6b30ea4ccc52487a3d1741aea
Signed-off-by: Jin-Seong Kim <jseong82.kim@samsung.com>
7 years agoexample/webclient : Fix compilation error without TLS option
Jin-Seong Kim [Wed, 21 Jun 2017 07:48:57 +0000 (16:48 +0900)]
example/webclient : Fix compilation error without TLS option

This commit is to fix compilation error on webclient example without TLS

 1. add (char *) cast in front of malloc
 webclient_main.c: In function 'webclient_init_request':
 webclient_main.c:245:21:
 error: assignment makes pointer from integer without a cast [-Werror]
     request->entity = malloc(t);

 2. add stdlib.h
 webclient_main.c:237: undefined reference to `atoi'
 webclient_main.c:239: undefined reference to `atoi'
 webclient_main.c:243: undefined reference to `atoi'

Change-Id: I85859de77349dcd922237b3737f7039873913e20
Signed-off-by: Jin-Seong Kim <jseong82.kim@samsung.com>
7 years agoexternal/wakaama : Update wakaama client from wakaama gitHub
Jin-Seong Kim [Wed, 21 Jun 2017 02:35:08 +0000 (11:35 +0900)]
external/wakaama : Update wakaama client from wakaama gitHub

This commit is for Updating wakaama client from wakaama gitHub[1]
[1] https://github.com/eclipse/wakaama
 - To synchronize patched on core functions, update client example

Change-Id: I70ed3eeb673ef93b33010bc684576e100c3db803
Signed-off-by: Jin-Seong Kim <jseong82.kim@samsung.com>
7 years agoexternal/wakaama : Revert client example to 1.0_Public_M1 version
Jin-Seong Kim [Wed, 21 Jun 2017 02:20:22 +0000 (11:20 +0900)]
external/wakaama : Revert client example to 1.0_Public_M1 version

This commit is revert commit for wakaama client example
 - SW R&D Center(DS) has been seperated client example from DM framework
   wakaama client example will be only used by DM framework
   So, we'll revert our patches on client example to prevent
   maintaining issue on it

Change-Id: I6d75c729b4d694025af067a0cb84d1b9ba132805
Signed-off-by: Jin-Seong Kim <jseong82.kim@samsung.com>
Signed-off-by: EunBong Song <eunb.song@samsung.com>
7 years agospi: fix mismatched return types of SPI_SETMODE and SPI_SETBITS
Wonsang Ryou [Wed, 21 Jun 2017 02:09:42 +0000 (11:09 +0900)]
spi: fix mismatched return types of SPI_SETMODE and SPI_SETBITS

Even if the return types of .setmode and .setbits operations had been
changed to void in commit f5dd07d5a922 ("spi: iotbus: fix mismatched
prototype declarations"), the return types of SPI_SETMODE and
SPI_SETBITS macros are still int.

This patch corrects the return types of SPI_SETMODE and SPI_SETBITS.
(int -> void)

Change-Id: I3b5e6a3bda3759303e84a4b31fe90a67d3a88720
Signed-off-by: Wonsang Ryou <wonsang.yoo@samsung.com>
7 years agoRevert "external/wakaama: remove tinydtls library"
Junyeon LEE [Fri, 16 Jun 2017 04:54:37 +0000 (13:54 +0900)]
Revert "external/wakaama: remove tinydtls library"

Supporting DM framework, we enables tinydtls library.

This reverts commit 2308e97dfb9a78ff0f9fb5b4c88520531bfd8e04.

Change-Id: I4316a67bec85e98b46d0ecc952fbc227859f89b4
Signed-off-by: Junyeon LEE <junyeon2.lee@samsung.com>
7 years agonetutils/http: fixes minor issues in webserver and webclient
Junyeon LEE [Mon, 19 Jun 2017 19:50:57 +0000 (04:50 +0900)]
netutils/http: fixes minor issues in webserver and webclient

This commit fixes several minor issues in webserver and webclient.
  . unopened message queue can be used in http_server_handler()
  . unreleased file descriptor in http_handle_file()
  . double free problem in client_send_request()
  . uninitialized response structure is able to make abort problem.

Change-Id: I119c4a2ea64ae575153a4a7772d4ef104b87a68c
Signed-off-by: Junyeon LEE <junyeon2.lee@samsung.com>
7 years agonetutils/websocket: check returning value of pthread_ funcion
Junyeon LEE [Mon, 19 Jun 2017 19:47:55 +0000 (04:47 +0900)]
netutils/websocket: check returning value of pthread_ funcion

After this commit, websocket will check pthread_ related function's
returning value.

Change-Id: Ia561cd9e9142afa2f9d7a2ef8ee1d4aecd236d76
Signed-off-by: Junyeon LEE <junyeon2.lee@samsung.com>
7 years agonet/tls: check function's return value
Junyeon LEE [Mon, 19 Jun 2017 19:47:32 +0000 (04:47 +0900)]
net/tls: check function's return value

Several functions did not check the input / return value in pk_wrap.c
and easy_tls.c files.

Change-Id: I3cb198c4b7db4947f9e253959e143446595f2311
Signed-off-by: Junyeon LEE <junyeon2.lee@samsung.com>
7 years agoexamples/libcoap_server : trivial fixes for libcoap_server example
Jin-Seong Kim [Mon, 19 Jun 2017 04:44:40 +0000 (13:44 +0900)]
examples/libcoap_server : trivial fixes for libcoap_server example

This commit is trivial fixes for libcoap_server example
 - add log on hnd_put_time function when its progress has been succeed
 - delete un-supported DELETE callback function

Change-Id: I0f0a737f9e38064fe15eb40acae9829f24f6786e
Signed-off-by: Jin-Seong Kim <jseong82.kim@samsung.com>
7 years agoexamples/sensor_test: introduce ppd42ns sensor example application
Wonsang Ryou [Mon, 19 Jun 2017 06:25:27 +0000 (15:25 +0900)]
examples/sensor_test: introduce ppd42ns sensor example application

This commit introduces the example application for testing ppd42ns
dust sensor driver. The following configurations should be enabled
for this application.
  +CONFIG_SENSOR=y
  +CONFIG_SENSOR_PPD42NS=y
  +CONFIG_SENSOR_PPD42NS_GPIO_NUM=58
  +CONFIG_EXAMPLES_SENSOR_TEST=y
  +CONFIG_EXAMPLES_SENSOR_TEST_PPD42NS=y

You can test this application using 'sensor_ppd42ns' command in tash.

Change-Id: Ibf189af067d117977b5257ed6a5c9cc8a7e4d99d
Signed-off-by: Wonsang Ryou <wonsang.yoo@samsung.com>
7 years agodrivers/sensors: introduce common sensor APIs
Wonsang Ryou [Mon, 19 Jun 2017 05:55:37 +0000 (14:55 +0900)]
drivers/sensors: introduce common sensor APIs

This commit introduces common APIs' definition for sensor drivers.

The driver developers makes sensor drivers according to these common
sensor APIs' definition and the application developers can control
sensor devices using this APIs.

Change-Id: I7e52be1f9b3f5c141113b3d07d501f1021caec79
Signed-off-by: Wonsang Ryou <wonsang.yoo@samsung.com>
7 years agoexternal/wakaama: restore wakaama examples.
Junyeon LEE [Fri, 16 Jun 2017 04:35:39 +0000 (13:35 +0900)]
external/wakaama: restore wakaama examples.

This commit rollbacks wakaama examples for supporting DM framework.
Now that wakaama examples are nearly same with current eclipse/wakaama
opensource. The only differences with opensource are
  . Add protocol type to support and indicate TCP.
  . Add read_input_command_line() for parsing inputs.

Change-Id: I22e152e1d61941d4e36a75442fe54b1a058dc825
Signed-off-by: Junyeon LEE <junyeon2.lee@samsung.com>