rtos/tinyara.git
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 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 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>
6 years agoexamples/sensorbd_demo: fix thread safety on SPI examples
Junhwan Park [Thu, 22 Jun 2017 11:13:40 +0000 (20:13 +0900)]
examples/sensorbd_demo: fix thread safety on SPI examples

In the case of spi, the user directly calls the os level define at the
app level. So when using spi, the user must first check the device data
value.

Change-Id: Ic73bc6f9a76ace75d55952c6b94aa36306b25c5f
Signed-off-by: Junhwan Park <junhwan.park@samsung.com>
6 years agoi2c: fix thread safety
Junhwan Park [Thu, 22 Jun 2017 11:05:54 +0000 (20:05 +0900)]
i2c: fix thread safety

In the i2c_read / i2c_write function at the os level, a problem may
occur when the device data value is not declared. This patch is modified
to check the device data value first to ensure thread safety.

Change-Id: I7a47791939412ef8b2828526de7130276bd3a03c
Signed-off-by: Junhwan Park <junhwan.park@samsung.com>
6 years agoMerge pull request #643 from sunghan-chang/artik053_userfs
Taejun-Kwon [Wed, 20 Sep 2017 04:53:29 +0000 (13:53 +0900)]
Merge pull request #643 from sunghan-chang/artik053_userfs

artik053: cleanup download script

6 years agoMerge pull request #647 from sangwon03/gpio_sync
davidfather [Wed, 20 Sep 2017 01:20:25 +0000 (10:20 +0900)]
Merge pull request #647 from sangwon03/gpio_sync

fix the issue that didn't receive event from gpio pin.

6 years agoMerge pull request #645 from JeongJunSik/prinf_remove
sangwon03 [Wed, 20 Sep 2017 00:50:55 +0000 (09:50 +0900)]
Merge pull request #645 from JeongJunSik/prinf_remove

Remove unnecessary log output

6 years agofix the issue that didn't receive event from gpio pin.
sangwon03.an@samsung.com [Tue, 19 Sep 2017 23:58:24 +0000 (16:58 -0700)]
fix the issue that didn't receive event from gpio pin.
gpio.c is synchronized with ARTIK053 repo.

6 years agoFix setjmp/longjmp implementation for thumb mode (i.e.: tiva, which is Cortex M3...
Tomasz Wozniak [Tue, 19 Sep 2017 13:21:48 +0000 (15:21 +0200)]
Fix setjmp/longjmp implementation for thumb mode (i.e.: tiva, which is Cortex M3, based on armv7-m architecture).
Compiles for armv7-a/r in both arm and thumb modes and for armv7-m.

6 years agounneed debuging message
JunSik Jeong [Tue, 19 Sep 2017 11:47:52 +0000 (20:47 +0900)]
unneed debuging message

6 years agos5j: fix invalid calculations on sector offsets
Heesub Shin [Thu, 22 Jun 2017 07:23:16 +0000 (16:23 +0900)]
s5j: fix invalid calculations on sector offsets

The size of sector is stored in '.blocksize' field of data structure for
mtd device instance and we should use it when calculating sector
offsets. On the other hand, '.erasesize' holds the size of erase unit
that underlying flash device supports and might be quite different with
sector size. This commit fixes code lines that are confusing them.
Fortunately, those buggy lines have not yet caused any harm, because
both numbers are the same, but this will break the system soon when
start to use different units on them. So let's fix them all.

Change-Id: I2a115fb7dd648257941577f85b9461be81abebde
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
6 years agoartik053/Kconfig: remove unnecessary if statement
Heesub Shin [Fri, 16 Jun 2017 05:33:38 +0000 (14:33 +0900)]
artik053/Kconfig: remove unnecessary if statement

'artik053/Kconfig' is included only when ARCH_BOARD_ARTIK053 is set.
Thus, checking it seems redundant.

Change-Id: I90b5b8a57d041abf2b25d4e2deadbe245548febb
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
6 years agoexamples/wave_gen: fix config name
Junhwan Park [Wed, 14 Jun 2017 06:06:30 +0000 (15:06 +0900)]
examples/wave_gen: fix config name

I modified it to use the config that I set in Kconfig correctly.

Change-Id: Ia975ad7d133ae3fc8b957e2d121fc1090c92af99
Signed-off-by: Junhwan Park <junhwan.park@samsung.com>
Conflicts:
apps/examples/wave_gen/Makefile

6 years agoapps: fix trivial typo
Junhwan Park [Wed, 14 Jun 2017 06:01:11 +0000 (15:01 +0900)]
apps: fix trivial typo

Fix trivial typo

Change-Id: Id89bc4b81f8a22e1406dfce3700dcbeeea70b22e
Signed-off-by: Junhwan Park <junhwan.park@samsung.com>
Conflicts:
apps/include/nxplayer.h

6 years agos5j: fix trivial typo
Junhwan Park [Wed, 14 Jun 2017 05:03:19 +0000 (14:03 +0900)]
s5j: fix trivial typo

Fix trivial typo

Change-Id: I0d1488053975d71591713a730575e107c8187d09
Signed-off-by: Junhwan Park <junhwan.park@samsung.com>
6 years agoexamples/sensorbd_demo: fix define naming
Junhwan Park [Fri, 19 May 2017 05:16:55 +0000 (14:16 +0900)]
examples/sensorbd_demo: fix define naming

I want to delete "S5J" prefix.

Change-Id: I6c9a6fb13833272a20fcb1be7595b40c5a1b466c
Signed-off-by: Junhwan Park <junhwan.park@samsung.com>
6 years agoexamples/smart_test: fix append mode when disk has been fulled
Junhwan Park [Wed, 24 May 2017 06:18:53 +0000 (15:18 +0900)]
examples/smart_test: fix append mode when disk has been fulled

This patch includes fix about append mode. In append mode, calculate the
number of lines and perform the append test.

Change-Id: I5b2bdefd3750c4628309ca09fd67a2fc3ae8e4a4
Signed-off-by: Junhwan Park <junhwan.park@samsung.com>
6 years agoexamples/sysio_test: add dependencies on driver subsystems
Junhwan Park [Wed, 17 May 2017 05:01:10 +0000 (14:01 +0900)]
examples/sysio_test: add dependencies on driver subsystems

Depending on the dependencies of the sysio driver, this example might
cause a build error. This patch adds the dependencies of the driver.

Change-Id: I7dfb0d284af1adbe4a82dd2ae47d4196cfe5185a
Signed-off-by: Junhwan Park <junhwan.park@samsung.com>
6 years agoexamples/sensorbd_demo: add SAMSUNG License
Junhwan Park [Thu, 1 Jun 2017 00:52:42 +0000 (09:52 +0900)]
examples/sensorbd_demo: add SAMSUNG License

This patch includes adding missing Samsung License.

Change-Id: Ic3ee7ae33eddd43fb4a74b9fd64ceb37b61af08c
Signed-off-by: Junhwan Park <junhwan.park@samsung.com>
6 years agoartik053: fix trivial typo in Make.def
Bongryul Lee [Thu, 1 Jun 2017 11:57:20 +0000 (20:57 +0900)]
artik053: fix trivial typo in Make.def

s/LDFLAAGS/LDFLAGS/

This enables the linker option '--gc-sections' that was not actually
applied so far, reducing binary footprints a little.

Change-Id: I227df3213598cb986068a317d6c5e741ae365850
Signed-off-by: Bongryul Lee <bongryul.lee@samsung.com>
6 years agoartik053: cleanup download script
sunghan [Tue, 19 Sep 2017 09:37:26 +0000 (18:37 +0900)]
artik053: cleanup download script

1. Split romfs stubs from main
2. Support low-case character for ALL option
3. Remove temporarily file, romfs_flashing.cfg when execution is failed

6 years agoMerge pull request #642 from jarvisjang/resolve_crash
Taejun-Kwon [Tue, 19 Sep 2017 08:37:37 +0000 (17:37 +0900)]
Merge pull request #642 from jarvisjang/resolve_crash

Resolve crash issue on audio_utc

6 years agoResolve crash issue on audio_utc
Jarvis Jang [Tue, 19 Sep 2017 08:28:30 +0000 (17:28 +0900)]
Resolve crash issue on audio_utc

6 years agoMerge pull request #641 from sunghan-chang/artik053_userfs
Taejun-Kwon [Tue, 19 Sep 2017 08:21:48 +0000 (17:21 +0900)]
Merge pull request #641 from sunghan-chang/artik053_userfs

artik053: add flashing script to erase user fs

6 years agoartik053: add flashing script to erase user fs
sunghan [Tue, 19 Sep 2017 08:16:42 +0000 (17:16 +0900)]
artik053: add flashing script to erase user fs

Sometimes, we should erase user fs at first flashing on new board.
So, ERASE_USERFS option is added.

6 years agoMerge pull request #590 from HONGCHAEHEE/download-file
sunghan-chang [Tue, 19 Sep 2017 07:14:15 +0000 (16:14 +0900)]
Merge pull request #590 from HONGCHAEHEE/download-file

Update download file and README for ROMFS (related commit :  fa2cd4c )

6 years agoUpdate artik053 download file and README for ROMFS (related commit: fa2cd4c)
chaehee.hong [Thu, 14 Sep 2017 07:49:14 +0000 (16:49 +0900)]
Update artik053 download file and README for ROMFS (related commit: fa2cd4c)

6 years agoMerge pull request #637 from sunghan-chang/appupdate
Taejun-Kwon [Tue, 19 Sep 2017 06:43:52 +0000 (15:43 +0900)]
Merge pull request #637 from sunghan-chang/appupdate

apps/tools: fix update_config.sh for issue on update entry point

6 years agoapps/tools: fix update_config.sh for issue on update entry point
sunghan [Tue, 19 Sep 2017 06:30:29 +0000 (15:30 +0900)]
apps/tools: fix update_config.sh for issue on update entry point

When user entry point is changed through make applist/appupdate,
CONFIG_ENTRY_XX is not updated, only CONFIG_USER_ENTRYPOINT is.
So, it looks not changed on menuconfig.
Let's change it to manaul when entry is changed.

6 years agoMerge pull request #636 from hs0225/modify_iotjs
sunghan-chang [Tue, 19 Sep 2017 05:25:16 +0000 (14:25 +0900)]
Merge pull request #636 from hs0225/modify_iotjs

Fix iot.js build config

6 years agoFix iot.js build config
Hosung Kim [Tue, 19 Sep 2017 05:10:12 +0000 (14:10 +0900)]
Fix iot.js build config

to remove build warnning, fix build config

6 years agoMerge pull request #595 from pillip8282/websocket_fix
davidfather [Tue, 19 Sep 2017 03:51:33 +0000 (12:51 +0900)]
Merge pull request #595 from pillip8282/websocket_fix

examples:websocket fix strncpy bug

6 years agoMerge pull request #634 from junmin-kim/framework_iotbus
sangwon03 [Tue, 19 Sep 2017 03:18:01 +0000 (12:18 +0900)]
Merge pull request #634 from junmin-kim/framework_iotbus

Add missed logic of iotbus

6 years agoMerge pull request #635 from junmin-kim/audio_debug
Taejun-Kwon [Tue, 19 Sep 2017 03:14:44 +0000 (12:14 +0900)]
Merge pull request #635 from junmin-kim/audio_debug

Remove duplicated debug macro

6 years agoRemove duplicated debug macro
junmin kim [Tue, 19 Sep 2017 02:59:37 +0000 (19:59 -0700)]
Remove duplicated debug macro

6 years agoAdd missed logic of iotbus
junmin kim [Tue, 19 Sep 2017 02:40:47 +0000 (19:40 -0700)]
Add missed logic of iotbus

pwm_get_duty_cyle : return pecentage value
gpio_set_direction : ioctl when IOTBUS_GPIO_DIRECTION_NONE

6 years agoMerge pull request #622 from dr-venkman/fix_dm_utc
pillip8282 [Tue, 19 Sep 2017 02:33:55 +0000 (11:33 +0900)]
Merge pull request #622 from dr-venkman/fix_dm_utc

Fix unit testcases for DM

6 years agoMerge pull request #633 from davidfather/wifi_manager
pillip8282 [Tue, 19 Sep 2017 02:25:23 +0000 (11:25 +0900)]
Merge pull request #633 from davidfather/wifi_manager

Fix missing null termination in wifi_manager & wifi_test

6 years agoMerge pull request #632 from daeyeon/fix.net-connect
sangwon03 [Mon, 18 Sep 2017 23:12:40 +0000 (08:12 +0900)]
Merge pull request #632 from daeyeon/fix.net-connect

fix iotjs net connection test

6 years agoFix missing null termination in wifi_manager
Seongil Hahm [Mon, 18 Sep 2017 16:10:33 +0000 (09:10 -0700)]
Fix missing null termination in wifi_manager

1. Use strlen(str) + 1 instead of strlen(str) when calculating the length of ssid or passphrase
2. Add checkpoint logic to judge that ssid length is greater than 31 and passphrase length is greather than 63.

6 years agoFix missing null termination at strncat() in wifi_test.c
Seongil Hahm [Sat, 16 Sep 2017 05:42:20 +0000 (22:42 -0700)]
Fix missing null termination at strncat() in wifi_test.c

1. Use snprintf instead of sprintf with maximum length - 1
2. Tackle the overflow when string concatenating

6 years agofix iotjs net connection test
Daeyeon Jeong [Mon, 18 Sep 2017 14:36:35 +0000 (23:36 +0900)]
fix iotjs net connection test

This gets the net_connection test fixed through moving the time when closing server.  The test purpose is to test 'net.connect'.

6 years agoMerge pull request #631 from jeongarmy/stream_doxygen
sunghan-chang [Mon, 18 Sep 2017 14:26:45 +0000 (23:26 +0900)]
Merge pull request #631 from jeongarmy/stream_doxygen

Add doxygen for stream API in include/tinyara/streams.h

6 years agoMerge pull request #603 from shivgarg/internal_syncup
Taejun-Kwon [Mon, 18 Sep 2017 14:21:09 +0000 (23:21 +0900)]
Merge pull request #603 from shivgarg/internal_syncup

Audio framework

6 years agoAdd doxygen for stream API in include/tinyara/streams.h
Ahreum Jeong [Mon, 18 Sep 2017 13:53:48 +0000 (22:53 +0900)]
Add doxygen for stream API in include/tinyara/streams.h

Additionally, there are testcases for these functions in fs tc except internal functions