sunghan [Thu, 20 Apr 2017 08:44:10 +0000 (17:44 +0900)]
update README files for artik053
sunghan [Tue, 18 Apr 2017 13:47:32 +0000 (22:47 +0900)]
fix violation of Tizen coding rule and add including config.h
Junhwan Park [Fri, 14 Apr 2017 05:01:32 +0000 (14:01 +0900)]
s5j/spi: clean spi driver code
I removed unused pieces of code. And reduced code size. I will try to
further reduce the code size in the future.
Change-Id: I18ca5f9e462e0c40e72d0297dd0bc76e82650146
Signed-off-by: Junhwan Park <junhwan.park@samsung.com>
EunBong Song [Fri, 7 Apr 2017 05:22:09 +0000 (14:22 +0900)]
fs: remove fs_utils.c
fs_initiate(), fs_clean(), fs_erase(), fs_recover() functions are API
functions for application. But these functions call kernel space
functions and this can break protection build. And also these functions
do not work proprely with new MTD layers. And also these functions
support only smartfs not all file systems even though function's prefix
is fs_xxx. I think it's better to remove these functions and
re-implement if there is a request for these functions.
Change-Id: I410684d7b789b743707c0cb03ed3d2ec4a8fd729
Signed-off-by: EunBong Song <eunb.song@samsung.com>
Wonsang Ryou [Fri, 14 Apr 2017 08:38:04 +0000 (17:38 +0900)]
examples: refactor mdns_test and ntpclient_test
This patch reduces complexity and improves readability by separating
the command process functions from mdns_main() and ntpclient_main().
Change-Id: I5914766e93cca61d8a9d64c0928d5f2bb9529a12
Signed-off-by: Wonsang Ryou <wonsang.yoo@samsung.com>
Wonsang Ryou [Fri, 14 Apr 2017 07:58:22 +0000 (16:58 +0900)]
examples/mqtt_test: refactor for reducing complexity
This patch reduces complexity and improves readability by separating
the several functions from mqtt client tasks.
Change-Id: I2e8bda321136581788337b226056bd19e70b049d
Signed-off-by: Wonsang Ryou <wonsang.yoo@samsung.com>
Junhwan Park [Fri, 14 Apr 2017 05:06:42 +0000 (14:06 +0900)]
examples/sensorbd_demo: fix spi example
Fix spi examples on sensor board.
Change-Id: I6d89f63ab9975e3b208ffab86e883c929b115a54
Signed-off-by: Junhwan Park <junhwan.park@samsung.com>
kang [Fri, 14 Apr 2017 07:58:24 +0000 (16:58 +0900)]
net: clean up network Kconfig entries
Configuration sync with Tizen RT spin git for IP, mbox, debug and
statistics.
Change-Id: I1a92fde80848186b078f112e3fba8c661c52d529
Signed-off-by: kang <pilseob.kang@samsung.com>
Jin-Seong Kim [Fri, 14 Apr 2017 07:25:03 +0000 (16:25 +0900)]
external/wakaama: delete tests folder that is not in use
This commit deletes 'tests' folder that is not in use.
Change-Id: I67937016eba112ddb58c43109c7f4d216cff1b4c
Signed-off-by: Jin-Seong Kim <jseong82.kim@samsung.com>
Junhwan Park [Fri, 14 Apr 2017 06:49:40 +0000 (15:49 +0900)]
s5j/serial: fix g_uart_priv
The value for each port in g_uart_priv was wrong. Fixed to correct
setting by port.
Change-Id: I3a43403b1c3714e61b8e9e5f6f4930ee14bbf010
Signed-off-by: Junhwan Park <junhwan.park@samsung.com>
Junhwan Park [Fri, 14 Apr 2017 05:35:40 +0000 (14:35 +0900)]
s5j/i2c: fix g_s5j_i2c_priv
the array 'g_s5j_i2c_priv[2]' is accessed at port 3, which is out of
bounds. The S5J's I2C has ports 0 to 3.
Change-Id: I49166fc8301722a531a758319f15e5123d6a5058
Signed-off-by: Junhwan Park <junhwan.park@samsung.com>
Wonsang Ryou [Fri, 14 Apr 2017 04:05:45 +0000 (13:05 +0900)]
build: do not recompile untouched source files
When the object files' build rule whose name includes sub directory
path, in the build rule for object files, "notdir" command causes the
mismatch between the build rule's name and the generated object file
path. So, the build rule for binary regards the object files as the
files not compiled and rebuilds on every build time even if the
object files are not modified.
This patch removes sub directory path from the source code name. And it
also removes "notdir" command from the build rule for object files.
Change-Id: I53874c480d0422ade1c0ecdbbf55f03a1e19419c
Signed-off-by: Wonsang Ryou <wonsang.yoo@samsung.com>
Wonsang Ryou [Fri, 14 Apr 2017 05:06:27 +0000 (14:06 +0900)]
netutils/mqtt: delete an unnecessary Makefile
This commit deletes an unnecessary Makefile in mqtt library directory.
Change-Id: I707bd52ddd0a338f3d15f2e23a8f5310288548ca
Signed-off-by: Wonsang Ryou <wonsang.yoo@samsung.com>
Junyeon LEE [Fri, 14 Apr 2017 04:31:22 +0000 (13:31 +0900)]
external/wakaama: remove tinydtls library
This commit removes tinydtls full source code in wakaama. Because TizenRT
supports mbedtls for network security, there is no more need to use Tinydtls.
Change-Id: Ie049ee17a5b9b523b47e16a18ea72614025fc190
Signed-off-by: Junyeon LEE <junyeon2.lee@samsung.com>
Junyeon LEE [Fri, 14 Apr 2017 04:28:06 +0000 (13:28 +0900)]
external/Kconfig: add wakaama security configuration
This commit adds wakaama security configuration for supporting
TLS and DTLS.
Change-Id: I12b1fa30b2ea791c2029641f31b94ba24f08ebe7
Signed-off-by: Junyeon LEE <junyeon2.lee@samsung.com>
Jin-Seong Kim [Fri, 14 Apr 2017 05:38:28 +0000 (14:38 +0900)]
external/wakaama: separate core and example configuration
This commit is patches to separate core and example configuration
- add CONFIG_LWM2M_WAKAAMA to compile wakaama core functions only
- remove not-supported configuration to prevent wrong configuration
(CONFIG_LWM2M_BOOTSTRAP)
- fixes build dependencies between dm frameworks and wakaama
Change-Id: I57d9dae42287c8ae758029bf3f6b3ff72e22f08f
Signed-off-by: Jin-Seong Kim <jseong82.kim@samsung.com>
EunBong Song [Fri, 14 Apr 2017 01:31:46 +0000 (10:31 +0900)]
pthread: apply some missing patches from Nuttx
This patch adds pthread_mutexattr_getrobust.c and
pthread_mutexattr_setrobust.c and initialization of attr->robust in
pthread_mutexattr_init().
All credits should go to Gregory Nutt who wrote the original commit.
Change-Id: I02b979e0bd4e30d6e91eaf91941e3bcd6ac7e7c4
Signed-off-by: Gregory Nutt <gnutt@nuttx.org>
[Song: backported
666208cf,
d1196ddb and
b4d378ad from NuttX]
Signed-off-by: EunBong Song <eunb.song@samsung.com>
EunBong Song [Thu, 13 Apr 2017 23:50:39 +0000 (08:50 +0900)]
pthread: disable priority inheritance for contained semaphore
Provide do-nothing stubs for mutex attribute interfaces if features not
enabled. pthread_cond includes a signaling semaphore and should call
sem_setprotocol.
All credits should go to Gregory Nutt who wrote the original commit.
Change-Id: Ib6bcc4d63e8decd6f60e1bc944aecca88037fdc7
Signed-off-by: Gregory Nutt <gnutt@nuttx.org>
[Song: backported
796969f6 from NuttX]
Signed-off-by: EunBong Song <eunb.song@samsung.com>
Junyeon LEE [Thu, 13 Apr 2017 09:24:00 +0000 (18:24 +0900)]
examples/webserver: register default callback functions
This commit addes default callbacks in server example for testing.
Change-Id: Icceb0fa2f7a93df7b81e0ad31ffa83f5ab46e06b
Signed-off-by: Junyeon LEE <junyeon2.lee@samsung.com>
Wonsang Ryou [Thu, 13 Apr 2017 23:51:29 +0000 (08:51 +0900)]
build: fix 'make clean'
This patch fixes the problem that some *.o files aren't cleaned after
"make clean" in mqtt and sss modules.
The "CLEAN" function of Makefile cleans object files only in current
directory. That's why the files of sub directories aren't cleaned by
"CLEAN" function. This patch all object files make be generated in the
directory in which Makefile exists.
Change-Id: I50d9f95ca255b2c0d1aaf33a470f4d2f4ab5bb40
Signed-off-by: Wonsang Ryou <wonsang.yoo@samsung.com>
Junyeon LEE [Thu, 13 Apr 2017 05:37:04 +0000 (14:37 +0900)]
libc/netdb: fix memory leakage
This patch fixes improper free in freeaddrinfo().
Change-Id: Icf6a94967a19b5de936d46fd954b64ce34d8bab0
Signed-off-by: Junyeon LEE <junyeon2.lee@samsung.com>
EunBong Song [Thu, 13 Apr 2017 07:34:22 +0000 (16:34 +0900)]
net/lwip: rename NET_ARP_TRUST_IP_MAC to NET_ETHARP_TRUST_IP_MAC
In Kconfig NET_ETHARP_TRUST_IP_MAC is defined. However, in lwipopts.h
NET_ARP_TRUST_IP_MAC is used. This patch changes NET_ARP_TRUST_IP_MAC to
NET_ETHARP_TRUST_IP_MAC.
Change-Id: I3e2384be95e38eaab35cdbd4d6b91d83b9397c34
Signed-off-by: EunBong Song <eunb.song@samsung.com>
EunBong Song [Thu, 13 Apr 2017 06:17:47 +0000 (15:17 +0900)]
sidk_s5jt200: artik053: set CONFIG_PTHREAD_MUTEX_UNSAFE=y
This patch adds CONFIG_PTHREAD_MUTEX_UNSAFE to all s5j and artik053
config. This keeps backward compatibility with new pthread patches.
Change-Id: I6ce2bc6a2109c15dfa038a47d4b8354ad0aed55c
Signed-off-by: EunBong Song <eunb.song@samsung.com>
EunBong Song [Thu, 13 Apr 2017 06:30:36 +0000 (15:30 +0900)]
pthread/mutex: fix a compilation error
This patch fixes a compilation error below:
CC: pthread/pthread_mutexlock.c
pthread/pthread_mutexlock.c:254:2: error: expected identifier or '(' before 'return'
return ret;
^
pthread/pthread_mutexlock.c:255:1: error: expected identifier or '(' before '}' token
}
^
/home/ebsong/tizenrt/os/include/pthread.h: In function 'pthread_mutex_lock':
pthread/pthread_mutexlock.c:251:2: error: control reaches end of non-void function [-Werror=return-type]
}
^
cc1: all warnings being treated as errors
Change-Id: I183a97f0cad5a865ec474a73fc525a68766c827b
Signed-off-by: EunBong Song <eunb.song@samsung.com>
EunBong Song [Thu, 13 Apr 2017 07:12:53 +0000 (16:12 +0900)]
pthread/Kconfig: add an option to support both unsafe and robust mutex
This patch adds Kconfig menu for UNSAFE and ROBUST MUTEX. All credits
should go to Gregory Nutt who wrote the original commit.
Change-Id: I3d705cfb26d90eebadec2b3963f7828feba902ee
Signed-off-by: Gregory Nutt <gnutt@nuttx.org>
[Song: backported
666208cf from NuttX]
Signed-off-by: EunBong Song <eunb.song@samsung.com>
EunBong Song [Thu, 13 Apr 2017 06:02:12 +0000 (15:02 +0900)]
testcase: fix a compilation error
This patch fixes a compilation error below:
CC: le_tc/kernel/tc_pthread.c
le_tc/kernel/tc_pthread.c: In function 'tc_pthread_pthread_take_give_semaphore':
le_tc/kernel/tc_pthread.c:898:12: error: too few arguments to function 'pthread_takesemaphore'
ret_chk = pthread_takesemaphore(&sem);
Change-Id: Id713905644352a00f84f17e7b16e07f22d2f44bb
Signed-off-by: EunBong Song <eunb.song@samsung.com>
EunBong Song [Thu, 13 Apr 2017 04:43:32 +0000 (13:43 +0900)]
pthread/mutex: fix an assertion noted by Jussi Kivilinna
All credits should go to Gregory Nutt who wrote the original commit.
Change-Id: I3ba2c8a4bccc8c76047d6b22a36662c79f8ac33d
Signed-off-by: Gregory Nutt <gnutt@nuttx.org>
[Song: backported
eb344d72 from NuttX]
Signed-off-by: EunBong Song <eunb.song@samsung.com>
EunBong Song [Thu, 13 Apr 2017 04:32:32 +0000 (13:32 +0900)]
pthread/mutex: s/CONFIG_MUTEX_TYPES/CONFIG_PTHREAD_MUTEX_TYPES/
All credits should go to Gregory Nutt who wrote the original commit.
Change-Id: Ieab91af77c4b14262b8b303767870386e0317fa0
Signed-off-by: Gregory Nutt <gnutt@nuttx.org>
[Song: backported
b07d3fc3 from NuttX]
Signed-off-by: EunBong Song <eunb.song@samsung.com>
EunBong Song [Thu, 13 Apr 2017 03:59:14 +0000 (12:59 +0900)]
pthread/mutex: add an option to support both unsafe and robust mutexes
This patch adds an option to support both unsafe and robust mutexes via
pthread_mutexattr_get/setrobust(). All credits should go to Gregory Nutt
who wrote the original commit.
Change-Id: Iff8d494bc79aa0fa414c111bab524ff29714c96b
Signed-off-by: Gregory Nutt <gnutt@nuttx.org>
[Song: backported
666208cf from NuttX]
Signed-off-by: EunBong Song <eunb.song@samsung.com>
EunBong Song [Thu, 13 Apr 2017 04:16:01 +0000 (13:16 +0900)]
pthread/mutex: finish logic to support configuration mutex robustness
All credits should go to Gregory Nutt who wrote the original commit.
Change-Id: Iaf25679c6882e7b362a58e6aadfe45d879219f91
Signed-off-by: Gregory Nutt <gnutt@nuttx.org>
[Song: backported
f2f798cb from NuttX]
Signed-off-by: EunBong Song <eunb.song@samsung.com>
EunBong Song [Thu, 13 Apr 2017 03:55:50 +0000 (12:55 +0900)]
pthread: backport pthread mutex related patches
This patch backports several commits from NuttX, that fixes pthread
mutex issues. Applying only one patch causes compilation errors. So
these patches are submitted in a single commit. All credits should go to
Gregory Nutt who wrote the original commits.
Change-Id: I5dfb4f68a253228fa55335dd6dd4e4413c690f45
Signed-off-by: Gregory Nutt <gnutt@nuttx.org>
[Song: backported
a1fbc2ad,
2c37d369,
6e623ce0,
fe03ef02,
5a69453e,
34c5e1c1,
8b23c16b,
86ab384d and
8b3c554e. from NuttX]
Signed-off-by: EunBong Song <eunb.song@samsung.com>
EunBong Song [Thu, 13 Apr 2017 01:04:08 +0000 (10:04 +0900)]
pthread: fix return value of pthread_give/takesemaphore()
Add option to pthread_takesemaphore to ignore EINTR or not. All credits
should go to Gregory Nutt who wrote the original commit.
Change-Id: I63be1a48b01b879dea890750001a8f0491ad9976
Signed-off-by: Gregory Nutt <gnutt@nuttx.org>
[Song: backported
2c37d369 from NuttX]
Signed-off-by: EunBong Song <eunb.song@samsung.com>
EunBong Song [Thu, 13 Apr 2017 00:40:57 +0000 (09:40 +0900)]
pthread: add more robustness characteristics
pthread_mutex_lock() and trylock() will now return EOWNERDEAD if the
mutex is locked by a thread that no longer exists. Add
pthread_mutex_consistent() to recover from this situation. All credits
should go to Gregory Nutt who wrote the original commit.
Change-Id: Ife6319f6806e37cfba57a04992505b754b1712d3
Signed-off-by: Gregory Nutt <gnutt@nuttx.org>
[Song: backported
363403fb from NuttX]
Signed-off-by: EunBong Song <eunb.song@samsung.com>
EunBong Song [Thu, 13 Apr 2017 00:10:19 +0000 (09:10 +0900)]
pthread: fix an error in destorynig a mutex
This patch fixes error after a pthread has been canceled while holding
the mutex. All credits should go to Gregory Nutt who wrote the original
commit.
Change-Id: Ifeb172d356ea7abce373d80057ee281d713df542
Signed-off-by: Gregory Nutt <gnutt@nuttx.org>
[Song: backported
b0796446 from NuttX]
Signed-off-by: EunBong Song <eunb.song@samsung.com>
Junyeon LEE [Thu, 13 Apr 2017 06:06:46 +0000 (15:06 +0900)]
external/wakaama: fix compilation errors
This commit fixes a build error with 4.9.3 compiler.
. uninitialized "port" and "ret" value.
. uninitialized "sa" and "sl" value.
Change-Id: I1dd293fbea42a5cffde500d745c399043321052d
Signed-off-by: Junyeon LEE <junyeon2.lee@samsung.com>
kang [Thu, 13 Apr 2017 05:26:34 +0000 (14:26 +0900)]
net: modify ip address setting logic
IP address, GW and netmask are set in lwip task.
Change-Id: Id7b52e32497ae081ae5dd5b5fb7c5f7be3cc5c3f
Signed-off-by: kang <pilseob.kang@samsung.com>
Sangsoon Lim [Thu, 13 Apr 2017 04:13:30 +0000 (13:13 +0900)]
net: modify network Kconfig entries for udp, icmp, mem
Configuration sync with Tizen RT spin git for udp, icmp, mem.
Change-Id: I43930d7de11f88c8e3d92e40c1aaa8512d91ce90
Signed-off-by: Sangsoon Lim <ssoon.lim@samsung.com>
Heesub Shin [Thu, 13 Apr 2017 08:20:58 +0000 (17:20 +0900)]
wireless/scsc: introduce up_wlan_get_firmware()
This commit adds a new board-specific function, up_wlan_get_firmware()
that returns the address to flash region WiFi Firmware is stored.
Change-Id: I2f73f12b9e31188ee5e0777ab042eb577256ef03
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Heesub Shin [Thu, 13 Apr 2017 06:51:03 +0000 (15:51 +0900)]
s5j: drop s5j_efuse.c
Though it is stored in the internal e-fuse region of S5J chipset, how we
store and retrieve the MAC address on the actual board depends on the
actual board. In other words, managing MAC address is a board-specific
thing. On some board, MAC address might be stored to an external flash.
Thus, up_wlan_get_mac_addr() should be moved to BSP layer, not S5J.
Change-Id: I764e98c1dfb93ebcc227f6c5079731f34d5abd39
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Heesub Shin [Thu, 13 Apr 2017 06:45:10 +0000 (15:45 +0900)]
wireless/scsc: introduce up_wlan_get_mac_addr()
This commit renames s5j_efuse_get_mac_addr() to up_wlan_get_mac_addr().
Change-Id: Ib46a169c4aa1527d6afab075d35c6005efe9be85
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Heesub Shin [Thu, 13 Apr 2017 06:01:20 +0000 (15:01 +0900)]
artik053: remove artik053_nvram.c
artik053_nvram.c contains functions that access NVRAM configuration data
for WiFi. For consistency, move the contents of s5jt200_nvram.c to
s5jt200_wlan.c which is for wireless stuff.
Change-Id: I51cd1fc8cbae6e9cfc250998a549e373a42b1e52
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Heesub Shin [Thu, 13 Apr 2017 05:49:31 +0000 (14:49 +0900)]
sidk_s5jt200: remove s5jt200_nvram.c
s5jt200_nvram.c contains functions that access NVRAM configuration data
for WiFi. For consistency, move the contents of s5jt200_nvram.c to
s5jt200_wlan.c which is for wireless stuff.
Change-Id: I2ca33c487f18e44d1a5708b77fd7baf62b7919cc
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Heesub Shin [Thu, 13 Apr 2017 05:43:54 +0000 (14:43 +0900)]
wireless/scsc: introduce up_wlan_init()
wlan_initup() is called during wifi driver setup for initializing
board-specific things. To follow the convention, rename it to
up_wlan_init().
Change-Id: I7064aead73105ddb847af6aee30058efd7e6105e
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Heesub Shin [Thu, 13 Apr 2017 05:40:10 +0000 (14:40 +0900)]
sidk_s5jt200: make wlan_init() static
wlan_init() is dereferenced by up_wlan_init() only. Let's make it
static.
Change-Id: Ia0e716a4d27e4c89ceb763f7a39314cb654dad6a
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Heesub Shin [Thu, 13 Apr 2017 05:37:35 +0000 (14:37 +0900)]
sidk_s5jt200: move wlan_initup() to s5jt200_wlan.c
wlan_initup() should be moved to s5jt200_wlan.c that contains
WiFi related functions.
Change-Id: Ic0148e29195d648d198ac187f6a72da3ece6ef2b
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Heesub Shin [Thu, 13 Apr 2017 05:32:30 +0000 (14:32 +0900)]
sidk_s5jt200: rename wlan.c to s5jt200_wlan.c
s/wlan.c/s5jt200_wlan.c/
Change-Id: I0578ae9288b838eb67ca65b9396c7635ebcd1b14
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Heesub Shin [Thu, 13 Apr 2017 05:28:48 +0000 (14:28 +0900)]
artik053: reorder #include
Standard headers should appear before the other application-specific
things.
Change-Id: I430985ae495609ceb979c30478fdd89ed7373aa5
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Heesub Shin [Thu, 13 Apr 2017 05:27:19 +0000 (14:27 +0900)]
sidk_s5jt200: clean up wlan.c
Removes unnecessary code lines and #include.
Change-Id: Ie2b6cd2f2d8cff41753fde5ca52314df4eae52f7
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Junhwan Park [Thu, 13 Apr 2017 02:36:43 +0000 (11:36 +0900)]
examples/sensorbd_demo: fix spi example
Fix spi examples on sensor board.
Change-Id: Ib44e4e3afd51aed12db958c03bacc18d95cb5a4a
Signed-off-by: Junhwan Park <junhwan.park@samsung.com>
Wonsang Ryou [Tue, 11 Apr 2017 08:55:47 +0000 (17:55 +0900)]
build: renew "Build Time" whenever building a new image
This patch renews .version and version.h whenever building a new
tizenrt image.
Change-Id: Idd6ddbc863ba98c42293599fb02d2bfcc3e69056
Signed-off-by: Wonsang Ryou <wonsang.yoo@samsung.com>
Junyeon LEE [Wed, 12 Apr 2017 09:01:34 +0000 (18:01 +0900)]
net/tls: indicate the platform specific patch
This commit indicates the TIZENRT specific patch and fixes
minor bug in net.c
Change-Id: I2c8c2f44195077137118b87a40bccb43e2e838cd
Signed-off-by: Junyeon LEE <junyeon2.lee@samsung.com>
Heesub Shin [Thu, 13 Apr 2017 02:23:50 +0000 (11:23 +0900)]
testcase: fix compilation error
TC_ASSERT_EQ_CLEANUP() was written wrongly and causes compilation errors
as following:
CC: ta_tc/systemio/itc/itc_uart.c
In file included from ta_tc/systemio/itc/itc_internal.h:22:0,
from ta_tc/systemio/itc/itc_uart.c:34:
ta_tc/systemio/itc/itc_uart.c: In function 'itc_iotbus_uart_write_read_p':
ta_tc/systemio/itc/itc_uart.c:163:51: error: suggest parentheses around comparison in operand of '!=' [-Werror=parentheses]
TC_ASSERT_EQ_CLEANUP("iotbus_uart_write", ret < 0, false, "Not able to write", iotbus_uart_stop(h_uart));
^
ta_tc/systemio/itc/../../../tc_common.h:48:6: note: in definition of macro 'TC_ASSERT_EQ_CLEANUP'
if (var != ref) {\
^
ta_tc/systemio/itc/itc_uart.c:168:50: error: suggest parentheses around comparison in operand of '!=' [-Werror=parentheses]
TC_ASSERT_EQ_CLEANUP("iotbus_uart_read", ret < 0, false, "Not able to read", iotbus_uart_stop(h_uart));
^
ta_tc/systemio/itc/../../../tc_common.h:48:6: note: in definition of macro 'TC_ASSERT_EQ_CLEANUP'
if (var != ref) {\
^
cc1: all warnings being treated as errors
This commit fixes this.
Change-Id: I5b026b59e5e04925bec1c732cbb7de549d76fb7b
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
EunBong Song [Wed, 12 Apr 2017 23:29:05 +0000 (08:29 +0900)]
netutils/wifi: fix data abort in monitor thread on exit
Caused by the fact that both monitor and main task made calls to
supplicant and 'terminate' overtook 'remove network' comamnd. Solution
made by not ot release sem_wait until after completion.
Change-Id: Iccf1e4b8c6be350fd72c86f4c3e88a233171252e
Signed-off-by: Trine Borgbjerg Jensen <trine.jensen@samsung.com>
Signed-off-by: EunBong Song <eunb.song@samsung.com>
Sangsoon Lim [Tue, 11 Apr 2017 04:33:39 +0000 (13:33 +0900)]
net: modify network Kconfig entries for socket
Configuration sync with Tizen RT spin git for socket and tcp.
Change-Id: Iebfaf0d290e3dbb253d41c978a308469ee889092
Junyeon LEE [Tue, 11 Apr 2017 09:44:59 +0000 (18:44 +0900)]
net/tls: clean up the security apis
This commit cleans up the security apis.
. Diversify return values for debugging
. Remove all unused definitions
Change-Id: I1e7427dd5289b40c019e16411326d3292cf3a030
Signed-off-by: Junyeon LEE <junyeon2.lee@samsung.com>
Junyeon LEE [Tue, 11 Apr 2017 08:59:41 +0000 (17:59 +0900)]
net/tls: simplify sss certificate api
By removing certificate type dependency, sss storage can store
all types of certificate.
Change-Id: I9ff8037fe840ba8a7f2d5465b2e7d5e31a0809d7
Signed-off-by: Junyeon LEE <junyeon2.lee@samsung.com>
EunBong Song [Tue, 11 Apr 2017 06:55:05 +0000 (15:55 +0900)]
net lwip: disable priority inheritance on all signaling semaphores
Disable priority inheritance on all semaphores used for signaling in lwip.
Change-Id: I8c01ddf8c0ff588cbb9948085d6e08986f5b2886
Signed-off-by: EunBong Song <eunb.song@samsung.com>
Jin-Seong Kim [Tue, 11 Apr 2017 05:00:19 +0000 (14:00 +0900)]
netutils/dhcpc: minor patch for handling exception cases
This commit is the patch to handling exception cases
- when abnormal interface name is coming from applications,
dhcpc should not run
- arguments used by dhcpc_request must not be null
Change-Id: I4c3639b9b18f4e5ceee91648241981622695c0d1
Signed-off-by: Jin-Seong Kim <jseong82.kim@samsung.com>
Jin-Seong Kim [Tue, 11 Apr 2017 04:47:39 +0000 (13:47 +0900)]
netutils/dhcpd: minor patch for handling exception cases
This commit is the patch to handling exception cases
- when abnormal interface name is coming from applications,
dhcpd should not run
- dhcpd_run always return OK, it is not good to handle operation
of dhcpd in application
Change-Id: I88249dabd727fdd1f8af5a6749efc99ded56406f
Signed-off-by: Jin-Seong Kim <jseong82.kim@samsung.com>
Junyeon LEE [Tue, 11 Apr 2017 07:35:59 +0000 (16:35 +0900)]
net/tls: removes unused files
This commit removes all legacy files in tls library
Change-Id: I8fc6e509fb79a0785fc2793c228290b604711372
Signed-off-by: Junyeon LEE <junyeon2.lee@samsung.com>
Junyeon LEE [Tue, 11 Apr 2017 01:52:29 +0000 (10:52 +0900)]
netutils/webserver: fix closing function
This commit fixes the way of closing webserver thread.
Sometimes webserver can't kill the child pthread properly
and it causes some problem.
Change-Id: I2a2b1d95970f1e84fdcd4a51b9fa5ab25f7b70fd
Signed-off-by: Junyeon LEE <junyeon2.lee@samsung.com>
Junyeon LEE [Tue, 11 Apr 2017 01:46:13 +0000 (10:46 +0900)]
net/tls: fix mutex bug with cookie context
Uninitialized mutex context has possible to make data abort and
fixes it with this commit. Excepts this patch, ssl context can't
get a mutex.
Change-Id: I942e8bf8e971206eeb58e5d68e3ec9458270f614
Signed-off-by: Junyeon LEE <junyeon2.lee@samsung.com>
Junyeon LEE [Tue, 11 Apr 2017 01:09:00 +0000 (10:09 +0900)]
apps/examples: tidy up bit
Fixes trivial coding style issues.
Change-Id: I597e99c043081b15d04ab17ea40558686d0084fc
Signed-off-by: Junyeon LEE <junyeon2.lee@samsung.com>
Ivan [Tue, 11 Apr 2017 13:53:08 +0000 (22:53 +0900)]
s5j/pwrcal: add to support SPI frequency
Change-Id: I4a19d4a1e47e29ebf385983109bf6aa85f8efa6b
Signed-off-by: Ivan <ivan.galkin@samsung.com>
EunBong Song [Mon, 10 Apr 2017 22:53:15 +0000 (07:53 +0900)]
sidk_s5jt200: specify tagno when creating an mtd partition
There is no knob for finding mtd part using get_mtd_partition().
This patch adds partno info for providing knob in
sidk_s5jt200_configure_partitions.
Change-Id: I482bc2919a14135555943369e7f42b4161d68557
Signed-off-by: EunBong Song <eunb.song@samsung.com>
EunBong Song [Mon, 10 Apr 2017 22:52:30 +0000 (07:52 +0900)]
artik053: specify tagno when creating an mtd partition
There is no knob for finding mtd part using get_mtd_partition().
This patch adds partno info for providing knob in
artik053_configure_partitions.
Change-Id: Ifa1004a471c66f0a0ff6d42935985ad53a10c7f1
Signed-off-by: EunBong Song <eunb.song@samsung.com>
EunBong Song [Tue, 11 Apr 2017 23:32:52 +0000 (08:32 +0900)]
drivers/serial: simplify signaling method
Commit
ca9015e7 set xmitsem as a signaling semaphore. So we do not need
to use sem_wait_for_isr and sem_post_from_isr for xmitsem.
Change-Id: I4d895429f5f55014be463721bf642d513593d3ae
Signed-off-by: EunBong Song <eunb.song@samsung.com>
Heesub Shin [Wed, 12 Apr 2017 09:07:16 +0000 (18:07 +0900)]
s5j: remove NVRAM_WIFI_START Kconfig knob
NVRAM_WIFI_START is a Kconfig knob for the physical address on the flash
where the NVRAM data is stored to. This commit removes it because we are
not using it any more. All other related code lines are also removed.
Change-Id: Ia6d87091d9063e726fe744c5d3fc62ad8cc9cf0b
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Heesub Shin [Wed, 12 Apr 2017 08:27:39 +0000 (17:27 +0900)]
netutils/wifi: rework nvram interfaces
Every boards that are based on S5J should implement Nv_Read/Write/Erase
that provide access NVRAM region WLAN configuration is stored to. The
interface names looks a little bit weird and their prototypes are
passing unnecessary parameters as well. Not only that, it is breaking
the OS design, specifying the physical address where the NVRAM data is
stored to. As flash partition layout might vary in board to board, upper
layer should not have any assumption on it. So, we need to redesign
those interfaces completely new.
This commit renames them to up_wlan_read/write/erase_config() and
changes function prototypes. Unnecessary or board-specific parameters
are dropped. They can be implemented in various manners suited to each
boards, though mtd_config device is being used to store the NVRAM data
in this commit.
Change-Id: I7d50de06f88a4b4ed58c16cc4f3634d5526633eb
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Heesub Shin [Wed, 12 Apr 2017 07:33:01 +0000 (16:33 +0900)]
drivers/wireless: clean up Kconfig hierarchy
Kconfig entries for SCSC should be under drivers/wireless/scsc/Kconfig
as it is SCSC-specific.
Change-Id: I9bd0635080bec284e09eac8ecf97a18e8fc9a96e
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Heesub Shin [Wed, 12 Apr 2017 07:26:29 +0000 (16:26 +0900)]
drivers/wireless: simplify Kconfig
Removes unnecessary lines in Koncfig files for better readability and
maintainability.
Change-Id: I1ae7ddd400c26a7e01873261b619e6b6b3d5f944
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Heesub Shin [Wed, 12 Apr 2017 07:18:20 +0000 (16:18 +0900)]
drivers/wireless: fix incorrect Kconfig entry
SCSC_PLATFORM should be a boolean, not a tristate. This commit fixes it
and set its default configuration as 'n'.
Change-Id: I0cc4b5d145d291e5d5ef3240e964f5e8718e235f
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Heesub Shin [Wed, 12 Apr 2017 07:10:35 +0000 (16:10 +0900)]
drivers/wireless: remove unused Kconfig entries
SCSC_CORE_CM and SCSC_MMAP are not in use. This commit removes them.
Change-Id: I97bb01f1ddd957c2f3c1e35e0b163efe24f4ccb3
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Heesub Shin [Thu, 30 Mar 2017 01:19:11 +0000 (10:19 +0900)]
wifi: build wifi binaries from source code
So far, prebuilt libraries has been linked into the final output. This
is problematic because prebuilt libraries might get mismatched with
others when global OS configuration has changed.
To avoid this, we have decided to put the full source of those prebuilt
libraries into TizenRT, so that they can be built fresh from the ground
up.
Change-Id: I467c6fe9c85c3fc69132b7b745564198e3dfbac7
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Jin-Seong Kim [Tue, 11 Apr 2017 04:26:04 +0000 (13:26 +0900)]
lwip: fix a compilation error
This commit is to fix compilation error due to NET_ARP_TABLE_SIZE
according to lwipopts.h, CONFIG_NET_ARP_TABLESIZE is intended
configuration.
Change-Id: Id9fd2a52117c7c4b739e64c452e31d2aecb0a69e
Signed-off-by: Jin-Seong Kim <jseong82.kim@samsung.com>
Heesub Shin [Mon, 10 Apr 2017 05:27:54 +0000 (14:27 +0900)]
drivers/gpio: rename internal functions
Internal functions in the GPIO upper-half driver, gpio_fopen/fclose()
reminds me of fopen/fclose() in C runtime. To follow the convention in
other upper-half drivers, remove 'f' prefix from their name.
Change-Id: I87f2e707cce3320e6d45771eb902d04e004547e7
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Heesub Shin [Mon, 10 Apr 2017 05:25:37 +0000 (14:25 +0900)]
drivers/gpio: make macros uppercase
Macro functions should be uppercase like in other parts of TizenRT or
NuttX.
Change-Id: Idd95577fa99149212cf9fbecf44a93f52ad01d85
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Heesub Shin [Mon, 10 Apr 2017 05:15:24 +0000 (14:15 +0900)]
s5j/gpio: split GPIO driver into two parts
This commits splits the GPIO driver into two parts. The first part will
handle GPIO pinmux control and the other will have lower-half driver
implementation. This is a preparation step for redesigning GPIO stuff.
Subsequent commits will rework GPIO things.
Change-Id: Id90d6a806dc6ede98b6cf5b3c5d431152a7fb17b
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Sangsoon Lim [Mon, 10 Apr 2017 06:23:42 +0000 (15:23 +0900)]
net: clean up network Kconfig entries
Configuration sync with Tizen RT spin git
Change-Id: Ia92d83312c9b7e9c02fe8a197b894ce0c47de4b3
Signed-off-by: Sangsoon Lim <ssoon.lim@samsung.com>
Jin-Seong Kim [Mon, 10 Apr 2017 06:10:30 +0000 (15:10 +0900)]
dns: move dns_add_nameserver() to dhcpc
This commit is to change the place dns_add_nameserver function
when CONFIG_NETDB_DNSSERVER_BY_DHCP enabled, dns server IP address
is configured by using received dhcp message
without using ifconfig command, dns server can not be configured
so that to prevent the dns server configuration problem
we've changed the place of dns_add_nameserver to dhcpc
Change-Id: Iccf8be5aa601d87fecf42e0f0662c09779312342
Signed-off-by: Jin-Seong Kim <jseong82.kim@samsung.com>
Junyeon LEE [Mon, 10 Apr 2017 08:42:55 +0000 (17:42 +0900)]
examples/tls_client: support client key authentication
This commit adds key parsing routine in client example. Because
sometimes server requires client's signature for authentication.
Change-Id: Iddcf87417bac0e4eba092df845ee20b00597fad5
Signed-off-by: Junyeon LEE <junyeon2.lee@samsung.com>
Jin-Seong Kim [Mon, 10 Apr 2017 02:13:05 +0000 (11:13 +0900)]
external/wakaama: fix a trivial compilation error
This commit fixes a build error. The length of socket address should be
sa->sa_len = p->ai_addrlen with CONFIG_NET_LWIP configuration.
Change-Id: I88f396abd32ae805a157a62198ba36750294d7d4
Signed-off-by: Jin-Seong Kim <jseong82.kim@samsung.com>
Junhwan Park [Mon, 10 Apr 2017 07:00:53 +0000 (16:00 +0900)]
examples/sensorbd_demo: fix spi port
The sensor board's lis3lv02qd is connected to spi2.
Change-Id: I6e42419e021ea16389f95d77becd2298aab6f1f4
Signed-off-by: Junhwan Park <junhwan.park@samsung.com>
Junyeon LEE [Mon, 10 Apr 2017 10:30:12 +0000 (19:30 +0900)]
net/tls: change default cache entry number
This commit minimizes the default maximum entry count for memory saving.
Change-Id: Ic7d7578fb5e41530d56dc86b0b46df573fe87e74
Signed-off-by: Junyeon LEE <junyeon2.lee@samsung.com>
Junyeon LEE [Mon, 10 Apr 2017 09:48:28 +0000 (18:48 +0900)]
examples/tls_self: simplify the selftest example
This commit simplifies the tls selftest example and makes
result printing currectly.
Change-Id: I70cc9156b1f0e57ca6869095db8034b314b1c0df
Signed-off-by: Junyeon LEE <junyeon2.lee@samsung.com>
Junyeon LEE [Mon, 10 Apr 2017 08:40:44 +0000 (17:40 +0900)]
netutils/websocket: adds websocket status update function
This commit updates missing status change. Websocket server can't
establishes the websocket_handler thread without changing status.
Change-Id: I98999a30983a1936740923ef36b194589be9f179
Signed-off-by: Junyeon LEE <junyeon2.lee@samsung.com>
EunBong Song [Mon, 10 Apr 2017 10:07:57 +0000 (19:07 +0900)]
testcase: simplify vfork test
This patch simplify vfork test logic.
Change-Id: I571b25d89962fa9f45715406c48d5d5a1de46395
Signed-off-by: EunBong Song <eunb.song@samsung.com>
EunBong Song [Mon, 10 Apr 2017 10:01:09 +0000 (19:01 +0900)]
testcase: fix up tc_roundrobin.c problem
tc_roundrobin try to create 15 pthread. In case of CONFIG_MAX_TASKS is
16 or smaller than 16. This should fail. This patch fix up this problem.
Change-Id: I0e773d275db29a262a0acf4cd7f66c1abdf3e734
Signed-off-by: EunBong Song <eunb.song@samsung.com>
EunBong Song [Mon, 10 Apr 2017 09:58:49 +0000 (18:58 +0900)]
testcase: fix up tc_clock.c problem
clock_initialize() function should be called when os startup.
So calling this function in testcase app is not proper. So remove this tc.
tc_clock_clock_abstime2ticks() verify clock_abstime2ticks() function.
And this function multiply current seconds 2 times. And this cause overflow.
I think it's enough just 1 second add for verification.
Change-Id: Ice56ec8df934565b6d4e7019c4708522648f581a
Signed-off-by: EunBong Song <eunb.song@samsung.com>
EunBong Song [Mon, 10 Apr 2017 05:55:52 +0000 (14:55 +0900)]
pthread: fix pthread_mutexattr_init()
It was not initialzing the protocol field when priority inheritance is
enabled. All credits should go to Gregory Nutt who wrote the original
commit.
Change-Id: Ib50bf1c0e4d21d306492c50d944dc6a03e5e2bc7
Signed-off-by: Gregory Nutt <gnutt@nuttx.org>
[Song: backported
769427ed from NuttX]
Signed-off-by: EunBong Song <eunb.song@samsung.com>
Ivan [Mon, 10 Apr 2017 18:41:33 +0000 (03:41 +0900)]
s5j/spi: fix initialization bug of SPI driver
Durung code rework, hardcoding was replaced by macro definitions.
Function setmode had to have inverted MASK to clear bitfields.
It was not invered, therefore all bits except mode were cleared.
Change-Id: Ib7ca3e00f81b55d7c8593a55091ea00e05047853
Signed-off-by: Ivan <ivan.galkin@samsung.com>
Heesub Shin [Mon, 10 Apr 2017 02:12:03 +0000 (11:12 +0900)]
drivers/gpio: tidy up a bit
Fixes trivial coding styles.
Change-Id: I1fc80dce0cea0aa8f92ebff8bf79e5a2fef5bf11
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Heesub Shin [Mon, 10 Apr 2017 02:01:08 +0000 (11:01 +0900)]
sidk_s5jt200: s/s5j_gpioinitialize/board_gpio_initialize/
The name of s5j_gpioinitialize() seems so ambiguous that does not
represent its characteristics of board-specific. Let's rename it for
better consistency, removing the prefix 's5j'.
Change-Id: I8c77e9d93ae264a59825cacddcc39f5cb0bdd253
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Heesub Shin [Mon, 10 Apr 2017 01:55:05 +0000 (10:55 +0900)]
artik053: s/s5j_gpioinitialize/board_gpio_initialize/
The name of s5j_gpioinitialize() seems so ambiguous that does not
represent its characteristics of board-specific. Let's rename it for
better consistency, removing the prefix 's5j'.
Change-Id: Ieeef41afa84b27d79498dc26f680c831dce5881b
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Heesub Shin [Mon, 10 Apr 2017 01:32:34 +0000 (10:32 +0900)]
sidk_s5jt200: remove unused code lines
board_button_irq() and board_button_handler() are not in use, as
there is no Kconfig entry that enables them. Let's remove them. We can
add it later when we need it again.
Change-Id: Id1365e300926886aaa0eac010d9e6a482ed3fcdf
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Heesub Shin [Mon, 10 Apr 2017 01:26:36 +0000 (10:26 +0900)]
sidk_s5jt200: clean up s5jt200_buttons.c
Fixes trivial coding styles.
Change-Id: Iaaee10a7ee9363e8b4c2d066b4a81c00bfca3e5d
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Heesub Shin [Mon, 10 Apr 2017 00:28:14 +0000 (09:28 +0900)]
s5j/sflash: fix a link error
This commit fixes a link error that occurs on a specific combination of
configurations.
/home/heesub/Documents/artik053/tizenrt/os/../build/output/libraries/libarch.a(s5j_sflash.o): In function `s5j_sflash_init':
/home/heesub/Documents/artik053/tizenrt/os/arch/arm/src/chip/s5j_sflash.c:258: undefined reference to `lldbg'
Makefile:187: recipe for target '../build/output/bin/tinyara' failed
Change-Id: I76047db6d86a2c244f245ba52380b45118ddb981
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Heesub Shin [Sun, 9 Apr 2017 10:07:11 +0000 (19:07 +0900)]
arm: s5j: remove up_gpioinitialize()
up_gpioinitialize() was invented while we were working on the BSP for
BCM4390x. Its purpose was for initializing GPIO ports and registering
device nodes for them during the boot sequence, but it was a bad idea.
Available GPIO ports may varies from device to device. This means that
exporting which GPIO ports should be decided at board initialization,
not OS or chip initialization. Having up_gpioinitialize() at the
chip-specific layer is breaking the OS design.
This is why up_gpioinitialize() had been left abandoned for a long time
and finally become an empty function. It is time to remove it
completely. This commit does not make any functional differences.
Change-Id: I0217b377050613502933f4b6ba7b8024ff9937f1
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Heesub Shin [Sun, 9 Apr 2017 09:32:58 +0000 (18:32 +0900)]
s5j/i2c: remove s5j_i2c_reset()
s5j_i2c_reset() is not in use. It is compiled only when we have enabled
CONFIG_I2C_RESET which depends on ARCH_HAVE_I2CRESET, but it is never
set in S5J platform. Both Kconfig knobs have never been enabled, so
there is no point in having s5j_i2c_reset(). This commit removes it.
This commit does not make any functional differences.
Change-Id: Ia14f169fee75d0b4bde60595b020f5a8bf93895f
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Heesub Shin [Sun, 9 Apr 2017 09:24:03 +0000 (18:24 +0900)]
drivers: clean up duplicated Kconfig entries
I2C Kconfig entries are heavily duplicated. This commit fixes it.
Though some of them seems to be broken at this moment, this commit does
not fix it. It will be fixed subsequent commits if really needed.
Change-Id: I387c770d655605746d7947fe15ba5f366de6ce78
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>