rtos/tinyara.git
7 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>
7 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>
7 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

7 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

7 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>
7 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>
7 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>
7 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

7 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>
7 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>
7 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>
7 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

7 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>
7 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>
7 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>
7 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>
7 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

7 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>
7 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>
7 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

7 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>
7 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>
7 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

7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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

7 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

7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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

7 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

7 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

7 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.

7 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 )

7 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)

7 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

7 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.

7 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

7 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

7 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

7 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

7 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

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

7 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

7 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

7 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

7 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

7 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.

7 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

7 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'.

7 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

7 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

7 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

7 years agoChanged #ifdef CONFIG_AUDIO to CONFIG_AUDIO_ALC5658 in ALC5658 driver files
Shivam Garg [Mon, 18 Sep 2017 13:24:40 +0000 (22:24 +0900)]
Changed #ifdef CONFIG_AUDIO to CONFIG_AUDIO_ALC5658 in ALC5658 driver files

7 years agoFixed Make.defs in s5j and added necessary config flags to remove build error due...
Shivam Garg [Mon, 18 Sep 2017 04:57:44 +0000 (13:57 +0900)]
Fixed Make.defs in s5j and added necessary config flags to remove build error due to watchdog

7 years agoadding nuttx license to alc5658 driver files
Shivam Garg [Mon, 18 Sep 2017 04:18:32 +0000 (13:18 +0900)]
adding nuttx license to alc5658 driver files

7 years agoReduced audio_utc stack size
Shivam Garg [Mon, 18 Sep 2017 02:19:54 +0000 (11:19 +0900)]
Reduced audio_utc stack size

7 years agoApplying coding rule script to all files to remove coding rule violations, changing...
Shivam Garg [Sat, 16 Sep 2017 18:13:20 +0000 (03:13 +0900)]
Applying coding rule script to all files to remove coding rule violations, changing file permissions for some files from 755->644

7 years agoClean header file's definition flow
Shivam Garg [Sat, 16 Sep 2017 16:50:44 +0000 (01:50 +0900)]
Clean header file's definition flow

7 years agoClean-duplicated-code-in-alc5658_configure
Shivam Garg [Sat, 16 Sep 2017 16:42:41 +0000 (01:42 +0900)]
Clean-duplicated-code-in-alc5658_configure

7 years agoModify Text error in license
TaeJun Kwon [Sat, 16 Sep 2017 10:20:36 +0000 (19:20 +0900)]
Modify Text error in license

7 years agoFix utc to prevent potential leak
TaeJun Kwon [Fri, 15 Sep 2017 16:03:16 +0000 (01:03 +0900)]
Fix utc to prevent potential leak

7 years agoFix to prevent abort during mq_close
TaeJun Kwon [Fri, 15 Sep 2017 15:57:36 +0000 (00:57 +0900)]
Fix to prevent abort during mq_close

7 years agoremoving extra calls to readi and writei unit tc's
Shivam Garg [Fri, 15 Sep 2017 15:24:13 +0000 (00:24 +0900)]
removing extra calls to readi and writei unit tc's

7 years agoChanges to include mic gain and other properties in the alc5658.c driver
bsvt [Thu, 14 Sep 2017 16:16:12 +0000 (09:16 -0700)]
Changes to include mic gain and other properties in the alc5658.c driver

7 years agoFix switch case with missing break
bsvt [Thu, 14 Sep 2017 11:23:46 +0000 (04:23 -0700)]
Fix switch case with missing break

7 years agoClean code & add tc for pcm_is_ready & pcm_prepare
TaeJun Kwon [Wed, 13 Sep 2017 09:46:35 +0000 (18:46 +0900)]
Clean code & add tc for pcm_is_ready & pcm_prepare

7 years agoResolve issue that stuck on pcm_readi
Jarvis Jang [Fri, 15 Sep 2017 10:46:32 +0000 (19:46 +0900)]
Resolve issue that stuck on pcm_readi

7 years agoAlc5658 code cleanup
bsvt [Fri, 15 Sep 2017 07:36:55 +0000 (00:36 -0700)]
Alc5658 code cleanup

7 years agounlink recorded file end of test to improve readi test's performance
TaeJun Kwon [Fri, 15 Sep 2017 07:42:24 +0000 (16:42 +0900)]
unlink recorded file end of test to improve readi test's performance

7 years agoFixing audio debug print macros.
Shivam Garg [Fri, 15 Sep 2017 07:13:27 +0000 (16:13 +0900)]
Fixing audio debug print macros.

The macros gave a warning(error when built with -Wunused-error flags) when built with audio debug flags turned off.

7 years ago WATCHDOG is selected when watchdog in chip drivers is selected to be built
Shivam Garg [Fri, 15 Sep 2017 07:04:45 +0000 (16:04 +0900)]
 WATCHDOG is selected when watchdog in chip drivers is selected to be built

7 years agoremoving coding rule errors
Shivam Garg [Fri, 15 Sep 2017 02:22:19 +0000 (11:22 +0900)]
removing coding rule errors

7 years agos5j/i2s: Add device driver for I2S
Ivan [Mon, 24 Apr 2017 18:44:42 +0000 (03:44 +0900)]
s5j/i2s: Add device driver for I2S

I2S supports only 48KHz Stereo playback.
I2S supports both read and write channels.

Change-Id: Iba94830758e5b90a56fe33e33333f3709d6e2823
Signed-off-by: Ivan <ivan.galkin@samsung.com>
Signed-off-by: Bongryul Lee <bongryul.lee@samsung.com>
Signed-off-by: Junhwan Park <junhwan.park@samsung.com>
7 years agos5j/i2c: tidy up a bit
Junhwan Park [Wed, 31 May 2017 02:20:51 +0000 (11:20 +0900)]
s5j/i2c: tidy up a bit

This commit removes code lines that are not in use, reducing binary
footprints as following:

             text   data    bss    dec    hex filename
    Before   3639    432     16   4087    ff7 s5j_i2c.o
    After    2819    272     16   3107    c23 s5j_i2c.o

Change-Id: Id193c425327dc80e4724773b9e7d51780ca81bc6
Signed-off-by: Junhwan Park <junhwan.park@samsung.com>
7 years agos5j/timerisr: add missing initialization on RTC
Heesub Shin [Thu, 1 Jun 2017 02:18:44 +0000 (11:18 +0900)]
s5j/timerisr: add missing initialization on RTC

The first stage bootloader is initializing RTCCON[7:4] to 0x4 before it
jumps to subsequent stages. This is no harm if we clear it while
initializing the RTC, but it is not cleared when CONFIG_RTC is not set
and causing OS timetick to be generated at 2048Hz. To avoid this issue,
we need to clear it always before enabling the timer isr.

Change-Id: Id27a079e35f5d0a93d6a6428117daa3d45b71a61
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
7 years agoAdded watchdog code
Junhwan Park [Fri, 16 Jun 2017 02:55:20 +0000 (11:55 +0900)]
Added watchdog code

7 years agoAdded reworked CMU driver for audio framework
Heesub Shin [Thu, 13 Jul 2017 06:54:48 +0000 (15:54 +0900)]
Added reworked CMU driver for audio framework

7 years agoFix open api list, remove pcm_start pcm_stop and add utc pcm_format_to_bits
TaeJun Kwon [Thu, 14 Sep 2017 08:29:01 +0000 (17:29 +0900)]
Fix open api list, remove pcm_start pcm_stop and add utc pcm_format_to_bits

7 years agoAdding i2c and clock changes for audio framework
Shivam Garg [Thu, 14 Sep 2017 08:02:20 +0000 (17:02 +0900)]
Adding  i2c and clock changes for audio framework

7 years agoFix sample rate as 16k
bsvt [Thu, 14 Sep 2017 03:00:27 +0000 (20:00 -0700)]
Fix sample rate as 16k

7 years agoAudio: Fix issue of ac_type always coming as AUDIO_TYPE_OUTPUT
Kishore SN [Thu, 14 Sep 2017 04:31:45 +0000 (10:01 +0530)]
Audio: Fix issue of ac_type always coming as AUDIO_TYPE_OUTPUT

7 years agoRemove incomplete worker thread in alc5658
bsvt [Wed, 13 Sep 2017 10:56:50 +0000 (03:56 -0700)]
Remove incomplete worker thread in alc5658

7 years agoSplit alc5658 scripts and declarations file
bsvt [Wed, 13 Sep 2017 09:11:33 +0000 (02:11 -0700)]
Split alc5658 scripts and declarations file

7 years agoTinyalsa: Fix apb and wav header setting
Kishore SN [Wed, 13 Sep 2017 09:17:23 +0000 (14:47 +0530)]
Tinyalsa: Fix apb and wav header setting

7 years agoModify Comment & define values in header file of audio
TaeJun Kwon [Wed, 13 Sep 2017 07:18:40 +0000 (16:18 +0900)]
Modify Comment & define values in header file of audio

7 years agoFix tinyalsa issues during testing
Kishore SN [Wed, 13 Sep 2017 06:01:34 +0000 (11:31 +0530)]
Fix tinyalsa issues during testing
Set apb flags, nbytes, curbyte before enque

7 years agoAdd configuration values for AUDIO_INPUT & OUTPUT in pcm_set_config
TaeJun Kwon [Tue, 12 Sep 2017 05:57:30 +0000 (14:57 +0900)]
Add configuration values for AUDIO_INPUT & OUTPUT in pcm_set_config

7 years agoModify audio utc of negative case
jaesick.shin [Tue, 12 Sep 2017 06:42:43 +0000 (15:42 +0900)]
Modify audio utc of negative case
change file premission of utc_aduio_main

7 years agoFixed negative test case failure cases in tinyalsa
Kishore SN [Tue, 5 Sep 2017 13:43:42 +0000 (19:13 +0530)]
Fixed negative test case failure cases in tinyalsa

7 years agoWAV header construction in tinyalsa
Shivam Garg [Fri, 8 Sep 2017 11:48:34 +0000 (20:48 +0900)]
WAV header construction in tinyalsa

In pcm_open , while opening pcm device with PCM_IN flag, the wav header is written to the first buffer which is enqueued for getting captured data.

Moved definitions little->big endian and vice versa converting functions to pcm.h so that there is no need for reimplementing those in tinyalsa.c

7 years agoadd test case for audio framework
Jaesik [Fri, 8 Sep 2017 02:21:03 +0000 (11:21 +0900)]
add test case for audio framework

add test case for audio framework