rtos/tinyara.git
6 years agoMerge pull request #689 from manoharahk/sidk_s5jt200_romfs_fix
sunghan-chang [Mon, 25 Sep 2017 07:39:40 +0000 (16:39 +0900)]
Merge pull request #689 from manoharahk/sidk_s5jt200_romfs_fix

sidk_s5t200 : create rom device using ftl mtd

6 years agosidk_s5t200 : create rom device using ftl mtd
Manohara HK [Sat, 23 Sep 2017 07:06:27 +0000 (12:36 +0530)]
sidk_s5t200 : create rom device using ftl mtd

Changes:
1. Create rom device using ftl mtd instead of smart mtd
2. Removed SIDK_S5JT200_AUTOMOUNT_ROMFS_DEVNAME config,
   and devname is dynamically composed.
3. Modified partition and openocd script accordingly

Signed-off-by: Manohara HK <manohara.hk@samsung.com>
6 years agoMerge pull request #684 from sunghan-chang/master
Taejun-Kwon [Mon, 25 Sep 2017 05:58:45 +0000 (14:58 +0900)]
Merge pull request #684 from sunghan-chang/master

cleanup Kconfig on external

6 years agoMerge pull request #657 from lokeshbv/iotbus
sunghan-chang [Mon, 25 Sep 2017 05:14:22 +0000 (14:14 +0900)]
Merge pull request #657 from lokeshbv/iotbus

Refactor iotbus PWM

6 years agoMerge pull request #679 from hs0225/modify_iotjs
sunghan-chang [Mon, 25 Sep 2017 04:54:06 +0000 (13:54 +0900)]
Merge pull request #679 from hs0225/modify_iotjs

IoT.js: Add new definition, BUILD_OPTION, to give additional build options in Makefile

6 years agoMerge pull request #673 from dr-venkman/fix_dm_itc
davidfather [Mon, 25 Sep 2017 02:51:06 +0000 (11:51 +0900)]
Merge pull request #673 from dr-venkman/fix_dm_itc

fixed build errors (conn linkUpEvent callback signature) and run-time (improper argument for set_tx_power) errors for DM itc

6 years agoFixed build and run-time errors for DM itc.
venkat.iyer [Thu, 21 Sep 2017 10:23:46 +0000 (19:23 +0900)]
Fixed build and run-time errors for DM itc.

Point-wise description
1. The build fix mainly involved changing function signature for linkUpEvent()
callback.
2. The run-time error fix was to provide the correct tx power level argument
for the itc_dm_conn_set_get_tx_power_p testcase.
3. Changed argument types for DM API get_client_state
4. Changed argument types for WiFiConnect SLSI API, to prevent possible compilation error

6 years agoIoT.js: Add new definition, BUILD_OPTION, to give additional build options in Makefile
Hosung Kim [Fri, 22 Sep 2017 04:57:00 +0000 (13:57 +0900)]
IoT.js: Add new definition, BUILD_OPTION, to give additional build options in Makefile

6 years agoexternal: split Kconfig for each module
sunghan [Fri, 22 Sep 2017 12:21:30 +0000 (21:21 +0900)]
external: split Kconfig for each module

Each module had better have an independent Kconfig. Putting all of configs
in one Kconfig makes bad readability and maintenance.
The Kconfig on external gets a functionality calling each Kconfig.

6 years agoIoT.js: modify Kconfig to be called with Runtime Environment title
sunghan [Fri, 22 Sep 2017 12:13:24 +0000 (21:13 +0900)]
IoT.js: modify Kconfig to be called with Runtime Environment title

1. Split Kconfig from external's
2. Call it from os/Kconfig.runtime to get "Runtime Environment" title
   at 1st depth of menuconfig

6 years agoUse new type percent_t for duty cycle variable in pwm
Lokesh B V [Fri, 22 Sep 2017 11:50:23 +0000 (17:20 +0530)]
Use new type percent_t for duty cycle variable in pwm

percent_t is typedef of uint8_t.
Duty cycle is measured in terms of percentage, so it's value will be
in range from 0 t0 100 and uint8_t is enough to hold percentage values.

Signed-off-by: Lokesh B V <lokesh.bv@partner.samsung.com>
6 years agoUpdate comments for duty element in struct pwm_info_s
Lokesh B V [Fri, 22 Sep 2017 11:22:24 +0000 (16:52 +0530)]
Update comments for duty element in struct pwm_info_s

In PWM, 1 is always high and 0 is always low.
If we set a duty cycle to 100%, PWM should be 1 always.
If we set a duty cycle to 50%, PWM should be half 1 and half 0.
If we set a duty cycle to 0%, PWM should be 0 always.

Signed-off-by: Lokesh B V <lokesh.bv@partner.samsung.com>
6 years agoRefactor IOTBUS_PWM macros used in iotbus_pwm.c
Lokesh B V [Fri, 22 Sep 2017 08:00:56 +0000 (13:30 +0530)]
Refactor IOTBUS_PWM macros used in iotbus_pwm.c

1. Remove unused macro IOTBUS_USEC_2_SEC
2. Replace hard coded value "1000000" with macro IOTBUS_PWM_MAX_PERIOD
3. Replace hard coded value "65536" with new macro IOTBUS_PWM_MAX_RESOLUTION

Signed-off-by: Lokesh B V <lokesh.bv@partner.samsung.com>
6 years agoMerge pull request #671 from jarvisjang/audio_utc
Taejun-Kwon [Fri, 22 Sep 2017 08:57:53 +0000 (17:57 +0900)]
Merge pull request #671 from jarvisjang/audio_utc

Modify readi and writei as streaming

6 years agoModify readi and writei as streaming
Jarvis Jang [Thu, 21 Sep 2017 09:33:37 +0000 (18:33 +0900)]
Modify readi and writei as streaming

6 years agoMerge pull request #678 from btheosam/audiowork
Taejun-Kwon [Fri, 22 Sep 2017 06:29:10 +0000 (15:29 +0900)]
Merge pull request #678 from btheosam/audiowork

Fix ALC5658 Kconfig: #1. ALC5658 buffers should be enabled only when …

6 years agoFix ALC5658 Buffer dependency in Kconfig
bsvt [Fri, 22 Sep 2017 05:38:01 +0000 (22:38 -0700)]
Fix ALC5658 Buffer dependency in Kconfig

1. ALC5658 buffers should be enabled only when driver specific buffer
options are enabled in Audio, otherwise audio buffers should be used.
2. There is no worker thread in alc5658 driver.

6 years agoMerge pull request #677 from junmin-kim/select_test
sunghan-chang [Fri, 22 Sep 2017 04:54:51 +0000 (13:54 +0900)]
Merge pull request #677 from junmin-kim/select_test

Fix typo in select test

6 years agoFix typo in select test
junmin kim [Fri, 22 Sep 2017 04:44:15 +0000 (21:44 -0700)]
Fix typo in select test

6 years agoMerge pull request #410 from olegartys/992
sunghan-chang [Fri, 22 Sep 2017 04:40:50 +0000 (13:40 +0900)]
Merge pull request #410 from olegartys/992

lib/libc/Kconfig: make FLOATINGPOINT dependent on LIBM support

6 years agoMerge pull request #669 from pillip8282/rename_sample
sunghan-chang [Fri, 22 Sep 2017 03:22:16 +0000 (12:22 +0900)]
Merge pull request #669 from pillip8282/rename_sample

apps:examples rename webserver and webclient

6 years agoMerge pull request #672 from pradeepns85/fix_memleak_websocket
davidfather [Fri, 22 Sep 2017 01:22:54 +0000 (10:22 +0900)]
Merge pull request #672 from pradeepns85/fix_memleak_websocket

Fix the memory leak caused due to merge#667 in websocket_main

6 years agoapps:examples Rename sample programs(webserver, webclient) at menuconfig
kang [Thu, 21 Sep 2017 07:48:24 +0000 (16:48 +0900)]
apps:examples Rename sample programs(webserver, webclient) at menuconfig

6 years agoFix the memory leak caused due to merge#667 in websocket_main
pradeep.ns [Thu, 21 Sep 2017 10:04:10 +0000 (15:34 +0530)]
Fix the memory leak caused due to merge#667 in websocket_main

1) websocket_main() allocates memory for input
2) calls websocket_client() api and passes input as argument
3) websocket_client returns without freeing the input due to error cases
4) websocket_main does not handle this case due to merge commit id #667

Fixed the same as follows
1) Removed the freeing of allocated memory for input inside websocket_client and websocket_server
2) Added pthred_join to wait until the child thread finishes
3) During exit of main thread, take care of releasing the allocated memory

Signed-off-by: pradeep.ns <pradeep.ns@samsung.com>
6 years agoMerge pull request #674 from jsdosa/utc_audio
sunghan-chang [Thu, 21 Sep 2017 10:41:40 +0000 (19:41 +0900)]
Merge pull request #674 from jsdosa/utc_audio

change file permission for utc_audio_main

6 years agochange file permission for utc_audio_main
jaesick.shin [Thu, 21 Sep 2017 10:30:44 +0000 (19:30 +0900)]
change file permission for utc_audio_main

permissions have been set incorrectly in previous commit

6 years agoMerge pull request #667 from dr-venkman/fix_errors_tls_websocket
pillip8282 [Thu, 21 Sep 2017 08:52:29 +0000 (17:52 +0900)]
Merge pull request #667 from dr-venkman/fix_errors_tls_websocket

Fix build error in tls_client_main.c

6 years agoMerge pull request #666 from JeonginKim/master
sunghan-chang [Thu, 21 Sep 2017 08:42:23 +0000 (17:42 +0900)]
Merge pull request #666 from JeonginKim/master

Added doxygen script for smartThings Things SDK

6 years agoMerge pull request #670 from jsdosa/audio_utc
Taejun-Kwon [Thu, 21 Sep 2017 08:32:05 +0000 (17:32 +0900)]
Merge pull request #670 from jsdosa/audio_utc

set null for audio_utc

6 years agoset null for utc_audio
jaesick.shin [Thu, 21 Sep 2017 08:00:56 +0000 (17:00 +0900)]
set null for utc_audio

After pcm_close, set the g_pcm variable to null

Signed-off-by: jaesick.shin <jaesick.shin@samsung.com>
6 years agoMerge pull request #652 from pillip8282/network_doc
davidfather [Thu, 21 Sep 2017 07:28:39 +0000 (16:28 +0900)]
Merge pull request #652 from pillip8282/network_doc

fix netdb bug

6 years agoapps:websocket- Fixed the double free of input arguments for websocket_main function.
venkat.iyer [Thu, 21 Sep 2017 07:05:50 +0000 (16:05 +0900)]
apps:websocket- Fixed the double free of input arguments for websocket_main function.

6 years agoFix build error in tls_client_main.c
venkat.iyer [Thu, 21 Sep 2017 06:59:50 +0000 (15:59 +0900)]
Fix build error in tls_client_main.c

6 years agofix netdb bug
kang [Wed, 20 Sep 2017 06:57:57 +0000 (15:57 +0900)]
fix netdb bug

1) If netdb calls exit() then tash will be destroyed. so I call 'return' instead of calling exit().
2) Usage message is wrong, showing address options even though HAVE_GETHOSTBYADDR flag is off.

6 years agoAdded doxygen script for smartThings Things SDK
JeonginKim [Thu, 21 Sep 2017 06:38:13 +0000 (15:38 +0900)]
Added doxygen script for smartThings Things SDK

6 years agoMerge pull request #665 from junmin-kim/tiva_setjmp
sunghan-chang [Thu, 21 Sep 2017 06:23:04 +0000 (15:23 +0900)]
Merge pull request #665 from junmin-kim/tiva_setjmp

Revert "Remove setjmp.S in tiva/Make.defs"

6 years agoMerge pull request #650 from heejin-kim/hj_18
sunghan-chang [Thu, 21 Sep 2017 06:14:56 +0000 (15:14 +0900)]
Merge pull request #650 from heejin-kim/hj_18

Remove unused files in external/iotivity

6 years agoRevert "Remove setjmp.S in tiva/Make.defs"
junmin kim [Thu, 21 Sep 2017 05:38:14 +0000 (22:38 -0700)]
Revert "Remove setjmp.S in tiva/Make.defs"

This reverts commit 16d1bd0fbe1f16c8745eafc48c21cd6c9152863f.
tiva build works well by merging commit 6959f4f4f4b2d71d09ecee9f3c1c1846d29bd05a

6 years agoMerge pull request #663 from JeonginKim/master
davidfather [Thu, 21 Sep 2017 06:10:43 +0000 (15:10 +0900)]
Merge pull request #663 from JeonginKim/master

Added doxygen script for wifi manager

6 years agoMerge pull request #659 from davidfather/wifi_manager_refactoring
pillip8282 [Thu, 21 Sep 2017 06:10:24 +0000 (15:10 +0900)]
Merge pull request #659 from davidfather/wifi_manager_refactoring

Adjust the critical sections of wifi_manager

6 years agoMerge pull request #664 from jeongchanKim/move_iperf
sunghan-chang [Thu, 21 Sep 2017 06:04:49 +0000 (15:04 +0900)]
Merge pull request #664 from jeongchanKim/move_iperf

Move iperf from apps/examples to apps/system

6 years agoMove iperf from apps/examples to apps/system
jc_.kim [Thu, 21 Sep 2017 04:58:01 +0000 (13:58 +0900)]
Move iperf from apps/examples to apps/system

6 years agoAdjust the critical sections of wifi_manager
Seongil Hahm [Wed, 20 Sep 2017 07:38:29 +0000 (00:38 -0700)]
Adjust the critical sections of wifi_manager

1. relocate w_mutex to protect g_manager_info and to prevent wifi_utils apis from being called simultaneously
2. add mac_addr in wifi_manager_get_info() api

6 years agoAdded doxygen script for wifi manager
JeonginKim [Thu, 21 Sep 2017 01:08:17 +0000 (10:08 +0900)]
Added doxygen script for wifi manager

6 years agoMerge pull request #661 from sunghan-chang/remove_lcd
Taejun-Kwon [Wed, 20 Sep 2017 10:28:50 +0000 (19:28 +0900)]
Merge pull request #661 from sunghan-chang/remove_lcd

drivers: remove lcd stubs

6 years agodrivers: remove lcd stubs
sunghan [Wed, 20 Sep 2017 10:08:40 +0000 (19:08 +0900)]
drivers: remove lcd stubs

The lcd is imcomplete and unnecessary. Let's remove it.

6 years agoMerge pull request #648 from Taejun-Kwon/fs_journaling
sunghan-chang [Wed, 20 Sep 2017 10:06:21 +0000 (19:06 +0900)]
Merge pull request #648 from Taejun-Kwon/fs_journaling

Apply verification code for transaction logging.

6 years agoMerge pull request #660 from sunghan-chang/samsungartik
Taejun-Kwon [Wed, 20 Sep 2017 10:03:11 +0000 (19:03 +0900)]
Merge pull request #660 from sunghan-chang/samsungartik

Sync up kernel side with SamsungARTIK

6 years agoartik053: modify memorymap figure
Junhwan Park [Thu, 14 Sep 2017 00:07:06 +0000 (09:07 +0900)]
artik053: modify memorymap figure

I changed the address value to the wrong one. I added a little
explanation.

Change-Id: Ia54ed094944156b7945654d3f8e5dcc91f4f6a89
Signed-off-by: Junhwan Park <junhwan.park@samsung.com>
Conflicts:
build/configs/artik053/scripts/README.md

6 years agos5j/serial: refactor up_rxavailable()
Heesub Shin [Wed, 13 Sep 2017 07:21:57 +0000 (16:21 +0900)]
s5j/serial: refactor up_rxavailable()

When determining the availability of Rx FIFO, combining UFSTAT[8] and
UFSTAT[7:0] looks more tidy and clean.

Change-Id: I1b35dd2afae710375c0bf616f7eeae615fdb8cd6
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
6 years agos5j/serial: fix RX availability check
Heesub Shin [Wed, 13 Sep 2017 07:02:17 +0000 (16:02 +0900)]
s5j/serial: fix RX availability check

UFSTAT[7:0] holds the number of data in Rx FIFO, but zero when Rx FIFO
is full. Thus, we need additional check on UFSTAT[8] bit to ensure that
the FIFO is empty, if the count is zero. Otherwise, up_rxavailable() may
return 'false' even when Rx FIFO is full, though it is less likely to
happen.

Change-Id: Iffd65bf356dd840e864553daf8aa9a7f04a0368e
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
6 years agos5j/serial: rename UFSTAT bitfield
Heesub Shin [Wed, 13 Sep 2017 07:16:45 +0000 (16:16 +0900)]
s5j/serial: rename UFSTAT bitfield

For better consistency,

    s/UART_UFSTAT_RX_FIFO_MASK/UART_UFSTAT_RX_FIFO_FULL_MASK/

Change-Id: Idb50bd4eb490f85d8e291f073ba9fad00fa850ce
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
6 years agos5j/serial: fix initialization order
Heesub Shin [Tue, 12 Sep 2017 05:07:36 +0000 (14:07 +0900)]
s5j/serial: fix initialization order

GPIO pinmux configuration should be done before starting to supply PCLK
and EXTCLK to UART when opening it. Otherwise, a noise signal may be
introduced into the receiving FIFO, causing an odd RX interrupt. For the
same reason, this also applies when closing it.

This commit fixes the issue that select() and poll() fails on serial
devices.

Change-Id: I05309a1637574936f53a529d018dd28600b14295
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
6 years agos5j/pwm: add pwm register value initialization
Bongryul Lee [Fri, 8 Sep 2017 13:49:19 +0000 (22:49 +0900)]
s5j/pwm: add pwm register value initialization

The register value used in bl2 still remain. So it must be initialized.

Change-Id: I6bbc5484116b941810ba0399f7a90852fc2eee86
Signed-off-by: Bongryul Lee <bongryul.lee@samsung.com>
6 years agos5j/pwm: fix 32bit integer overflow when arithmetic operation
Bongryul Lee [Fri, 8 Sep 2017 13:43:15 +0000 (22:43 +0900)]
s5j/pwm: fix 32bit integer overflow when arithmetic operation

Change-Id: I216557d33653bfbda9b46333847e9872b979992e
Signed-off-by: Bongryul Lee <bongryul.lee@samsung.com>
6 years agoMerge pull request #658 from Taejun-Kwon/fs_common
sunghan-chang [Wed, 20 Sep 2017 08:34:27 +0000 (17:34 +0900)]
Merge pull request #658 from Taejun-Kwon/fs_common

Add missing fclose state

6 years agoAdd missing fclose state
TaeJun Kwon [Wed, 20 Sep 2017 08:13:33 +0000 (17:13 +0900)]
Add missing fclose state

6 years agoPass toplevel make to the script to allow -j greater than 1
David Sidrane [Wed, 30 Aug 2017 02:41:39 +0000 (11:41 +0900)]
Pass toplevel make to the script to allow -j greater than 1

Change-Id: I39c5b6aae94eb662119064f1fa59841be74055d5
Signed-off-by: David Sidrane <david_s5@nscdg.com>
[Shin: cherry-picked from the upstream]
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
6 years agoMerge pull request #649 from JeonginKim/master
Taejun-Kwon [Wed, 20 Sep 2017 08:23:15 +0000 (17:23 +0900)]
Merge pull request #649 from JeonginKim/master

Added doxygen script for audio framework

6 years agoMerge pull request #651 from shivgarg/tinyalsa
Taejun-Kwon [Wed, 20 Sep 2017 08:22:29 +0000 (17:22 +0900)]
Merge pull request #651 from shivgarg/tinyalsa

Removing limits.h and interval.h files from tinyalsa

6 years agoMerge pull request #656 from lokeshbv/build_fixes
Taejun-Kwon [Wed, 20 Sep 2017 08:22:09 +0000 (17:22 +0900)]
Merge pull request #656 from lokeshbv/build_fixes

Fix: Remove duplicate entry in 'os/arch/arm/src/s5j/Make.defs'

6 years agoMerge pull request #646 from tadziopazur/setjmp_fix
sunghan-chang [Wed, 20 Sep 2017 08:21:33 +0000 (17:21 +0900)]
Merge pull request #646 from tadziopazur/setjmp_fix

setjmp/longjmp thumb build fix

6 years agoMerge pull request #655 from Taejun-Kwon/audio_defconfig
sunghan-chang [Wed, 20 Sep 2017 08:17:25 +0000 (17:17 +0900)]
Merge pull request #655 from Taejun-Kwon/audio_defconfig

Minimize Audio's defconfig

6 years agoexamples/sensorbd_demo: fix uart examples about buffer init
Junhwan Park [Wed, 30 Aug 2017 02:06:51 +0000 (11:06 +0900)]
examples/sensorbd_demo: fix uart examples about buffer init

In the uart example, the initialization of the rx buffer was missing.

Change-Id: Iafdacd16e3f9f4644bb92bc969e6f1d96cdf0d6f
Signed-off-by: Junhwan Park <junhwan.park@samsung.com>
6 years agos5j/serial: fix invalid clock configuration on UART4
Heesub Shin [Wed, 30 Aug 2017 01:19:28 +0000 (10:19 +0900)]
s5j/serial: fix invalid clock configuration on UART4

UARTDBG has incorrect PCLK and EXTCLK configurations. This may cause
system hang when we access UARTDBG if it is not set as a default
console.

Change-Id: Ibbc427e170a7174504e755cdc9732ca83ce9ed1c
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
6 years agoFix: Remove duplicate entry in 'os/arch/arm/src/s5j/Make.defs'
Lokesh B V [Wed, 20 Sep 2017 07:49:41 +0000 (13:19 +0530)]
Fix: Remove duplicate entry in 'os/arch/arm/src/s5j/Make.defs'

Fix "Makefile:174: target `s5j_clock.o' given more than once in the same rule"
Removed the duplicate entry 'CHIP_CSRCS += s5j_clock.c' in 'os/arch/arm/src/s5j/Make.defs'

Signed-off-by: Lokesh B V <lokesh.bv@partner.samsung.com>
6 years agos5j/i2c: fix svace warning
Junhwan Park [Mon, 28 Aug 2017 03:55:49 +0000 (12:55 +0900)]
s5j/i2c: fix svace warning

I changed some warnings found in the svace test.
- remove unnecessary casting

Change-Id: I9173e7f75338748064c80835ccc08967ecfa9cb5
Signed-off-by: Junhwan Park <junhwan.park@samsung.com>
6 years agos5j/serial: add constraints on UART flowcontrol
Heesub Shin [Mon, 28 Aug 2017 00:44:39 +0000 (09:44 +0900)]
s5j/serial: add constraints on UART flowcontrol

RTS/CTS pins of UART2/3 are shared with other peripherals. To ensure
that those pins are mutually exclusive, add dependencies on Kconfig
entries.

Change-Id: I0ce100a082b0ce2a58d9a2b7259d2f73bbace155
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
6 years agoartik053: add new line parameter in lldbg
Junhwan Park [Thu, 10 Aug 2017 06:39:08 +0000 (15:39 +0900)]
artik053: add new line parameter in lldbg

Missing new line parameters were in some lldbg. This can degrade the
readability of the error log when abnormal.

Change-Id: I1794caf247102cf9bcd720260d680e34e6270950
Signed-off-by: Junhwan Park <junhwan.park@samsung.com>
Conflicts:
os/arch/arm/src/artik053/src/artik053_tash.c

6 years agos5j/serial: fix UART problem caused by executing ioctl()'s TCSETS
Wonsang Ryou [Mon, 21 Aug 2017 15:51:40 +0000 (00:51 +0900)]
s5j/serial: fix UART problem caused by executing ioctl()'s TCSETS

This patch fixes UART commucation problem that occurs after executing
ioctl()'s TCSETS case. Because the TCSETS executes up_setup() which
disables all interrupts, UART commucation will be blocked after doing
ioctl()'s TCSETS case. In ioctl()'s TCSETS case, this patch replaces
up_setup() with up_configure(). The up_configure() function configures
baud, bits, parity and etc. without disabling all interrupts.

Change-Id: I43c624c13e37d883553ca0b0f498fb9a1663150d
Signed-off-by: Wonsang Ryou <wonsang.yoo@samsung.com>
6 years agos5j/serial: refactor up_setup()
Wonsang Ryou [Mon, 21 Aug 2017 15:36:10 +0000 (00:36 +0900)]
s5j/serial: refactor up_setup()

This patch separates up_configure() function, which configures baud
rate, bits and parity, from up_setup(). The up_configure() function
can be called when baud, bits or parity is initialized or changed.

Change-Id: I6f12d57f969fe0fbbde0e13583bde4f0032bccd6
Signed-off-by: Wonsang Ryou <wonsang.yoo@samsung.com>
6 years agoexamples/tls_server: fix svace warning
Joohwan Kim [Mon, 21 Aug 2017 10:50:53 +0000 (19:50 +0900)]
examples/tls_server: fix svace warning

This commit fixes svace warning about UNREACHABLE_CODE.

Change-Id: I5937a681e34fa29195026f64a4260a1c4fb2de01
Signed-off-by: Joohwan Kim <joohwani.kim@samsung.com>
6 years agos5j/watchdog: fix svace warning
Junhwan Park [Fri, 18 Aug 2017 07:15:55 +0000 (16:15 +0900)]
s5j/watchdog: fix svace warning

I changed some warnings found in the svace test.
- I added a NULL check on the structure to prevent errors.

Change-Id: I50438ea5df62c7f5d77ecfcb8a00fcddd6200990
Signed-off-by: Junhwan Park <junhwan.park@samsung.com>
Conflicts:
os/arch/arm/src/s5j/s5j_watchdog_lowerhalf.c

6 years agoapps/examples: fix svace warning
Junhwan Park [Fri, 18 Aug 2017 07:09:39 +0000 (16:09 +0900)]
apps/examples: fix svace warning

I changed some warnings found in the svace test.
- I added a return check to some functions.
- Changed unnecessary variable settings.

Change-Id: Iaf4c2785dafe085e9a887ed0e8dc969bd398e244
Signed-off-by: Junhwan Park <junhwan.park@samsung.com>
Conflicts:
apps/examples/security_api/security_api_tc_main.c

6 years agoMinimize Audio's defconfig
TaeJun Kwon [Wed, 20 Sep 2017 07:25:27 +0000 (16:25 +0900)]
Minimize Audio's defconfig

6 years agoexamples/tls: fix README.txt files for tls client/server
Joohwan Kim [Wed, 2 Aug 2017 06:13:06 +0000 (15:13 +0900)]
examples/tls: fix README.txt files for tls client/server

This commit fixes app command in README test.

Change-Id: Ib9326fab2613811b987af341b3af822b53c84ddb
Signed-off-by: Joohwan Kim <joohwani.kim@samsung.com>
6 years agoexamples/smart_test: fix memory leak
Junhwan Park [Thu, 3 Aug 2017 07:42:17 +0000 (16:42 +0900)]
examples/smart_test: fix memory leak

Some fd values were not properly close after open. This can cause memory
leaks.

Change-Id: Ia4a62910370751ad3da3954baa7ad5383c193e2b
Signed-off-by: Junhwan Park <junhwan.park@samsung.com>
6 years agoexamples/mtdpart: fix depend on RAMMTD
Junhwan Park [Thu, 27 Jul 2017 05:48:23 +0000 (14:48 +0900)]
examples/mtdpart: fix depend on RAMMTD

'CONFIG_RAMMTD' is required to run the mtdpart example.

Change-Id: If3218b3ee9a27f5d80e1ec21c22faf419e2c2005
Signed-off-by: Junhwan Park <junhwan.park@samsung.com>
6 years agoartik053: fix trivial typo
Junhwan Park [Tue, 25 Jul 2017 04:24:29 +0000 (13:24 +0900)]
artik053: fix trivial typo

'EXTENTION' may be misspelled. perhaps 'EXTENSION'

Change-Id: I74e660e2f802005d60dc536343f86b66d168c833
Signed-off-by: Junhwan Park <junhwan.park@samsung.com>
Conflicts:
build/configs/artik053/securitytest/defconfig

6 years agoRemoving limits.h and interval.h files from tinyalsa
Shivam Garg [Wed, 20 Sep 2017 06:50:39 +0000 (15:50 +0900)]
Removing limits.h and interval.h files from tinyalsa

6 years agoApply verification code for transaction logging.
TaeJun Kwon [Wed, 20 Sep 2017 04:02:19 +0000 (13:02 +0900)]
Apply verification code for transaction logging.
Sometimes eletronic power grow up after power off, in this case
FS treats writing logging finished properly.

6 years agocJSON: remove warning about prototype
sunghan [Wed, 20 Sep 2017 06:06:34 +0000 (15:06 +0900)]
cJSON: remove warning about prototype
Some functions of cJSON did not have a prototype. This can sometimes
cause a warning when building.

Change-Id: If47338e11f13a77f2a5d2283160245fa4868cfec
Signed-off-by: Junhwan Park <junhwan.park@samsung.com>
6 years agotools/mkkconfig: sort apps in menuconfig
Junhwan Park [Mon, 17 Jul 2017 04:23:17 +0000 (13:23 +0900)]
tools/mkkconfig: sort apps in menuconfig

When searching for Kconfig in apps with the find command, it was not
output in numerical order. It is a patch that sort only the output
results.

Change-Id: I3b0822735a633de329dcb7ff16c95c33115dedd9
Signed-off-by: Junhwan Park <junhwan.park@samsung.com>
6 years agos5j/pm: add dynamic clock scaling support per PM state
Heesub Shin [Thu, 13 Jul 2017 07:36:40 +0000 (16:36 +0900)]
s5j/pm: add dynamic clock scaling support per PM state

To reduce power consumption, use OSCCLK of 26MHz as source clock of
DIV_WPLL_DIV3, instead of WPLL_CLK960M of 960MHz. It may reduce the
amount of power consumption up to about 25mA while the system falls into
PMSTOP or PMSTANDBY state.

Change-Id: If9a70c35ed1576cd61e60de6f9942332f022d337
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
6 years agos5j/serial: add runtime PM support
Heesub Shin [Thu, 13 Jul 2017 07:28:13 +0000 (16:28 +0900)]
s5j/serial: add runtime PM support

This commit adds runtime support calls to notify PM state machine when
UART activity is detected.

Change-Id: Ie549fbca6020b0b664dfb7a60a83e0fbbc6e5083
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Conflicts:
os/arch/arm/src/s5j/s5j_serial.c

6 years agoRemove unused files in external/iotivity
Heejin Kim [Wed, 20 Sep 2017 06:02:21 +0000 (15:02 +0900)]
Remove unused files in external/iotivity

Files for Android and other platforms are removed.

6 years agos5j/serial: enable clockgating on UARTs
Heesub Shin [Thu, 13 Jul 2017 07:15:55 +0000 (16:15 +0900)]
s5j/serial: enable clockgating on UARTs

To reduce dynamic power consumption, UART clocks are set to be disabled
while we are not using it. Except the UARTDBG, all other UARTs will be
unavailable until it is opened through /dev node.

Change-Id: Ibc4c8b750697d1f8ad1ee42764cd7485666d6d04
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
6 years agos5j/serial: retrieve UCLK freq from clock driver
Heesub Shin [Thu, 13 Jul 2017 07:04:11 +0000 (16:04 +0900)]
s5j/serial: retrieve UCLK freq from clock driver

In S5J, source clock of UART can be one of following: OSCCLK and
WPLL_DIV12. Now that the clock driver is available, we may retrieve
clock frequency of the source clock, instead of using hard-coded clock
value.

Change-Id: Idc372a8c30cd214da545d40baf1eed9f723102d2
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
6 years agos5j/mct: retrieve TCLK freq from clock driver
Heesub Shin [Thu, 13 Jul 2017 07:49:07 +0000 (16:49 +0900)]
s5j/mct: retrieve TCLK freq from clock driver

Instead of using hard-coded clock frequency, retrieve it from the clock
driver.

Change-Id: Iac7ccbfb364016889ec62323698a12e26cb90d3b
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
6 years agos5j/pwm: retrieve SCLK freq from clock driver
Heesub Shin [Thu, 13 Jul 2017 07:46:14 +0000 (16:46 +0900)]
s5j/pwm: retrieve SCLK freq from clock driver

Instead of using hard-coded clock value, retrieve it from the clock
driver.

Change-Id: I87de159783280ee0ea9fb03ba01d902bf352fd91
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
6 years agos5j/clk: rework CMU driver
Heesub Shin [Thu, 13 Jul 2017 06:54:48 +0000 (15:54 +0900)]
s5j/clk: rework CMU driver

Change-Id: I7725455a27572e72331b686933ad61a3af0de94f
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Conflicts:
os/arch/arm/src/s5j/Kconfig
os/arch/arm/src/s5j/chip/s5jt200_cmu.h
os/arch/arm/src/s5j/s5j_clock.c
os/arch/arm/src/s5j/s5j_clock.h
os/arch/arm/src/s5j/s5j_spi.c

6 years agos5j/pm: add missing callbacks for PM framework
Heesub Shin [Thu, 13 Jul 2017 06:13:50 +0000 (15:13 +0900)]
s5j/pm: add missing callbacks for PM framework

BSP should provide an implementation of up_idle() in order to use the PM
framework that NuttX supports, but it is missing in S5J. This commit
adds up_idle() and other additional callback implementation. However,
this commit does not any functional differences at all, because PM
callbacks are blank and doing nothing for now.

Change-Id: Iced2074dd71afd545b6cf1ed74164e3cc525a019
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
6 years agos5j/pwm: verify the result of pinmux control
Heesub Shin [Thu, 13 Jul 2017 06:28:01 +0000 (15:28 +0900)]
s5j/pwm: verify the result of pinmux control

Change-Id: I8ce31f4f16322077ab71360115a4f183ac7e1c7a
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
6 years agos5j/pm: drop broken PM stuff
Heesub Shin [Thu, 13 Jul 2017 04:51:46 +0000 (13:51 +0900)]
s5j/pm: drop broken PM stuff

PM stuff has been left abandoned since it was introduced just for
proof-of-concept. It is time to clean up. This commit gets rid of those
broken code lines and also invalid comments that were copy-and-pasted
from other NuttX BSP.

This commit does not cause any functional differences because codes that
are being touched were not actually called from anywhere.

Change-Id: Id5b23b2149c7e048b08485ccdd148130ca6579b4
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Conflicts:
os/arch/arm/src/s5j/Kconfig
os/arch/arm/src/s5j/Make.defs

6 years agos5j/pm: fix invalid build rule on PM
Heesub Shin [Thu, 13 Jul 2017 04:36:21 +0000 (13:36 +0900)]
s5j/pm: fix invalid build rule on PM

s5j_pm*.c should be included when CONFIG_PM=y, not
CONFIG_ARCH_CUSTOM_PMINIT.

Change-Id: I14ff07bf542c8e8e3a1c73b26328558a51f50ac2
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
6 years agotools/mkkconfig: mkkconfig not to complaining
Heesub Shin [Fri, 14 Jul 2017 06:52:49 +0000 (15:52 +0900)]
tools/mkkconfig: mkkconfig not to complaining

mkkconfig.sh is a script for generating Kconfig recursively. Sometimes
it spits a trivial warning that is very annoying to see as following:

    mkkconfig in /home/heesub/Documents/artik053/tinyara/apps/netutils
    mkkconfig in /home/heesub/Documents/artik053/tinyara/apps/netutils
    ls: cannot access '/home/heesub/Documents/artik053/tinyara/apps/netutils/*/Kconfig_ENTRY': No such file or directory

This commit should stop mkkconfig.sh from complaining and will hopefully
save someone from having to debug it.

Change-Id: Iaef3cb00cc011d09d1d4abeda430dc16a56ddf83
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
6 years agobuild: fix incorrect definition on build order
Heesub Shin [Fri, 14 Jul 2017 01:41:57 +0000 (10:41 +0900)]
build: fix incorrect definition on build order

The target 'memstat' becomes available to be built after $(BIN) is
ready. In other words, 'memstat' depends on $(BIN). However, build rule
does not reflect this fact, and thus fails when it runs with -j option
greater than 1 as following:

    LN: include/apps to ../apps/include
    make[1]: Entering directory '/home/heesub/Documents/artik053/tinyara/apps'
    Traceback (most recent call last):
      File "./tools/memstats_gnueabil.py", line 42, in <module>
        infile = open(options.infilename,'r')
    IOError: [Errno 2] No such file or directory: '../build/output/bin/tinyara.map'
    Makefile.unix:618: recipe for target 'memstat' failed
    make: *** [memstat] Error 1
    make: *** Waiting for unfinished jobs....

This commit fixes this.

Change-Id: Ic1c7251caaa378411548bf66d3bdc73ad822fce6
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Conflicts:
os/Makefile.unix

6 years agoAdded doxygen script for audio framework
JeonginKim [Wed, 20 Sep 2017 05:29:06 +0000 (14:29 +0900)]
Added doxygen script for audio framework

6 years agoartik053/openocd: reset the target on prepare_target()
Heesub Shin [Wed, 12 Jul 2017 08:32:30 +0000 (17:32 +0900)]
artik053/openocd: reset the target on prepare_target()

prepare_target() fails sometimes when the target is in abnormal state
like data abort, and we need to push the reset button. In such cases,
it is not enough to give 'halt' command. 'reset halt' seems to be
appropriate.

Change-Id: I15e197a8e7232924cfeac8d064fb4f46a84d09cf
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
6 years agoexamples/smart_test: fix append test
Junhwan Park [Mon, 10 Jul 2017 01:57:23 +0000 (10:57 +0900)]
examples/smart_test: fix append test

I append some data to the end of the file. There was an error in the
starting position setting for searching data.

Change-Id: I9346b8ca4f2c0f34bd8253caea667cb3dae622fe
Signed-off-by: Junhwan Park <junhwan.park@samsung.com>