Manohara HK [Fri, 12 May 2017 07:45:45 +0000 (13:15 +0530)]
arch : move dataabort stack config to arm/Kconfig
seperate dataabort stack is implemented only for armv7-r.
This patch moves dataabort stack config to arm/Kconfig and enables
only for armv7-r processors
Change-Id: Icf703dac4904a595a8420e4039527b8795614573
Signed-off-by: Manohara HK <manohara.hk@samsung.com>
sunghan-chang [Mon, 15 May 2017 06:15:29 +0000 (15:15 +0900)]
Merge pull request #90 from Samsung/g_irqvector_sizelimit
Limit the g_irqvector size to NR_IRQS
pillip8282 [Mon, 15 May 2017 05:04:52 +0000 (14:04 +0900)]
Merge pull request #91 from Samsung/recover_master
Recover master
pradeep.ns [Fri, 12 May 2017 14:57:14 +0000 (20:27 +0530)]
Limit the g_irqvector size to NR_IRQS
NR_IRQS value is already incremented by last irq + 1
hence, there is no need to initialize g_irqvector as
NR_IRQS + 1. Save memory br limiting the g_irqvector
size to NR_IRQS
Signed-off-by: pradeep.ns <pradeep.ns@samsung.com>
sunghan-chang [Fri, 12 May 2017 04:20:34 +0000 (13:20 +0900)]
Merge pull request #84 from Samsung/arch_dataabort_stack
arch : prevention of adjacent stack access during data abort
sunghan-chang [Fri, 12 May 2017 04:17:37 +0000 (13:17 +0900)]
Merge pull request #83 from Samsung/irq_detach_argChange
Change the irq_detach argument from isr to irq
sunghan-chang [Fri, 12 May 2017 04:16:03 +0000 (13:16 +0900)]
Merge pull request #81 from Samsung/watchdog_freelist_bug
Decrement the g_wdnfree variable only if there is a valid wdog node i…
sunghan-chang [Fri, 12 May 2017 04:11:01 +0000 (13:11 +0900)]
Merge pull request #79 from Samsung/watchdog_irqrestore_fix
Restore the interrupts if wdog is created statically
Manohara HK [Thu, 6 Apr 2017 13:12:38 +0000 (18:42 +0530)]
arch : prevention of adjacent stack access during data abort
This patch adds a seperate stack for data abort handling.
Reason for adding a seperate stack for data abort handling is as below.
When a task's execution consumes all of its stack, example if its stack size
is 2K and stack is almost used (2K - 8) bytes. During this time if any data
abort happened, data abort handling code uses task's stack for storing context
and as well as for its execution. In that case data abort handling code might
corrupt adjacent stack area.
If an application's intention is to corrupt the other application's stack,
it would do it by overflowing its stack and hence corrupting the adjacent stack.
This scenario of adjacent stack corruption by stack overflow can be avoided
using this patch with MPU_STACKGAURD feature.
Change-Id: I61f80da6b6bbdd0d8d7375438a1bc5f44edd5b32
Signed-off-by: Manohara HK <manohara.hk@samsung.com>
sunghan-chang [Fri, 12 May 2017 02:32:21 +0000 (11:32 +0900)]
Merge pull request #82 from JunhwanPark/fix_email
drivers: modify author's email address
sunghan-chang [Fri, 12 May 2017 02:31:49 +0000 (11:31 +0900)]
Merge pull request #80 from JunhwanPark/fix_telnetd
examples/telnetd: fix compile error
pradeep.ns [Thu, 11 May 2017 18:31:15 +0000 (00:01 +0530)]
Change the irq_detach argument from isr to irq
irq_detach API expects irq as argument but naming it as isr
is confusing. Change it to appropriate name as irq
Signed-off-by: pradeep.ns <pradeep.ns@samsung.com>
Junhwan Park [Thu, 11 May 2017 14:37:52 +0000 (23:37 +0900)]
drivers: modify author's email address
The e-mail address of the author of the file is incorrect. I think it is
a bug that occurred when changing nuttx to tinyara in batch.
Signed-off-by: Junhwan Park <junhwan.park@samsung.com>
pradeep.ns [Thu, 11 May 2017 14:35:21 +0000 (20:05 +0530)]
Decrement the g_wdnfree variable only if there is a valid wdog node in g_wdfreelist
If the g_wdfreelist doesn't contain any node, it will return NULL and
decrementing the g_wdnfree variable would lead to wrong logic.
Decrement the g_wdnfree variable only if there is a valid wdog is returned from g_wdfreelist
Signed-off-by: pradeep.ns <pradeep.ns@samsung.com>
Junhwan Park [Thu, 11 May 2017 14:17:41 +0000 (23:17 +0900)]
examples/telnetd: fix compile error
There is a white space in APPNAME, and there is a problem in creating
BuiltinApps. This patch fixes such a bug.
Signed-off-by: Junhwan Park <junhwan.park@samsung.com>
pradeep.ns [Thu, 11 May 2017 13:21:23 +0000 (18:51 +0530)]
Restore the interrupts if wdog is created statically
Interrupts has been restored only under 2 conditions
1) pre-allocated wdog free list
2) Allocated from heap memory
If the wdog has been statically allocated from wd_static API,and
wd_delete API is invoked, interrupts have not been restored. Since
wd_delete is global API, system can't guarantee that it will not
be called for statically created wdog timers
Signed-off-by: pradeep.ns <pradeep.ns@samsung.com>
Taejun-Kwon [Thu, 11 May 2017 13:04:32 +0000 (22:04 +0900)]
Merge pull request #78 from Samsung/common_download
fix wrong usage of if on download script
sunghan-chang [Thu, 11 May 2017 12:58:36 +0000 (21:58 +0900)]
Merge pull request #77 from Samsung/irq_dispatch_bugfix
irq_dispatch : Set the arg variable to NULL so that interrupt handler…
sunghan [Thu, 11 May 2017 12:46:56 +0000 (21:46 +0900)]
fix wrong usage of if on download script
build/configs/artik053/artik053_download.sh: line 61: [: missing `]'
pradeep.ns [Thu, 11 May 2017 12:46:31 +0000 (18:16 +0530)]
irq_dispatch : Set the arg variable to NULL so that interrupt handler does not pass junk value as argument
Signed-off-by: pradeep.ns <pradeep.ns@samsung.com>
Taejun-Kwon [Thu, 11 May 2017 11:17:37 +0000 (20:17 +0900)]
Merge pull request #76 from Samsung/boardctl_error
Boardctl error
sunghan-chang [Thu, 11 May 2017 11:16:45 +0000 (20:16 +0900)]
Merge pull request #75 from Samsung/fs_smartfs_journaling
Fix journaling issue
Heesub Shin [Thu, 11 May 2017 09:28:40 +0000 (18:28 +0900)]
fixup! artik053: sidk_s5jt200: fix warning messages when building
Change-Id: Ib5146209e1f5cb18fe6e505d321df2c8896595d5
Heesub Shin [Thu, 11 May 2017 01:29:04 +0000 (10:29 +0900)]
artik053: sidk_s5jt200: fix warning messages when building
DEPPATH needs to point to $(TOPDIR)/arch in order to build Make.dep
properly. This suppresses following build errors:
make[1]: Entering directory '/home/heesub/Documents/artik053/tizenrt/os/arch/arm/src'
make[2]: Entering directory '/home/heesub/Documents/artik053/tizenrt/os/arch/arm/src/artik053/src'
Makefile:104: recipe for target '.depend' failed
make[2]: *** [.depend] Error 1
make[2]: Leaving directory '/home/heesub/Documents/artik053/tizenrt/os/arch/arm/src/artik053/src'
Makefile:215: recipe for target '.depend' failed
make[1]: *** [.depend] Error 2
Change-Id: I96feda1a095eb8d47feb17fcd1ccf56cffd84410
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Junhwan Park [Mon, 8 May 2017 06:36:36 +0000 (15:36 +0900)]
artik053: sidk_s5jt200: remove .o file at 'make clean'
After BOARDCTL was added, the object file was not deleted from the clean
operation. This patch contains fixes for those bugs.
Change-Id: Idf549abfce1b62b05886c3012de86560b6f3b816
Signed-off-by: Junhwan Park <junhwan.park@samsung.com>
TaeJun Kwon [Thu, 11 May 2017 10:53:26 +0000 (19:53 +0900)]
Fix journaling issue
If buffer size is bigger than remained area + next area, calculating failed
sunghan-chang [Thu, 11 May 2017 10:24:23 +0000 (19:24 +0900)]
Merge pull request #74 from Samsung/wifi_testapp
Modifications to wifi_test Makefile, to remove builtin feature
Venkatraman Iyer [Thu, 11 May 2017 10:17:17 +0000 (19:17 +0900)]
Modifications to wifi_test Makefile, to remove builtin feature
Taejun-Kwon [Thu, 11 May 2017 10:13:19 +0000 (19:13 +0900)]
Merge pull request #73 from Samsung/wifi_testapp
Disabled built-in feature for wifi_test application
Venkatraman Iyer [Thu, 11 May 2017 10:11:08 +0000 (19:11 +0900)]
Disabled built-in feature for wifi_test application
Taejun-Kwon [Thu, 11 May 2017 09:55:33 +0000 (18:55 +0900)]
Merge pull request #67 from Samsung/dm_connectivity_branch
[Title] Added wifi_test app on TASH command list
Venkatraman Iyer [Wed, 10 May 2017 10:50:38 +0000 (19:50 +0900)]
[Title] Added wifi_test app on TASH command list
[Description] Added wifi_test command to TASH. The wifi_test application must now be called from TASH console.
sunghan-chang [Thu, 11 May 2017 08:36:43 +0000 (17:36 +0900)]
Merge pull request #72 from Samsung/iotbus
Fix iotbus bugs
an4967 [Thu, 11 May 2017 08:18:06 +0000 (17:18 +0900)]
Update iotapi_evt_handler.c
andaesung [Thu, 11 May 2017 07:47:00 +0000 (16:47 +0900)]
Fix iotbus bugs
- applying gpio changed logic.
- add iotapi log configs
Taejun-Kwon [Thu, 11 May 2017 07:11:29 +0000 (16:11 +0900)]
Merge pull request #71 from Samsung/db_warning
fix compilation warning at arastorage
sunghan [Thu, 11 May 2017 04:20:54 +0000 (13:20 +0900)]
fix compilation warning at arastorage
src/arastorage/index_manager.c:506:5: warning: 'row' may be used uninitialized in this function [-Wmaybe-uninitialized]
if (row != NULL) {
src/arastorage/storage_interface.c:579:4: warning: 'fd' may be used uninitialized in this function [-Wmaybe-uninitialized]
r = storage_write(fd, g_storage_write_buffer.buffer, g_storage_write_buffer.data_size);
sangwon03 [Thu, 11 May 2017 04:18:15 +0000 (13:18 +0900)]
Merge pull request #70 from Samsung/builtin_apps
fix compilation errors
sunghan [Thu, 11 May 2017 03:57:40 +0000 (12:57 +0900)]
fix compilation errors
Context of unselected examples are executed for builtin.
It make compilation errors. This patch makes only context of
selected example executed.
Taejun-Kwon [Wed, 10 May 2017 11:55:49 +0000 (20:55 +0900)]
Merge pull request #69 from Samsung/builtin_apps
fix compilation error
sunghan [Wed, 10 May 2017 11:46:13 +0000 (20:46 +0900)]
fix compilation error
TizenRT/os/../build/output/libraries/libapps.a(init.o): In function `tash_register_cmds':
TizenRT/apps/system/init/init.c:72: undefined reference to `register_examples_cmds'
make[1]: *** [../build/output/bin/tinyara] Error 1
Taejun-Kwon [Wed, 10 May 2017 11:35:35 +0000 (20:35 +0900)]
Merge pull request #68 from Samsung/builtin_apps
refactoring examples
sunghan [Wed, 10 May 2017 11:09:42 +0000 (20:09 +0900)]
register TASH command using builtin for example
remove registering TASH commands for example on c source codes
sunghan [Wed, 10 May 2017 09:13:12 +0000 (18:13 +0900)]
make CONFIG_BUILTIN_APPS
sunghan [Wed, 10 May 2017 08:26:58 +0000 (17:26 +0900)]
modify comments on example Makefile
fix wrong comments
sunghan [Wed, 10 May 2017 07:01:17 +0000 (16:01 +0900)]
change a Makefile permission
sunghan-chang [Wed, 10 May 2017 05:09:56 +0000 (14:09 +0900)]
Merge pull request #64 from Samsung/ARTIK053_sprint3
Artik053 sprint3
Taejun-Kwon [Mon, 8 May 2017 13:20:47 +0000 (22:20 +0900)]
Merge pull request #66 from Samsung/dm_connectivity_branch
[Title] Added new Configs, and source code for wifi API application
Venkatraman Iyer [Mon, 8 May 2017 10:33:28 +0000 (19:33 +0900)]
[Title] Added new Configs, and source code for wifi API application
[Description] Created a new application wifi_test that performs wifi scanning. The corresponding config file is also added along this commit.
sunghan [Mon, 8 May 2017 12:11:41 +0000 (21:11 +0900)]
fix a failure on download script for artik053
Variables are not delivered to cfg file. It makes error on download.
sunghan [Mon, 8 May 2017 10:43:38 +0000 (19:43 +0900)]
modify download script for new structure of openocd in sidk_s5jt200
sunghan [Mon, 8 May 2017 10:04:38 +0000 (19:04 +0900)]
fix violations of coding style
refer Tizen C coding style at
https://wiki.tizen.org/wiki/Native_Platform_Coding_Idiom_and_Style_Guide#C_Coding_Style
Heesub Shin [Sat, 6 May 2017 09:46:20 +0000 (18:46 +0900)]
artik053: sidk_s5jt200: set CONFIG_BOARDCTL_RESET=y
Change-Id: I2ec2d4577f840edc53ce82ea646597dd36af4acb
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Junhwan Park [Sat, 6 May 2017 09:26:27 +0000 (18:26 +0900)]
s5j: add to support board_reset()
board_reset() is an interface which is called by boardctl() when the
BOARDIOC_RESET is requested. This commit adds an implementation of it.
Change-Id: I45c569a034ab189f7c2e76ef264b28a8136dee5e
Signed-off-by: Junhwan Park <junhwan.park@samsung.com>
Heesub Shin [Sat, 6 May 2017 09:21:31 +0000 (18:21 +0900)]
artik053: sidk_s5jt200: add to support boardctl()
When CONFIG_LIB_BOARDCTL=y, let's build boardctl.c to support
boardctl().
Change-Id: Ifde0e94a0b7f5ac0fbe519bd11fa7eac583deee6
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Heesub Shin [Sat, 6 May 2017 09:15:53 +0000 (18:15 +0900)]
tash: add to support reboot command
This commit adds 'reboot' command which calls boardctl() with
BOARDIOC_RESET, so that the board resets. It is enabled only when
CONFIG_BOARDCTL_RESET=y.
Change-Id: Id6ecae937c1c965a39f96f09fd1883e84027f213
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Heesub Shin [Sat, 6 May 2017 09:02:34 +0000 (18:02 +0900)]
arch: add missing arch-specific kconfig entries
As a preparation step for supporting boardctl() feature, we need to add
some kconfig entries for indicating whether or not the architecture can
provide those capabilities.
Change-Id: I65d603b166216e47a04323d36a0dca941fcbfae4
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Heesub Shin [Sat, 6 May 2017 08:58:00 +0000 (17:58 +0900)]
arch: add missing boardctl()
In TizenRT, boardctl() is missing. Without it, there is no way to
support shutdown, reboot, or any other board-specific control. So, this
commit copies boardctl.c, IOCTL definitions and several Kconfig entries
from NuttX, which were deleted in TizenRT.
Change-Id: I8cbd27faa6cbfc12b65d6cba7f9c57237c81853f
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Junhwan Park [Thu, 4 May 2017 05:16:51 +0000 (14:16 +0900)]
examples/sensorbd_demo: fix gpio loopback test
Since we reworked the entire GPIO layer, 'sensorbd gpio' command have
been broken. This commit fixed it.
Change-Id: Ic04a800fc2bebd7991db8d1d8daf197ef367bb3e
Signed-off-by: Junhwan Park <junhwan.park@samsung.com>
Junhwan Park [Wed, 3 May 2017 00:16:10 +0000 (09:16 +0900)]
examples/mqtt_test: add missing parameter
Insufficient string parameters have been added.
Change-Id: I37eefe24c3fb9771663ada9a77ff69af4e2343ec
Signed-off-by: Junhwan Park <junhwan.park@samsung.com>
Junhwan Park [Wed, 3 May 2017 00:11:15 +0000 (09:11 +0900)]
examples/sensorbd_demo: add missing parameter
Insufficient string parameters have been added.
Change-Id: Iaa365f0f11f3a74869e0079fd224c356f08e1ac4
Signed-off-by: Junhwan Park <junhwan.park@samsung.com>
EunBong Song [Tue, 2 May 2017 07:59:26 +0000 (16:59 +0900)]
pthread: Fix compilation error on pthread_cond_wait
This patch fixes compilation error when CONFIG_CANCELLATION_POINTS and
CONFIG_PTHREAD_MUTEX_UNSAFE are enabled.
Change-Id: I4b0cfda0ff054568b29aae1c1560c7442da37887
Signed-off-by: EunBong Song <eunb.song@samsung.com>
EunBong Song [Tue, 2 May 2017 07:57:57 +0000 (16:57 +0900)]
pthread: Add logic to disable cancellation points within the OS
This is useful when an internal OS function that is NOT a cancellation
point calls an OS function which is a cancellation point. In that case,
irrecoverable states may states may occur if the cancellation is within
the OS.
All credits should go to Juha Niskanen who wrote the original commit.
Change-Id: Iaedfdcf921f4859f049d590e47ab136cb0a0b699
Signed-off-by: Juha Niskanen (Haltian) <juha.niskanen@haltian.com>
[Song: backported
b4747286 from Nuttx]
Signed-off-by: EunBong Song <eunb.song@samsung.com>
Jin-Seong Kim [Tue, 2 May 2017 07:14:34 +0000 (16:14 +0900)]
external/wakaama : minor patch to support TLS connection to artikcloud
This commit is minor patch to support TLS connection to artikcloud
- set cipher suite to all and auth_mode 0 (not verify)
Change-Id: I3f52693884d95ab831d9d2ae8a66e61eaf740d30
Signed-off-by: Jin-Seong Kim <jseong82.kim@samsung.com>
EunBong Song [Tue, 2 May 2017 04:39:05 +0000 (13:39 +0900)]
testcase: prevent function name pollution
change wait() and signal() to static function for preventing
function name pollution.
Change-Id: Iad38057fda77ae01c46bf507c919b65939a1a444
Signed-off-by: EunBong Song <eunb.song@samsung.com>
EunBong Song [Tue, 2 May 2017 02:39:04 +0000 (11:39 +0900)]
testcase: add missing socket close
This patch adds missing socket close in network testcases.
Change-Id: I0841430f375e36c25ca7068c0b73682aed1a3f71
Signed-off-by: EunBong Song <eunb.song@samsung.com>
EunBong Song [Tue, 2 May 2017 02:25:27 +0000 (11:25 +0900)]
testcase: add missing socket close
This patch adds missing socket close in network testcases.
Change-Id: I4c70ff23c99a8e0290901aeb46264072aed342c7
Signed-off-by: EunBong Song <eunb.song@samsung.com>
Heesub Shin [Thu, 4 May 2017 13:20:36 +0000 (22:20 +0900)]
artik053: export the OTA partition as /dev/mtdblock7
Now that the BCH driver and the block proxy are added, exporting the OTA
partition as /dev/mtdblock7 and accessing it using POSIX file i/o APIs
are possible. It will be very helpful when we are implementing OTA
downloaders.
Change-Id: Iba6e7a2e6aabb3819289d1c6768b6b40959e1f3b
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Heesub Shin [Thu, 4 May 2017 13:06:42 +0000 (22:06 +0900)]
fs: add to support block proxy
open() has been extended. You can now open block drivers and access them
just as you can character drivers. For example, you can hexdump a block
device.
Change-Id: I70db3eb0e452fcb04ed9fde1a5b4a53f4f5a0898
Signed-off-by: Gregory Nutt <gnutt@nuttx.org>
[Shin: backported
84a5f826c from NuttX]
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Heesub Shin [Thu, 4 May 2017 12:58:27 +0000 (21:58 +0900)]
drivers: add BCH device driver
BCH device driver allows us to access the block device as if it is a
character device. It is very helpful when we implement OTA downloader.
All credits should go to many other contributors who wrote the original
commits for NuttX.
Change-Id: I368d963e6e58d810f5fdc0cdc48279521453ac18
[Shin: backported from NuttX]
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Heesub Shin [Thu, 4 May 2017 13:26:25 +0000 (22:26 +0900)]
artik053: update bl2 image
BL2 image is updated to support OTA update and factory reset.
Change-Id: I349ec8c25b217b38fcf5d58a0428d48852f26583
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Heesub Shin [Mon, 1 May 2017 10:31:42 +0000 (19:31 +0900)]
s5j/serial: rework lower-half serial driver
This commit rewrites the lower-half serial driver in completely new in
order to clean up unnecessary code lines for better readability and
maintainability. As a result, binary footprints reduces as following:
text data bss dec hex filename
Before 2306 248 1024 3578 dfa s5j_serial.o
After 1254 240 1024 2518 9d6 s5j_serial.o
Change-Id: I4d7c45268dd24fb0da7d95ada1503c0b5c5c9574
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Heesub Shin [Tue, 2 May 2017 12:10:52 +0000 (21:10 +0900)]
s5j/serial: s/UARTDBG/UART4/g
It is very confusing that the Debug UART is sometimes referred to as
UART4 and sometimes UARTDBG. Given that the user manual of S5JT200
calls it as UART4, this commit replaces all occurrences of UARTDBG with
UART4 for better consistency.
Change-Id: I55be6a4b04357ed84eadfb9b573f10f908394b41
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Heesub Shin [Sat, 29 Apr 2017 09:30:31 +0000 (18:30 +0900)]
s5j: tidy up macro definitions of SFR base
Fixes trivial misalignment of macro definitions for better readability
and consistency. In addition, constants that are not in use or
dereferenced are also removed. This commit does not introduce any
functional differences and should not.
Change-Id: I8c3b0f8b51624c722e25e0068664d347da0cac20
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Heesub Shin [Sat, 29 Apr 2017 09:20:35 +0000 (18:20 +0900)]
s5j/sflash: clean up and simplify logic
Serial flash driver is using hard-coded constants. Now that the SFR
addresses and their biefield are defined in chip/s5jt200_sflash.h, we
can clean up a little bit by removing those constants and simplify the
internal logics for better readability.
Change-Id: Ifda7048bbcf58abd1a619a23fcc60d13d0cfe3e0
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Heesub Shin [Sat, 29 Apr 2017 09:16:30 +0000 (18:16 +0900)]
s5j/sflash: fix trivial coding style issues
As a preparation step before amending sflash driver further, we need to
fix trivial violations to the TizenRT coding style guideline.
Change-Id: Ic0563046615a0df9e92c3eae79dc6b67066940a8
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Heesub Shin [Sat, 29 Apr 2017 09:18:36 +0000 (18:18 +0900)]
s5j/sflash: add register definitions
This commit adds SFR addresses and bitfield definitions for SFLASH
controller of S5JT200. This will allow us to eliminate hard-coded
constants from sflash driver implementation.
Change-Id: I36124090a1ded44eb238007ec78a431aed03869c
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Heesub Shin [Sat, 29 Apr 2017 07:59:55 +0000 (16:59 +0900)]
s5j/serial: clean up macro definitions for SFR base
To follow convention, S5J_ prefix is needed at macro definitions for
UART base addresses. This commit also removes redundant macros.
Change-Id: I2716b758e6f34c63b4f89e27194619aade152ae0
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Junyeon LEE [Fri, 28 Apr 2017 19:03:27 +0000 (04:03 +0900)]
examples/tls: support pre-shared key in examples
This commit supports pre-shared key authentication in tls examples.
Change-Id: I16c0c4be015f048294257689bb3b83e3cfcf46ee
Signed-off-by: Junyeon LEE <junyeon2.lee@samsung.com>
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>