Junyeon LEE [Fri, 28 Apr 2017 13:16:00 +0000 (22:16 +0900)]
external/wakaama: initiative TLS supporting version of lwm2m
This commit ports the lwm2m connection layer with mbedTLS.
Now that wakaama supports UDP, TCP, TLS connection.
Change-Id: I12c6a2e43b1776301674b05d50106d5f000410a2
Signed-off-by: Junyeon LEE <junyeon2.lee@samsung.com>
Jin-Seong Kim [Fri, 28 Apr 2017 05:48:55 +0000 (14:48 +0900)]
configs: enable dhcpd by default
This commit is to add dhcpd on artik053/nettest and sidk_s5jt200/sidk_tash_wlan
- to fully support Wi-Fi softAP functionality, dhcpd should be enabled
Change-Id: I589765a24f24ad40ce9cf19c15feb611b4e730c1
Signed-off-by: Jin-Seong Kim <jseong82.kim@samsung.com>
Siwon Kang [Fri, 28 Apr 2017 04:30:52 +0000 (13:30 +0900)]
os/Kconfig: change shape of debug structure of WLAN in the Kconfig
This changes structure of debug flags of WLAN. The ERROR becomes subset
of WLAN_DEBUG. This modification also includes smarter if-condition and
depends-on check for enabling/disabling a certain config.
Change-Id: I5ce5f31eb9b1f3da26e2c7e2656d71bf2d5a5c5f
Signed-off-by: Siwon Kang <sw0809.kang@samsung.com>
Gregory Lemercier [Tue, 18 Apr 2017 15:53:43 +0000 (17:53 +0200)]
netutils/mdns: add support for exposing services
Add API to mDNS responder to expose some services through mDNS-SD.
Code has been copied from https://bitbucket.org/geekman/tinysvcmdns,
which seems to be the mDNS implementation NuttX based its support on.
Change-Id: I8930f3005eb35bec196173f760f62a1077c85797
Signed-off-by: Gregory Lemercier <g.lemercier@samsung.com>
EunBong Song [Thu, 27 Apr 2017 05:28:26 +0000 (14:28 +0900)]
apps/iperf: fix error of dumping 1st stat
Change-Id: I81872db1bb08daa57cdbc1ee308830d1a2448c4e
Signed-off-by: EunBong Song <eunb.song@samsung.com>
EunBong Song [Thu, 27 Apr 2017 05:25:28 +0000 (14:25 +0900)]
apps/iperf: do not use linked list for stat info
commit id
c9dd4c5a disables malloc for each interval stat. And use one
static one structure for interval stat. So linked list does not need
for stat info. This patch changes for interval using signle pointer
instaed of linked list.
Change-Id: If30c0ad9d30ed7adf6e752dacd67a531333e5fda
Signed-off-by: EunBong Song <eunb.song@samsung.com>
EunBong Song [Thu, 27 Apr 2017 05:17:14 +0000 (14:17 +0900)]
apps/iperf: add iperf_api semaphore on reporter callback
when iperf bi-directional test, freelist array value has been corrupted
due to simultaneous access on it.
- freelist array is used on __dtoa function called by snprintf
- it causes data abort during a long-run test
iperf reporter callback function is called by timer interrupt so,
to guarantee completion of it we've added semaphore on reporter callback
function.
Change-Id: Ib0549de6c850008eb825a6d484205c0b84725b6d
Signed-off-by: Jin-Seong Kim <jseong82.kim@samsung.com>
Signed-off-by: EunBong Song <eunb.song@samsung.com>
EunBong Song [Thu, 27 Apr 2017 05:11:21 +0000 (14:11 +0900)]
apps/iperf: fixes memory leakage issue on iperf client
when iperf client is closed by exit(1) function at error case,
tash_cmdthread cannot run its free routine since TinzenRT exit function
delets task_pcb without considering memory.
to prevent memory leakage on iperf client error case, add patch as below
1) use return instead of exit function
2) free allocated memeory before exit cmdthread
Change-Id: I777967d26db33fc3c554d1b4ece832c195978d32
Signed-off-by: Jin-Seong Kim <jseong82.kim@samsung.com>
Signed-off-by: EunBong Song <eunb.song@samsung.com>
EunBong Song [Thu, 27 Apr 2017 05:04:31 +0000 (14:04 +0900)]
apps/iperf: cleanup timer when test is terminated
Add missing cleanup timer when test is terminated.
Change-Id: I2a3d80348e942f4b2ffec9bdd6cf697c65826668
Signed-off-by: EunBong Song <eunb.song@samsung.com>
EunBong Song [Thu, 27 Apr 2017 04:59:15 +0000 (13:59 +0900)]
apps/iperf: fix socket leak
iperf never close the iperf control socket.
Change-Id: Iad6fa4441501af956369539e5a06e3ec2555dded
Signed-off-by: Changsoon Kim <cs0424.kim@samsung.com>
Signed-off-by: EunBong Song <eunb.song@samsung.com>
EunBong Song [Thu, 27 Apr 2017 03:49:34 +0000 (12:49 +0900)]
apps/iperf: fix not displaying bandwidth in udp
This patch allows iperf to display bandwidth/transfer in udp rx.
Change-Id: I50378f7c6ae5da29cd5d82796b3e8ee25defba98
Signed-off-by: Byoungtae Cho <bt.cho@samsung.com>
Signed-off-by: EunBong Song <eunb.song@samsung.com>
EunBong Song [Thu, 27 Apr 2017 02:48:06 +0000 (11:48 +0900)]
apps/iperf: increase multisend count
Default iperf has multisend = 10, But our iperf is 1.
This causes low transmit rates.
Change-Id: I1cb592f4f10a4942325ad7fbf6c6e3361ee5297a
Signed-off-by: Byoungtae Cho <bt.cho@samsung.com>
Signed-off-by: EunBong Song <eunb.song@samsung.com>
EunBong Song [Thu, 27 Apr 2017 02:46:49 +0000 (11:46 +0900)]
apps/iperf: disable malloc each interval time
This patch removes memory-allocation each interval time. Iperf allocates
the memory to save their results each interval time. But RTOS has
constraint of memory usages.
Change-Id: I713d9144ca781f8af2879b64e1fd7f11bd65bd91
Signed-off-by: Byoungtae Cho <bt.cho@samsung.com>
Signed-off-by: EunBong Song <eunb.song@samsung.com>
Parkjihoon [Thu, 27 Apr 2017 15:37:02 +0000 (00:37 +0900)]
sidk_s5jt200: cfg uses 0x04000000 address for FLASH access
There is no reason to use mirror address of FLASH, so use 0x04000000
address which is consistent with actual base address of each binary.
Change-Id: I964a910b6dc05baae63f53d22813e1aa851fe2a4
Signed-off-by: Jihoon Park <jh6186.park@samsung.com>
Bongryul Lee [Fri, 28 Apr 2017 16:01:04 +0000 (01:01 +0900)]
examples/sensorbd_demo: play a simpler scale instead of a melody
sensorbd_demo contains an example to show the PWM features S5J provides.
It generates pulse of various frequency to make a buzzer sound or
adjusts the brightness of light emitted by LEDs attached to it by
changing the duty cycle.
This commit changes frequencies and duty cycles for buzzer sound in the
sense that it would be better to play a simpler scale rather than to
play some melody.
Change-Id: Ie566ade9d52101a0feca700dc9a11f02fde5590c
Signed-off-by: Bongryul Lee <bongryul.lee@samsung.com>
Bongryul Lee [Thu, 20 Apr 2017 11:56:46 +0000 (20:56 +0900)]
s5j/pwm: rework pwm lower-half driver
This commit rewrites PWM driver in completely new. Every code lines were
reviewed and then any redundant or unnecessary code lines have been
removed. This reduces binary footprints of PWM driver quite a lot as
following:
Before:
text data bss dec hex filename
1755 160 386 2301 8fd s5j_pwm.o
After:
text data bss dec hex filename
655 72 0 727 2d7 s5j_pwm.o
Change-Id: If2a4e46e47e4c2d7225abfa8419e1ccf76fb08a9
Signed-off-by: Bongryul Lee <bongryul.lee@samsung.com>
Bongryul Lee [Thu, 20 Apr 2017 11:54:39 +0000 (20:54 +0900)]
drivers/pwm: update pwm upper-half driver
This commit updates the upper-half driver of PWM, synchronizing with the
latest version of NuttX. With this commit, supporting multi-channels is
added. All credits should go to many other contributors who wrote the
original patches for NuttX.
Change-Id: Iee6fae87cfbafc71c48766c434d8922a0f394024
Signed-off-by: Bongryul Lee <bongryul.lee@samsung.com>
Junhwan Park [Fri, 28 Apr 2017 09:20:35 +0000 (18:20 +0900)]
examples/sensorbd_demo: remove .o files at 'make clean'
The object files in the subdir were not deleted when the Makefile was
cleaned. This patch contains fixes for those bugs.
Change-Id: I9074ceef276b49cdc7c4071d6737fdbc990148c6
Signed-off-by: Junhwan Park <junhwan.park@samsung.com>
Heesub Shin [Fri, 28 Apr 2017 09:27:12 +0000 (18:27 +0900)]
examples/sensorbd_demo: fix starterled test
Since we reworked the entire GPIO layer, 'sensorbd ledst' command have
been broken. This commit fixes it.
Change-Id: I2ca80ac611155a68d86acefceea61bfbf5146afc
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Heesub Shin [Fri, 28 Apr 2017 08:49:02 +0000 (17:49 +0900)]
artik053: sidk_s5jt200: do not override optimization level
The optimization level should be determined by .config. It should not be
redefined here. This commit fixes the issue that CONFIG_DEBUG_OPTLEVEL
is not working.
Change-Id: Ic52d2d4b37e44ce497519fc53e3593c9f96f882c
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Jin-Seong Kim [Wed, 26 Apr 2017 08:40:33 +0000 (17:40 +0900)]
external/wakaama: patch to support TCP connection on example
This commit is patch to support TCP connection on example
Change-Id: I08c41bede6520f449516ee06c99e97018ed70248
Signed-off-by: Jin-Seong Kim <jseong82.kim@samsung.com>
Jin-Seong Kim [Wed, 26 Apr 2017 08:57:36 +0000 (17:57 +0900)]
external/wakaama: wakaama core, add missed patch to support TCP/TLS as per RFC
This commit is adding missed patch to support TCP/TLS on wakaama
Change-Id: I18dd510dcb0d346e4acfaf92bc5f7ef0bc5ccfbb
Signed-off-by: Jin-Seong Kim <jseong82.kim@samsung.com>
Jin-Seong Kim [Wed, 26 Apr 2017 05:08:06 +0000 (14:08 +0900)]
external/wakaama: delete tinydtls files
This commit is patch to delete tinydtls files
- TizenRT will use mbedTLS library instead of tinydtls
so tinydtls files will not be used on TizenRT
Change-Id: I9e7857a12566a065e0d852845f6348d4a88a8fc6
Signed-off-by: Jin-Seong Kim <jseong82.kim@samsung.com>
Junhwan Park [Wed, 26 Apr 2017 08:09:46 +0000 (17:09 +0900)]
external/Kconfig: remove useless default statement
There is no need for 'default' statement for choice entries. This commit
suppresses warnings from kconfig-mconf.
Change-Id: I199b404ef543de7332496bd3afad2bef184ebfec
Signed-off-by: Junhwan Park <junhwan.park@samsung.com>
EunBong Song [Thu, 27 Apr 2017 02:04:48 +0000 (11:04 +0900)]
examples/eeprom_test: add missing Make.defs
This patch adds Make.defs file for eeprom_test.
Change-Id: I130ecdcf8c6bda9df2309f7ce302632683c6af25
Signed-off-by: EunBong Song <eunb.song@samsung.com>
EunBong Song [Thu, 27 Apr 2017 00:34:21 +0000 (09:34 +0900)]
testcase: fix compilation errors in tc_net_ether.c
This patch fixes following compilation errors:
le_tc/network/tc_net_ether.c: In function 'tc_net_ether_ntoa_p':
le_tc/network/tc_net_ether.c:73:9: error: assignment makes pointer from integer without a cast [-Werror]
buffer = ether_ntoa((struct ether_addr *)sa->sa_data);
^
le_tc/network/tc_net_ether.c:54:12: error: unused variable 'intf' [-Werror=unused-variable]
FAR char *intf = "wl1";
^
cc1: all warnings being treated as errors
Change-Id: Ia5926c35f53dd411af2c8a365bbfa961b5b4e57d
Signed-off-by: EunBong Song <eunb.song@samsung.com>
EunBong Song [Thu, 27 Apr 2017 00:11:28 +0000 (09:11 +0900)]
testcase: remove dhcp server test from le_tc
dhcp server test in le_tc is a testcase for lwip dhcp server. TizenRT
does not support any more this. This should be re-implemented for
apps/netutils/dhcpd.
Change-Id: I9e33f317e7e48723f278bc1ac49a30e0cb040627
Signed-off-by: EunBong Song <eunb.song@samsung.com>
EunBong Song [Wed, 26 Apr 2017 23:59:33 +0000 (08:59 +0900)]
testcase: fix a compilation error
This patch fixes following compilation error:
CC: le_tc/filesystem/fs_main.c
le_tc/filesystem/fs_main.c: In function 'fs_vfs_select_tc':
le_tc/filesystem/fs_main.c:1260:11: error: unused variable 'c' [-Werror=unused-variable]
int ret, c, errcnt;
^
cc1: all warnings being treated as errors
Change-Id: I98de16f27ed66905a6e217667fc819564277b89f
Signed-off-by: EunBong Song <eunb.song@samsung.com>
EunBong Song [Wed, 26 Apr 2017 23:58:00 +0000 (08:58 +0900)]
apps/ramtron: fix a compilation error
This patch fixes following compilation error:
make[2]: Entering directory `/home/ebsong/tizenrt/apps/system/ramtron'
./ramtron.c:65:29: fatal error: tinyara/mtd/mtd.h: No such file or directory
#include <tinyara/mtd/mtd.h>
^
compilation terminated.
Change-Id: I8dc008f50766f58f6291191689314093df84d2da
Signed-off-by: EunBong Song <eunb.song@samsung.com>
EunBong Song [Wed, 26 Apr 2017 23:56:25 +0000 (08:56 +0900)]
examples/proc_test: fix compilation error
This patch fixes following compilation errors:
make[2]: Entering directory `/home/ebsong/tizenrt/apps/examples/proc_test'
CC: proc_test_main.c
proc_test_main.c:301:5: error: function declaration isn't a prototype [-Werror=strict-prototypes]
int proc_uptime_test()
^
proc_test_main.c:323:5: error: function declaration isn't a prototype [-Werror=strict-prototypes]
int proc_version_test()
^
proc_test_main.c: In function 'proc_test_main':
proc_test_main.c:361:18: error: unused variable 'filesystem' [-Werror=unused-variable]
FAR const char *filesystem = NULL;
^
cc1: all warnings being treated as errors
Change-Id: I011224ee72aac4d04e30fd2ebeb73dc6ce99f3bd
Signed-off-by: EunBong Song <eunb.song@samsung.com>
EunBong Song [Wed, 26 Apr 2017 23:54:27 +0000 (08:54 +0900)]
apps/poweroff: fix compilation errors
This patch fixes following compilation error:
make[2]: Entering directory `/home/ebsong/tizenrt/apps/system/poweroff'
./poweroff.c:57:30: fatal error: arch/board/power.h: No such file or directory
#include <arch/board/power.h>
^
compilation terminated.
Change-Id: I7cdf6e71071a286ab6de2e81ccc81218fc1b0f57
Signed-off-by: EunBong Song <eunb.song@samsung.com>
EunBong Song [Wed, 26 Apr 2017 23:50:19 +0000 (08:50 +0900)]
common: get rid of assorted WICED-related debris
WICED is a legacy feature and not supported anymore.
Let's remove all related WICED.
Change-Id: I6ed3041b77cc102b74b21e754f84545831197eab
Signed-off-by: EunBong Song <eunb.song@samsung.com>
EunBong Song [Wed, 26 Apr 2017 23:43:04 +0000 (08:43 +0900)]
libc/pthread: fix a compilation error
This patch fixes following compilation error:
CC: pthread/pthread_condattrsetclock.c
pthread/pthread_condattrsetclock.c:90:5: error: function declaration isn't a prototype [-Werror=strict-prototypes]
int pthread_condattr_setclock(attr, clock_id)
^
cc1: all warnings being treated as errors
make[1]: *** [bin/pthread_condattrsetclock.o] Error 1
make[1]: Leaving directory `/home/ebsong/tizenrt/lib/libc'
make: *** [libc/libc.a] Error 2
Change-Id: I1fdee78f5c3c3e2eaadaf9d7090e58794f890b64
Signed-off-by: EunBong Song <eunb.song@samsung.com>
EunBong Song [Wed, 26 Apr 2017 23:27:47 +0000 (08:27 +0900)]
apps/netcmd: fix compilation errors when CONFIG_NETUTILS_TFTPC=y
This patch fixes following compilation errors:
netcmd.c: In function 'cmd_get':
netcmd.c:378:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'char'
char newfilename[30];
^
netcmd.c:389:11: error: assignment makes pointer from integer without a cast [-Werror]
fullpath = get_fullpath(args.destpath);
^
netcmd.c:407:3: error: 'return' with no value, in function returning non-void [-Werror=return-type]
return;
^
netcmd.c:379:7: error: unused variable 'seek_wbuffer' [-Werror=unused-variable]
char seek_wbuffer[100];
^
netcmd.c:378:7: error: unused variable 'newfilename' [-Werror=unused-variable]
char newfilename[30];
^
netcmd.c:376:7: error: unused variable 'read_buffer' [-Werror=unused-variable]
char read_buffer[301];
^
netcmd.c:375:7: error: unused variable 'write_buffer' [-Werror=unused-variable]
char write_buffer[300];
^
Change-Id: I6fd0ed45f936d34b5425fb783c31da41739bb247
Signed-off-by: EunBong Song <eunb.song@samsung.com>
EunBong Song [Wed, 26 Apr 2017 23:24:03 +0000 (08:24 +0900)]
netutils/tftpc: fix compilation errors
This patch fixes following compilation errors:
tftpc_packets.c: In function 'tftp_parseerrpacket':
tftpc_packets.c:229:14: error: unused variable 'errmsg' [-Werror=unused-variable]
const char *errmsg = (const char *)&buffer[4];
^
tftpc_packets.c:228:11: error: unused variable 'errcode' [-Werror=unused-variable]
uint16_t errcode = (uint16_t)buffer[2] << 8 | (uint16_t)buffer[3];
Change-Id: I4c63dd98a9c8da60556f5d5f2c5764aee7581e64
Signed-off-by: EunBong Song <eunb.song@samsung.com>
EunBong Song [Wed, 26 Apr 2017 23:17:45 +0000 (08:17 +0900)]
netutils/ftpd: fix compilation errors
This patch fixes following compilation errors:
CC: ftpd.c
ftpd.c: In function 'ftpd_accept':
ftpd.c:770:6: error: unused variable 'ret' [-Werror=unused-variable]
int ret;
^
ftpd.c: In function 'ftpd_recv':
ftpd.c:791:6: error: unused variable 'status' [-Werror=unused-variable]
int status;
^
ftpd.c: In function 'ftpd_command_epsv':
ftpd.c:2748:4: error: 'else' without a previous 'if'
} else
^
Change-Id: I578f9f2e8cf0cd662b29fddf745e04f959bc25d7
Signed-off-by: EunBong Song <eunb.song@samsung.com>
Heesub Shin [Wed, 26 Apr 2017 12:38:01 +0000 (21:38 +0900)]
artik053: add three kinds of default configurations
This commit introduces three kinds of default configurations.
Change-Id: If5c9713459f47c521eb40683e3a95c5f31b0e821
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Heesub Shin [Wed, 26 Apr 2017 12:13:08 +0000 (21:13 +0900)]
s5j/serial: fix compilation errors when UARTs are disabled
When CONFIG_S5J_UARTx is not set, compiler complains as following:
CC: chip/s5j_serial.c
chip/s5j_serial.c: In function 'up_setup':
chip/s5j_serial.c:1016:12: error: 'g_uart0priv' undeclared (first use in this function)
priv = &g_uart0priv;
^
chip/s5j_serial.c:1016:12: note: each undeclared identifier is reported only once for each function it appears in
chip/s5j_serial.c:1019:12: error: 'g_uart1priv' undeclared (first use in this function)
priv = &g_uart1priv;
^
chip/s5j_serial.c:1022:12: error: 'g_uart2priv' undeclared (first use in this function)
priv = &g_uart2priv;
^
chip/s5j_serial.c:1025:12: error: 'g_uart3priv' undeclared (first use in this function)
priv = &g_uart3priv;
^
Makefile:175: recipe for target 's5j_serial.o' failed
make[1]: *** [s5j_serial.o] Error 1
This commit fixes this.
Change-Id: Ifd56c89547071e1a96765e32cea984ac7234d181
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Heesub Shin [Wed, 26 Apr 2017 11:52:54 +0000 (20:52 +0900)]
s5j/serial: wait until tx fifo gets empty when init
Characters printed out from eariler stage bootloader is not printed out
or printed in broken. This is because the UART is being initialized
while the Tx transmitter did not complete to send characters in FIFO. It
can be avoided if we can defer the initialization until Tx FIFO gets
empty.
Change-Id: I22bca475aec53cd222f5425417ab8c815fde8251
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Heesub Shin [Wed, 26 Apr 2017 11:32:35 +0000 (20:32 +0900)]
s5j/Kconfig: remove knobs for the debug UART
Now that the debug UART is configured using CONFIG_UART4_XXX, we do not
need to have these Kconfig entries.
Change-Id: If3abb6209eb5f9ac0d15e5461e682e2a6814eb06
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Heesub Shin [Wed, 26 Apr 2017 11:21:28 +0000 (20:21 +0900)]
s5j/serial: treat the debug UART as UART4
In addition to UART0-3, S5J has a special UART port for debugging
purpose. Though there is no reason to git it a special name, it is
called as UARTDBG. Treating it as UART4 simplifies other codes and looks
more consistent. For this reasons, this commit configures the debug UART
using CONFIG_UART4_XXX instead of using CONFIG_UARTDBG_XXX that is
redundantly defined in s5j/Kconfig.
Change-Id: I73cc71e779dc93070983d4d165d9e724b4febd3f
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Heesub Shin [Wed, 26 Apr 2017 10:07:42 +0000 (19:07 +0900)]
s5j: drop to support S5J_DEBUG_BREAK
S5J_DEBUG_BREAK is a dirty hack that was invented to make the target
fall into the infinite loop at boot. It is convenient for us to be able
to hold the target before attaching the debugger. However, we can get
the same result in other various ways. It looks dirty. Let's drop it.
Change-Id: Ia5b30517c03571debd0432d1b24d43590d8d17ae
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Heesub Shin [Wed, 26 Apr 2017 10:00:05 +0000 (19:00 +0900)]
s5j/Kconfig: reorganize hierarchy of Kconfig entries
To follow the convention that other BSPs are using, this commit
redefines several configuration knobs and reorganizes relationship
between them.
Change-Id: Ie0cbd5d6c861a221881322e0688621f66dcaf901
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Heesub Shin [Wed, 26 Apr 2017 07:29:46 +0000 (16:29 +0900)]
s5j/Kconfig: remove unnecessary Kconfig entries
We have so many legacy Kconfig entries that are not currently in use.
This makes us very confused. Let's remove them all.
Change-Id: Ic3ab07bd7d729b2ea8f9908bd7d29bf32bda943e
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Junyeon LEE [Wed, 26 Apr 2017 14:47:32 +0000 (23:47 +0900)]
external/wakaama: fix build error
This commit fixes build error in wakaama core.
Change-Id: I373f99e792dab1ad396c8ea6566b1199920041c9
Signed-off-by: Junyeon LEE <junyeon2.lee@samsung.com>
EunBong Song [Wed, 26 Apr 2017 04:19:28 +0000 (13:19 +0900)]
net/lwip: use sem_tickwait() instead of sem_timedwait()
sem_tickwait() is a lighter version of sem_timedwait(). It's better to
use sem_tickwait() instead of sem_timedwait() for performance. In case
of loopback iperf test, bandwidth increases about 5%.
Change-Id: Idc8446cef7c7536f44cecb1d17058c1eeb42e179
Signed-off-by: EunBong Song <eunb.song@samsung.com>
EunBong Song [Wed, 26 Apr 2017 04:15:10 +0000 (13:15 +0900)]
semaphore: Add sem_tickwait function
This patch adds sem_tickwait() function. This function is a lighter
is a lighter weight version of sem_timedwait().
All credits should go to Gregory Nutt who wrote the original commit.
Change-Id: I1af34d5f0bbdbb6eb4ded095b8fb1c61f04388f2
Signed-off-by: Gregory Nutt <gnutt@nuttx.org>
[Song: backported
12cbe147 from Nuttx]
Signed-off-by: EunBong Song <eunb.song@samsung.com>
Jin-Seong Kim [Wed, 19 Apr 2017 08:15:49 +0000 (17:15 +0900)]
external/wakaama: update core APIs to support TCP/TLS as per RFC
This commit is related to er-coap TCP/TLS support according to changes
of wakaama er-coap API, updates wakaama core APIs to support TCP/TLS
feature.
- lwm2m_context_t : added new member, coap_protocol_t protocol
- lwm2m_init2 function is newly added to intialize
coap protocol member in lwm2m_context_t
- transaction_new : added new argument, coap_protocol_t proto
- lwm2m_buffer_send : added new argument, coap_protocol_t proto
- core functions using coap_init_message, coap_parse_message
are updated
Change-Id: Icc7e3a7ac64e703255aafbab6c3f3d04dbb82cb4
Signed-off-by: Jin-Seong Kim <jseong82.kim@samsung.com>
Junhwan Park [Fri, 21 Apr 2017 04:06:26 +0000 (13:06 +0900)]
examples/workqueue: apply builtin in Makefile
I fixed examples/workqueue for builtin in Makefile.
Change-Id: I33420790afc02b9b46c390d61828e2a21e43679e
Signed-off-by: Junhwan Park <junhwan.park@samsung.com>
Junhwan Park [Fri, 21 Apr 2017 04:05:25 +0000 (13:05 +0900)]
examples/kernel_sample: apply builtin in Makefile
I fixed examples/kernel_sample for builtin in Makefile.
Change-Id: If121a6aba69ef659e06a9f5ca47d2560251d4301
Signed-off-by: Junhwan Park <junhwan.park@samsung.com>
Junhwan Park [Fri, 21 Apr 2017 04:02:58 +0000 (13:02 +0900)]
examples/hello: apply builtin in Makefile
I fixed examples/hello for builtin in Makefile
Change-Id: I26d450c4815b9a7b4e74055843a7890755a13a3f
Signed-off-by: Junhwan Park <junhwan.park@samsung.com>
Junhwan Park [Wed, 19 Apr 2017 10:20:37 +0000 (19:20 +0900)]
examples/easysetup: add an application for easysetup
This patch includes an example application for easysetup.
Change-Id: Ic379a4d3c2e9600620926046e0b05ddf1bb7ac8f
Signed-off-by: Junhwan Park <junhwan.park@samsung.com>
Junhwan Park [Wed, 19 Apr 2017 10:36:45 +0000 (19:36 +0900)]
examples/smart: add an application for smart
This patch includes an example application for smart.
Change-Id: Ifa16d049c8c491cd01cb861c5c599964574585d7
Signed-off-by: Junhwan Park <junhwan.park@samsung.com>
EunBong Song [Wed, 26 Apr 2017 02:09:24 +0000 (11:09 +0900)]
sidk_s5jt200: add a new defconfig, 'hello'
This patch adds 'hello' config for sidk_s5jt200. This includes only
configs needed for hello app, so this can be a reference minimum config
for sidk_s5jt200 board. Code footprint for this is ROM(36K bytes) and
RAM(4K bytes).
Change-Id: Ia50677bbacf4c8671eeac99d52bb01c0c4264e45
Signed-off-by: EunBong Song <eunb.song@samsung.com>
EunBong Song [Wed, 26 Apr 2017 01:52:09 +0000 (10:52 +0900)]
s5j: fix a compilation error when CONFIG_S5J_PWM=n
This patch fixes compilation error when CONFIG_S5J_PWM is disabled.
Change-Id: Ice5d27d831f5f8ea382612f3ad087ca09f2be126
Signed-off-by: EunBong Song <eunb.song@samsung.com>
EunBong Song [Wed, 26 Apr 2017 01:21:12 +0000 (10:21 +0900)]
artik053: change optimization level from -O0 to -O2
This patch changes artik053's compiler optimization level to -O2.
Change-Id: I799a29f2cdf87cf80a0112b5afc47e1d14918a96
Signed-off-by: EunBong Song <eunb.song@samsung.com>
Junyeon LEE [Tue, 25 Apr 2017 21:09:27 +0000 (06:09 +0900)]
s5j/sss: fix sss_ro_read() return value
This commit fixes the return value of sss_ro_read function.
Change-Id: I0a5c8b6476a35b9cca64597a7683db1f9362dc3a
Signed-off-by: Junyeon LEE <junyeon2.lee@samsung.com>
Junyeon LEE [Tue, 25 Apr 2017 21:05:50 +0000 (06:05 +0900)]
artik053/defconfig: enable mtd ftl partition
Mtd ftl partition will be selected as a default for using sssro region.
Change-Id: Idfa2e0b7347f78632e389d75d262fed2d1f4c741
Signed-off-by: Junyeon LEE <junyeon2.lee@samsung.com>
Junyeon LEE [Tue, 25 Apr 2017 21:03:28 +0000 (06:03 +0900)]
artik053: add to handle ftl partition
This commit adds mtd ftl initialize routine in artik053_tash.c. When
partition type specified to "ftl", it is initialized by mtdftl device at
boot.
Change-Id: Icfeff198b4cafc6c62bdf256604b302b8aa9f1e6
Signed-off-by: Junyeon LEE <junyeon2.lee@samsung.com>
EunBong Song [Tue, 25 Apr 2017 10:29:25 +0000 (19:29 +0900)]
semaphore: fix setting EINVAL in sem_post() and sem_wait()
This patch sets errno to EINVAL when sem argument is NULL in sem_post()
and sem_wait().
All credits should go to Paul A. Patience who wrote the original commit.
Change-Id: If51df37aefac2f1802f14e7c293d040e4c8d593b
Signed-off-by: Gregory Nutt <gnutt@nuttx.org>
Signed-off-by: Paul A. Patience <paul-a.patience@polymtl.ca>
[Song: backported
891113da from NuttX]
Signed-off-by: EunBong Song <eunb.song@samsung.com>
Junhwan Park [Tue, 25 Apr 2017 06:46:18 +0000 (15:46 +0900)]
examples/sensorbd_demo: fix typo
Usage spelling error was fixed.
Change-Id: I4746f7fa94b0aec4cf6d4acdb27b44f7ba1db1c3
Signed-off-by: Junhwan Park <junhwan.park@samsung.com>
Junhwan Park [Tue, 25 Apr 2017 06:43:59 +0000 (15:43 +0900)]
examples/telnetd: fix telnetd daemon enable
If TELNETD is not enabled, example will not run.
Change-Id: Ib57340c81a631ba39db2847d9cf5dd4c0d7c1b1e
Signed-off-by: Junhwan Park <junhwan.park@samsung.com>
Jin-Seong Kim [Wed, 19 Apr 2017 07:03:26 +0000 (16:03 +0900)]
external/wakaama: er-coap, add to support TCP/TLS as per the RFC
This commit is patch to support TCP/TLS on er-coap
RFC reference : https://tools.ietf.org/html/draft-ietf-core-coap-tcp-tls-02
- patch is available from https://github.com/artikcloud/artikcloud-lwm2m-c
- Author: Gregory Lemercier <g.lemercier@samsung.com>
Implementation required the following modifications:
- Passing the token as an argument to the registration frame
- Implementation of the "nibble" variable length header in CoAP
for TCP as detailed in the current draft of the specification.
Note that this might change later as the RFC undergoes changes
Change-Id: Id0a400d67edd28a2b9e8a9ccdace249fc11d1d2f
Signed-off-by: Jin-Seong Kim <jseong82.kim@samsung.com>
Jin-Seong Kim [Tue, 25 Apr 2017 05:50:25 +0000 (14:50 +0900)]
examples/dnsclient: add Make.defs to build application properly
This commit is to add Make.defs to build application properly
Change-Id: I81b6f6b83956921cef94084b81fabd42ee04ff02
Signed-off-by: Jin-Seong Kim <jseong82.kim@samsung.com>
Jin-Seong Kim [Mon, 24 Apr 2017 05:53:09 +0000 (14:53 +0900)]
netutils/dhcpd: add debug message for checking exceptional case
This commit is to add debug message for checking exceptional case
- checking all send messages
Change-Id: I98840b08e9ab07ad1ea31a660784d2e7a77b49ee
Signed-off-by: Jin-Seong Kim <jseong82.kim@samsung.com>
Junhwan Park [Tue, 25 Apr 2017 05:03:05 +0000 (14:03 +0900)]
s5j/gpio: fix incorrect pinmux configuration on UART3
The gpio pin settings of UART_3_TXD and UART_3_RXD are wrong.
GPP1_6 0x2 = UART_3_RXD
GPP1_7 0x2 = UART_3_TXD
Change-Id: I4d49479c59c96ed09febf23613b97663e7fffb04
Signed-off-by: Junhwan Park <junhwan.park@samsung.com>
Jin-Seong Kim [Tue, 25 Apr 2017 04:16:54 +0000 (13:16 +0900)]
external/wakaama: lwm2mserver, update to support TCP connection
This commit is patch to update to support TCP connection on lwm2mserver.
Change-Id: I8d7b8c1c0916914d2eed4f0bd7ea5ec4885f3f22
Signed-off-by: Jin-Seong Kim <jseong82.kim@samsung.com>
Jin-Seong Kim [Wed, 19 Apr 2017 23:46:25 +0000 (08:46 +0900)]
external/wakaama: patch for connection APIs to support TCP/TLS
This commit is patch for connection APIs to support TCP/TLS
- according to updated connection APIs, client examples are updated
- patch is available from https://github.com/artikcloud/artikcloud-lwm2m-c
- Author: Gregory Lemercier <g.lemercier@samsung.com>
- RFC reference : https://tools.ietf.org/html/draft-ietf-core-coap-tcp-tls-02
Change-Id: Ieed3aab5d8b24d75975e0851952a54a3c66fa964
Signed-off-by: Jin-Seong Kim <jseong82.kim@samsung.com>
Junyeon LEE [Tue, 25 Apr 2017 04:37:50 +0000 (13:37 +0900)]
netutils/mqtt: fix a link error
This commit fixes link error by adding Make.defs.
LD: tinyara
/home/jun/tizenrt_sprint3/tizenrt/os/../build/output/libraries/libapps.a(netcmd.o): In function `.LANCHOR2':
netcmd.c:(.rodata.net_appcmds+0x1c): undefined reference to `mqtt_client_sub_main'
netcmd.c:(.rodata.net_appcmds+0x28): undefined reference to `mqtt_client_pub_main'
make[1]: *** [../build/output/bin/tinyara] Error 1
make[1]: Leaving directory `/home/jun/tizenrt_sprint3/tizenrt/os/arch/arm/src'
make: *** [pass2] Error 2
Change-Id: Ica952f718531f5138e1c3633db7d60f5b633f78d
Signed-off-by: Junyeon LEE <junyeon2.lee@samsung.com>
Siwon Kang [Tue, 25 Apr 2017 02:04:11 +0000 (11:04 +0900)]
os/Kconfig: remove Kconfig entries for wifi demo apps
The demo app named slsidemo does not exist so the Kconfig entries for
them shall be left out.
Change-Id: I2eb76d83ce16f5677f85ee22049ba59da7669aaf
Signed-off-by: Siwon Kang <sw0809.kang@samsung.com>
Jin-Seong Kim [Mon, 24 Apr 2017 05:41:31 +0000 (14:41 +0900)]
netutils/dhcpc : add debug message for checking exceptional case
This commit is to add debug message for checking exceptional case
Change-Id: I5415a3f69e34791985cf49784deb7878abc0d2aa
Signed-off-by: Jin-Seong Kim <jseong82.kim@samsung.com>
Heesub Shin [Tue, 25 Apr 2017 17:43:44 +0000 (02:43 +0900)]
examples/sensorbd_demo: remove unnecessary gpio control
When using GPIO as output, we do not need to control pull-up/down.
Change-Id: I8c3bd068d60c53cdd75af1606353597c3fad2b0c
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
EunBong Song [Mon, 24 Apr 2017 02:07:55 +0000 (11:07 +0900)]
init: do not call pm_initialize() in os_start
pm_initialize() should be called in MCU-specific routine not a general
init routine. So pm_initialize() in os_start() should be removed. In
case of arm/s5j, it is called twice, at first in up_pminitialize()
and then os_start(). This should be fixed.
Change-Id: I928b1d482fcf4efd75eb6b346724c595cdd8b0ae
Signed-off-by: EunBong Song <eunb.song@samsung.com>
Wonsang Ryou [Fri, 21 Apr 2017 08:38:02 +0000 (17:38 +0900)]
netutils/dhcpd: minor patch for handling exception case
This commit is the patch to handling exception case
- when closing sockfd, sockfd may receive a negative value
Change-Id: Id6a304d8b80230a8db6972a3c548b8663079ef30
Signed-off-by: Wonsang Ryou <wonsang.yoo@samsung.com>
Parkjihoon [Fri, 21 Apr 2017 14:57:07 +0000 (23:57 +0900)]
sidk_s5jt200: remove openocd 0.90 version
openocd 0.90 version is not available for gerneral usage, and 0.10
version was already merged by
059ef174, so users should use openocd
under build/configs/sidk_s5jt200/tools/openocd.
Change-Id: Ia4e3eae757c30eac9a9131846ae35592f0293b5e
Signed-off-by: Parkjihoon <jh6186.park@samsung.com>
Parkjihoon [Fri, 21 Apr 2017 14:49:37 +0000 (23:49 +0900)]
sidk_s5jt200: enable TLC59116 and S8300 for boot-up indicator
sidk_s5jt200 board has 5 RGB LED and displays LED when it booted, config
CONFIG_SIDK_S5JT200_TLC59116 and CONFIG_SIDK_S5JT200_S8300 selected as a
default configuration.
Signed-off-by: Parkjihoon <jh6186.park@samsung.com>
Change-Id: I9bc495c152ed5abd33019ee521a71a8dd367d93a
Heesub Shin [Mon, 24 Apr 2017 00:32:09 +0000 (09:32 +0900)]
examples/sensorbd_demo: use poll() to detect button actions
Rather than reading /dev/gpioX repeatedly with timeouts, using poll()
would be better to show GPIO functionality.
Change-Id: Id3318d821d4fcedd640161d3238a981f507109cf
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Heesub Shin [Mon, 24 Apr 2017 00:22:15 +0000 (09:22 +0900)]
examples/sensorbd_demo: rename example source file
This commit renames gpio_swtich.c to gpio_buttons.c.
Change-Id: I517a255f7133f27861fdedaf3d62afe5d37a4484
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Heesub Shin [Sun, 23 Apr 2017 09:39:19 +0000 (18:39 +0900)]
examples/sensorbd_demo: fix a link error
powfl() should be 'static inline' to avoid a link error as following:
LD: tinyara
/home/heesub/Documents/tinyara/os/../build/output/libraries/libapps.a(i2c_tcs34725.o): In function `tcs34725_calctemperature':
/home/heesub/Documents/tinyara/apps/examples/sensorbd_demo/examples/i2c_tcs34725.c:169: undefined reference to `powfl'
/home/heesub/Documents/tinyara/apps/examples/sensorbd_demo/examples/i2c_tcs34725.c:169: undefined reference to `powfl'
Makefile:187: recipe for target '../build/output/bin/tinyara' failed
make[1]: *** [../build/output/bin/tinyara] Error 1
make[1]: Leaving directory '/home/heesub/Documents/tinyara/os/arch/arm/src'
Makefile.unix:470: recipe for target 'pass2' failed
This commit fixes it.
Change-Id: Id2afe41992fcace21d79676efc2589a40f718845
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Heesub Shin [Sun, 23 Apr 2017 02:05:44 +0000 (11:05 +0900)]
drivers/gpio: s5j/gpio: rework gpio driver
This commit rewrites upper- and lower-half GPIO drivers in completely
new. Overall, this results in a reduction of around 5K in the BSP binary
footprints:
Before:
text data bss dec hex filename
4484 784 0 5268 1494 s5j_gpio.o
2624 0 268 2892 b4c s5j_gpio_lowerhalf.o
After:
text data bss dec hex filename
2448 0 0 2448 990 s5j_gpio.o
1032 0 0 1032 408 s5j_gpio_lowerhalf.o
Change-Id: Iac4fc0f86130cde721a984929f8e0aafe3755d69
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Heesub Shin [Tue, 18 Apr 2017 04:49:56 +0000 (13:49 +0900)]
drivers/gpio: drop to support gpio export/unexport
Let's remove the feature that exports and unexports GPIO devices through
/dev/gpio_export and /dev/gpio_unexport. Nobody is using it.
Change-Id: Idf4364387efcf878384b55eedea03601e3ed3328
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Heesub Shin [Sun, 23 Apr 2017 02:06:27 +0000 (11:06 +0900)]
s5j/gpio: remove CONFIG_S5J_GPIO
In S5J, GPIO driver is controlling pinmux configuration for other
peripherals. Without it, the entire system cannot work. Thus, having
GPIO or not actually configurable. It should be enabled always. On the
other hands, the lower-half GPIO driver can be excluded from the
compilation when the upper-half driver is disabled.
Change-Id: I81b3d196b4e9091f86f2d9006ee37c020c8df5b9
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Heesub Shin [Thu, 13 Apr 2017 13:56:34 +0000 (22:56 +0900)]
s5j/gpio: remove to support GPIO_CMD_GET_XXX
Now that the nobody use GPIO_CMD_GET_EDGE, GPIO_CMD_GET_DRIVE, and
GPIO_CMD_GET_DIRECTION, we can drop them.
Change-Id: I09e061f1d0386440a118d3e7f4f4db7090377a40
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Heesub Shin [Thu, 13 Apr 2017 13:24:29 +0000 (22:24 +0900)]
s5j/gpio: assign IRQ slot to each WEINT signal
Change-Id: I661bf9feec1c0d39d11947d257cbd339ced1514a
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Heesub Shin [Tue, 18 Apr 2017 05:56:22 +0000 (14:56 +0900)]
s5j/sflash: do not configure pinmux
As it is already configured at BL0/BL1/BL2 stages, we do not need to
configure pinmux for SFLASH again.
Change-Id: I627e59e3c9a04a3c770c893bc833d9cc042df3f5
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Heesub Shin [Mon, 24 Apr 2017 05:14:16 +0000 (14:14 +0900)]
sidk_s5jt200: drop to support button
S5J does not support the lower-half driver for NuttX button. So, there
is no point in having the implementation of board_button_initialize() or
board_buttons(). Let's drop them.
Change-Id: Ic73e8884b11ed7a31b0c00bb83c10355a1310962
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Heesub Shin [Thu, 13 Apr 2017 13:39:24 +0000 (22:39 +0900)]
iotbus: do not query GPIO params already set
There is no point in querying GPIO parameters that are already set. It
is redundant and unnecessary because the device structure always tracks
those information. Rather than querying GPIO driver, simply returning
values in the device structure will be enough.
This is a preparation step for redesigning GPIO layer.
Change-Id: Ic454d7d81b0d3f00bea41e1e1e9a2eb5a8e84504
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Junhwan Park [Fri, 21 Apr 2017 02:34:17 +0000 (11:34 +0900)]
examples/sensorbd_demo: add adc example
Can not test adc with sensor board. This is because only ADC0-3 channels
are available. However, to test basic adc sampling I add this patch.
Change-Id: Id919b724ad8744b85ccec15469582cd91f4af2dd
Signed-off-by: Junhwan Park <junhwan.park@samsung.com>
Junhwan Park [Thu, 20 Apr 2017 11:12:54 +0000 (20:12 +0900)]
builtin: fix tash builtin application
Fixed an issue where menuconfig would run abnormally when the registered
application was deleted again.
Change-Id: I5b75c06c273561adabd58aaf966239a2f6de85b4
Fixes:
3f9534358cc9 ("builtin: add tash builtin application")
Signed-off-by: Junhwan Park <junhwan.park@samsung.com>
Junhwan Park [Fri, 21 Apr 2017 02:03:13 +0000 (11:03 +0900)]
artik053: add missing inclusion of s5j_adc.h
Otherwise, it triggers a compilation error.
Change-Id: Ia46b13acaee1d50094d071dff80da59c8833f410
Signed-off-by: Junhwan Park <junhwan.park@samsung.com>
Wonsang Ryou [Thu, 20 Apr 2017 11:09:42 +0000 (20:09 +0900)]
netutils/mdns: fix some defects
This patch fixes the following defects in mdns.
- uninitialized data can be read from local varible 'taile'.
- pointer 'c_tail' can be dereferenced.
- the return value of strstr() is not checked.
Change-Id: I0b7b47b52ed66ad80f9deacc56e5607a95def01b
Signed-off-by: Wonsang Ryou <wonsang.yoo@samsung.com>
Wonsang Ryou [Thu, 20 Apr 2017 10:44:01 +0000 (19:44 +0900)]
examples/mdns_test: fix link error
This patch adds "#include <stdlib.h>" in order to fix the following
link error.
mdns_main.c:206: undefined reference to `atoi'
Change-Id: I4a8efdecfdfc2dd8736f9754557e87db854d5a65
Signed-off-by: Wonsang Ryou <wonsang.yoo@samsung.com>
Junyeon LEE [Thu, 20 Apr 2017 09:11:06 +0000 (18:11 +0900)]
net/tls: removes pthread macro in security api.
This commit removes pthread lock and unlock macro in security api.
Because those macros are including return command, with those macro,
user can't release the allocate memory.
Change-Id: I740a31812106e0de941439000ae41c3d0809dc21
Signed-off-by: Junyeon LEE <junyeon2.lee@samsung.com>
Junyeon LEE [Thu, 20 Apr 2017 08:32:37 +0000 (17:32 +0900)]
netutils/websocket: fixes minor issues in websocket
This commit fixes minor issues in websocket library.
. clearify socket close routine
. clearify the context compare
Change-Id: I9a6ccf5504f4615bdb5d737c96eaa46c73c1a58a
Signed-off-by: Junyeon LEE <junyeon2.lee@samsung.com>
Junyeon LEE [Thu, 20 Apr 2017 06:55:12 +0000 (15:55 +0900)]
netutile/webserver: fixes mq_open returns
This commit fixes the return value of http_server_mq_open function.
Change-Id: I47feec16a98bebd40a504e8cdca5ba932fcc23c4
Signed-off-by: Junyeon LEE <junyeon2.lee@samsung.com>
Seongeun Choi [Thu, 20 Apr 2017 00:59:28 +0000 (09:59 +0900)]
external/wakaama: add an lwm2m server application
This commit is initial commit to support lwm2mserver example.
Change-Id: Ib0134f3a816125858a7978633464134dcd567c6d
Signed-off-by: Seongeun Choi <seongeun.choi@samsung.com>
Junyeon LEE [Thu, 20 Apr 2017 07:42:39 +0000 (16:42 +0900)]
netutils/webclient: fixes minor problem in wget_base
This commit fixes minor two bugs in wget base function.
. response structure has possible to be released twice
. use uninitiailized entity data
Change-Id: Icd88b471ce11161b5f7366316759a3f762d1ee98
Signed-off-by: Junyeon LEE <junyeon2.lee@samsung.com>
EunBong Song [Thu, 20 Apr 2017 07:05:51 +0000 (16:05 +0900)]
net/lwip: fix static analysis issues
This patch fixes static analysis problem.
All credits should go to Simon Goldschmidt who wrote the original commit.
Change-Id: Ib40d786c9bce93c1c4a87ee0d42b74c2297545e6
Signed-off-by: Simon Goldschmidt <goldsimon@gmx.de>
[Song: backported
3f016fcc from LwIP]
Signed-off-by: EunBong Song <eunb.song@samsung.com>
Junyeon LEE [Thu, 20 Apr 2017 06:02:30 +0000 (15:02 +0900)]
net/tls: fixes memory leakage in ecdh.c
This commit fixes memory leakage error in tls/ecdh.c.
. Dynamic memory referenced by 'ecc_pub.publickey_y' was allocated at
ecdh.c:345 by calling function 'malloc' and lost at ecdh.c:348.
Change-Id: Iceff846e34a2acd94a323bc50a5a85ef6d498c16
Signed-off-by: Junyeon LEE <junyeon2.lee@samsung.com>
Junyeon LEE [Wed, 19 Apr 2017 09:55:37 +0000 (18:55 +0900)]
examples/dtls_client: support tash argument for testing
After this commit, dtls client example supports ip address input.
Change-Id: I869e5dc26a862486b2ab40694c5968b7ea03c9f0
Signed-off-by: Junyeon LEE <junyeon2.lee@samsung.com>