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>
Junyeon LEE [Thu, 20 Apr 2017 07:00:02 +0000 (16:00 +0900)]
net/tls: improve error handling in mbedtls_dhm_calc_secret()
In case of ctx is NULL or output_size is specified less than expected,
we'd rather bail out earlier without bothering with
see_supported_dhm_size().
Change-Id: I222a7a997de2ce6e27d2525c86a5e6fc9557b147
Signed-off-by: Junyeon LEE <junyeon2.lee@samsung.com>
Junyeon LEE [Tue, 18 Apr 2017 09:03:13 +0000 (18:03 +0900)]
net/tls: introduction of easy_tls apis
This commit is initial version of easy tls api. easy tls api
is for using and understanding ssl/tls library easily. Please
use mbedtls api directly for setting more details.
Supporting options
. set authentication mode
. set debug level
. set host name
. set server/client mode
. select TLS/DTLS
Change-Id: I91292af7ef9b2f5b7773e098a0f8779977bf6882
Signed-off-by: Junyeon LEE <junyeon2.lee@samsung.com>
Jihoon Park [Thu, 20 Apr 2017 00:36:44 +0000 (09:36 +0900)]
sidk_s5jt200: support openocd 0.10
added openocd 0.10 version for sidk s5jt200 evaluation board, cmm for T
race 32 debug file will not be supported anymore.
Change-Id: I7a7fad9bbff22bd2f428583628f955b6469b9623
Signed-off-by: Jihoon Park <jh6186.park@samsung.com>
Siwon Kang [Wed, 19 Apr 2017 00:30:28 +0000 (09:30 +0900)]
netutils/wifi: reduce mutex scope in WiFiRegisterLinkCallback()
Unnecessary large scope of mutex in WiFiRegisterLinkCallback() gets
reduced. This also fixes deadlock issue caused by violation of
nested function call by registered callback function.
Change-Id: Ibb25a33784121a9f4a82aa61b4697358c298d8d0
Signed-off-by: Siwon Kang <sw0809.kang@samsung.com>
Wonsang Ryou [Wed, 19 Apr 2017 02:33:57 +0000 (11:33 +0900)]
netutils/ntpclient: modify debug message options
This patch removes the local debug options on the following messages
- error messages of sendto() and recvfrom()
- 'Set time' message
The above messages will be always shown when CONFIG_DEBUG_NET_ERROR
is enabled.
Change-Id: Ib06b356c00f148086955440210d4f2ca4d6533b1
Signed-off-by: Wonsang Ryou <wonsang.yoo@samsung.com>
Jin-Seong Kim [Wed, 19 Apr 2017 01:21:30 +0000 (10:21 +0900)]
sidk_s5jt200/sidk_tash_wlan: enable netdb dns client
This commit is to enable netdb dns client configuration
- to fully support netdb library, dns client is needed
Change-Id: I5e28993ea7c472a0e9f102f7f3c25d26f9e8734f
Signed-off-by: Jin-Seong Kim <jseong82.kim@samsung.com>
EunBong Song [Wed, 19 Apr 2017 01:03:22 +0000 (10:03 +0900)]
semaphore: keep errno unless an error occurs
sem_wait() and sem_trywait() no longer modify the errno value UNLESS an
error occurs. This allows these functions to be used internally without
clobbering the errno value.
All credits should go to Freddie Chopin who wrote the original commit.
Change-Id: I6893cef28274f456bfeba553090821face23f930
Signed-off-by: Freddie Chopin <freddie_chopin@op.pl>
Signed-off-by: Gregory Nutt <gnutt@nuttx.org>
[Song: backported
484a1b61 from NuttX]
Signed-off-by: EunBong Song <eunb.song@samsung.com>
EunBong Song [Wed, 19 Apr 2017 00:57:53 +0000 (09:57 +0900)]
semaphore: do not overwrite errno in sem_timedwait()
This patch fixes problem that the errno value was being overwritten by
subsequent actions so that the returned errno value was incorrect.
All credits should go to Gregory Nutt who wrote the original commit.
Change-Id: I6ed3177e471f3ecb7aa79ada88c64b3db867ec28
Signed-off-by: Gregory Nutt <gnutt@nuttx.org>
[Song: backported
127951e0 from NuttX]
Signed-off-by: EunBong Song <eunb.song@samsung.com>
Jin-Seong Kim [Wed, 19 Apr 2017 01:14:17 +0000 (10:14 +0900)]
artik053/nettest: enable netdb dns client
This commit is to enable netdb dns client configuration
- to fully support netdb library, dns client is needed
Change-Id: I25eb00b3d75fa6b85cdbf654089501c5074154f0
Signed-off-by: Jin-Seong Kim <jseong82.kim@samsung.com>
Junhwan Park [Mon, 17 Apr 2017 10:29:43 +0000 (19:29 +0900)]
s5j/serial: clean serial driver code
I removed unused pieces of code. And reduced code size. I will try to
further reduce ther code size in the future.
Change-Id: I7c4c3c334d1afad5a339b90ae7322375a5fffd3a
Signed-off-by: Junhwan Park <junhwan.park@samsung.com>
Junhwan Park [Tue, 18 Apr 2017 01:58:55 +0000 (10:58 +0900)]
examples/workqueue: fix incorrect function prototypes of the callbacks
When using the work_queue function, you must register the callback
function in worker_t format.
Change-Id: I1738aa7c3730debe51daeae2f911b84ff2f55eec
Signed-off-by: Junhwan Park <junhwan.park@samsung.com>
kang [Mon, 17 Apr 2017 06:32:55 +0000 (15:32 +0900)]
net: modify network Kconfig entries for System configurations
Configuration sync with TizenRT
Change-Id: Ic3870405503f212a368f23595b254cd406e83cc8
Signed-off-by: kang <pilseob.kang@samsung.com>
Junhwan Park [Wed, 19 Apr 2017 08:26:24 +0000 (17:26 +0900)]
sensorbd_demo: apply builtin in Makefile
Among the application programs, sensorbd_demo is the first builtin to be
applied.
Change-Id: I7d38dc190e433c9e25962e0cf259f090131f669c
Signed-off-by: Junhwan Park <junhwan.park@samsung.com>
Junhwan Park [Wed, 19 Apr 2017 03:58:08 +0000 (12:58 +0900)]
builtin: add tash builtin application
The existing tizenRT was made by tash_cmd_install command each time the
application was registered. When you apply this patch, menuconfig will
be able to register to tash as soon as you select it. However, when the
developer registers an application, the following format should be added
in the Makefile.
$(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat: $(DEPCONFIG) Makefile
$(call REGISTER,$(APPNAME),$(APPNAME)_main,$(THREADEXEC))
context: $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat
Change-Id: I09e77e608e3dfeac5e14c7222105ae3404fd0039
Signed-off-by: Junhwan Park <junhwan.park@samsung.com>
Junhwan Park [Tue, 18 Apr 2017 05:51:27 +0000 (14:51 +0900)]
sensorbd_demo: Use wildcards Make.defs
The 'Make.defs' file management policy in apps/examples has been
changed.
Change-Id: I821cc494f75fcb127a9094f46f97f2b24f3474a3
Signed-off-by: Junhwan Park <junhwan.park@samsung.com>
Junyeon LEE [Mon, 17 Apr 2017 07:56:34 +0000 (16:56 +0900)]
examples/tls_client: parsing ARTIK cloud key and cert
This commit addes initialize routine to connect with ARTIK cloud and
releated definition.
Change-Id: I3402df30a3ec39ed1b29068dfc9940d30e73276a
Signed-off-by: Junyeon LEE <junyeon2.lee@samsung.com>
Junyeon LEE [Mon, 17 Apr 2017 07:46:58 +0000 (16:46 +0900)]
net/tls: remove unused configurations
This commit removes HW_HASH and HW_ECDSA_SIGN in tls. HW_HASH has
no plan to support and HW_ECDSA_SIGN is only for creating ARTIK_CLOUD
session. Now that hardware based ECDSA sign will be done only if user
set the ARTIK key index in application. Except this case, ECDSA sign
will be done with software.
Change-Id: I844651e1311007381ee1917d5e014b66b3e918d9
Signed-off-by: Junyeon LEE <junyeon2.lee@samsung.com>
Junyeon LEE [Mon, 17 Apr 2017 04:28:08 +0000 (13:28 +0900)]
netutils/websocket: fixes wrong buffer size of inet_ntop
This commit fixes wrong input size in inet_ntop and adds libc
dependency.
Change-Id: Ic9b567832b202209c1bb8aa9f5aef2c3e23cae4b
Signed-off-by: Junyeon LEE <junyeon2.lee@samsung.com>
ahreum.jeong [Tue, 2 May 2017 03:20:09 +0000 (12:20 +0900)]
Revert "Update logm module"
This reverts commit
179f2dacfb2f38fbb11a02f54f0768ac8fc6d2e0.
ahreum.jeong [Tue, 2 May 2017 02:37:50 +0000 (11:37 +0900)]
Update logm module
- Change logics of buffer usage
- Add tash commands for logm configuration in run-time
- Add prepending timestamp to messages
btheosam [Fri, 28 Apr 2017 12:05:19 +0000 (21:05 +0900)]
Merge pull request #61 from Samsung/common_download
refactoring download script
sunghan [Fri, 28 Apr 2017 11:58:01 +0000 (20:58 +0900)]
refactoring download script
sunghan [Fri, 28 Apr 2017 10:58:42 +0000 (19:58 +0900)]
check binary existence on flash procedure
btheosam [Fri, 28 Apr 2017 08:58:48 +0000 (17:58 +0900)]
Merge pull request #60 from Samsung/common_download
remove building when download is executed
sunghan [Fri, 28 Apr 2017 08:55:16 +0000 (17:55 +0900)]
remove building when download is executed
sunghan-chang [Fri, 28 Apr 2017 05:49:44 +0000 (14:49 +0900)]
Merge pull request #59 from Samsung/kernel_pm
bug fix about power manager in pm.h
Jaesik [Fri, 28 Apr 2017 05:19:37 +0000 (14:19 +0900)]
bug fix about power manager in pm.h
it was written as a conditional statement,
and the ifndef was used incorrectly
change ifndef to if
Signed-off-by: Jaesik <jaesick.shin@samsung.com>
btheosam [Fri, 28 Apr 2017 04:25:13 +0000 (13:25 +0900)]
Merge pull request #58 from Samsung/common_license
Add LICENSE
sunghan [Fri, 28 Apr 2017 04:19:11 +0000 (13:19 +0900)]
Add LICENSE
Taejun-Kwon [Thu, 27 Apr 2017 11:34:42 +0000 (20:34 +0900)]
Merge pull request #57 from Samsung/dm_connectivity_branch
[Title] Modified Kconfig in external to add DM WiFi settings
Venkatraman Iyer [Thu, 27 Apr 2017 11:31:10 +0000 (20:31 +0900)]
[Title] Modified Kconfig in external to add DM WiFi settings
[Description] WiFi settings for Device Management were defined under apps/examples folder. They are now moved to external folder where they should belong.
Taejun-Kwon [Thu, 27 Apr 2017 11:08:24 +0000 (20:08 +0900)]
Merge pull request #50 from Samsung/dm_connectivity_branch
[Title] New DM connectivity APIs for WiFi start, DHCP and scan
Venkatraman Iyer [Mon, 24 Apr 2017 10:52:20 +0000 (19:52 +0900)]
[Title] New DM connectivity APIs for WiFi start, DHCP and scan
[Description] Added new APIs to DM module to start device in WiFi STA mode, perform DHCP and WiFi channel scans
sunghan-chang [Thu, 27 Apr 2017 09:59:20 +0000 (18:59 +0900)]
Merge pull request #46 from Samsung/common_make
Autogenerate Kconfig
sunghan-chang [Thu, 27 Apr 2017 09:20:44 +0000 (18:20 +0900)]
Merge pull request #56 from Samsung/Download_support
Download script and support
bsvt [Thu, 27 Apr 2017 08:55:24 +0000 (17:55 +0900)]
Download script and support
junmin kim [Sat, 15 Apr 2017 06:16:02 +0000 (23:16 -0700)]
Autogenerate directory Kconfig
1. Autogenerate target : Kconfig in apps, apps/examples, apps/netutils, apps/system
2. Add empty preconfig rules at leaf Makefiles
3. Move entry Kconfig
4. Autogenerate Kconfig_ENTRY
sunghan-chang [Thu, 27 Apr 2017 06:17:05 +0000 (15:17 +0900)]
Merge pull request #54 from Samsung/kernel_libtime
Add a description for clock_daysbeforemonth
jc_.kim [Thu, 27 Apr 2017 05:59:23 +0000 (14:59 +0900)]
Add a description for clock_daysbeforemonth
Month starts from 0 to 11(Jan to Dec)
sunghan-chang [Thu, 27 Apr 2017 05:18:56 +0000 (14:18 +0900)]
Merge pull request #52 from heesub/fix-rtc
Fix rtc
Heesub Shin [Tue, 25 Apr 2017 14:50:52 +0000 (23:50 +0900)]
s5j/rtc: initialize BCDYEAR at boot
On power-on-reset, BCDYEAR in RTC is set to zero which means year 1900.
Since the date and time conversion functions can handle date only after
1970. We need to set BCDYEAR to something greater than that. Year 2010
seems reasonable.
Change-Id: If45985b13900a7de0b0cebc043119c4af94378bb
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>