Commit Graph

432 Commits

Author SHA1 Message Date
Gregory Nutt
064d4024e4 apps/examples/popen: Add a test of popen/pclose. apps/system/popen: Fix some errors found using the new popen/pclose test. 2018-08-17 14:25:33 -06:00
Gregory Nutt
f198e32c17 apps/system/popen: Add an implementation of the standard popen() and pclose() OS interfaces. These are implementated as applications vs. part of the OS because they depend on NSH. Untested on initial commit. 2018-08-17 10:45:06 -06:00
Gregory Nutt
a89f0e3a07 Add missing function names in function headers. 2018-08-13 15:52:59 -06:00
Gregory Nutt
a57610c2c4 Remove trailing spaces at the end of lines. 2018-08-13 07:47:26 -06:00
mst
62134a0419 apps/system/cle: Usage improvements including command line history (taken from readline) and support for addition control characters. 2018-08-05 16:05:59 -06:00
Gregory Nutt
a1e5bf6bf3 apps/system/i2c: Adapt to rename I2C_M_RESTART->i2C_M_START. I2C_M_NOSTOP should be in flags of first message in every write-read and write-write mesage sequence. 2018-08-03 08:47:10 -06:00
Masayuki Ishikawa
d9cb9175ac Merged in masayuki2009/nuttx.apps/refactor_nxplayer (pull request #149)
nxplayer: Refactor nxplayer.c

Apply netlib_parsehttpurl() and remove unnecessary usleep().

Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>

Approved-by: GregoryN <gnutt@nuttx.org>
2018-07-31 12:16:31 +00:00
Masayuki Ishikawa
67e6e330a8 Merged in masayuki2009/nuttx.apps/taskset_command (pull request #140)
apps/system/taskset: Add taskset command for SMP systems

This command can be used to retrieve or set a process's CPU affinity.
For example,

  nsh> taskset -p 4
  pid 4's current affinity mask: 2

  nsh> taskset -p 3 4
  pid 4's current affinity mask: 3

  nsh> taskset -p 1 busyloop &

Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2018-06-08 13:24:03 +00:00
Gregory Nutt
634dd7709b apps/, Various Makefiles: Fix mixed references to nuttx/lib. These need to be changed to nuttx/staging. 2018-05-30 11:08:13 -06:00
Gregory Nutt
06dae98ce2 Fix some trivial typos. Add a comment to a C file. 2018-05-28 08:01:18 -06:00
Gregory Nutt
63db94efbc Update README 2018-05-28 07:46:24 -06:00
Gregory Nutt
430a088784 Update README 2018-05-27 17:10:57 -06:00
Gregory Nutt
dd59d4f946 Update a readme and some comments. 2018-05-27 15:13:19 -06:00
Gregory Nutt
b84f5841d5 apps/system/zmodem: Call tcflush() before closing the serial port. This is necessary because that close operation may hang if hardware flow control is enabled. Consider this scenario: After the host sz runs on the host, it exits and leaves CTS high. The target rz completes, and tries to close the serial port. But if there is buffered Tx data, then the close will hang when it tries to drain the buffered Tx data since there is no where it can go. tcflush() discards the buffered data and permits the close to continue. There additional logic in nuttx/drivers/serial needed tow work with this. 2018-05-27 11:44:43 -06:00
Gregory Nutt
22e5af9320 apps/system/zmodem: Allow stack size and priority to be configured. 2018-05-27 10:22:06 -06:00
Gregory Nutt
9ac16049b8 apps/system/zmodem: Fix an incompatibility with the way that CRCs are calculated. 2018-05-27 08:43:22 -06:00
Gregory Nutt
d413571621 apps/system/zmodem: Fix Makefile.host. It was broken when zmodem.h was moved to apps/include/system. 2018-05-26 18:53:49 -06:00
Gregory Nutt
89c630fe55 Update a README file. 2018-05-26 17:29:53 -06:00
Gregory Nutt
1e94c78e2e apps/system/zmodem: Add an option to enable hardware flow control via termios. 2018-05-26 15:59:58 -06:00
Gregory Nutt
803323c213 apps/system/zmodem/README.txt: Break a long lone and remove some duplicated text. 2018-05-25 18:49:36 -06:00
Michał Łyszczek
b6410136b7 apps/system/embedlog: Support for embedlog data loggin package from https://embedlog.kurwinet.pl/ 2018-05-06 15:34:45 -06:00
Gregory Nutt
29c576c820 libc/lzf: Define structures to represent LZF headers. 2018-03-18 12:32:15 -06:00
Gregory Nutt
d35a3e847e apps/system/lzf:
- The maximum block size is now configuration setting in order to give finer control over memory usage.
  - The compression/decompression buffers have been moved out the stack and are now global variables.  This eliminates the need to set large stack sizes to use this utility.
  - Added semaphore protection of all global variables for the case of the FLAT or PROTECTED builds.  Unlike the KERNEL build, the same global variables will be used by each instance of the LZF utility.  If you want thread safety, then you must either (a) serialize all access to the global variables, or (b) pack the global variables into a structure and allocate that structure on each execution of lzf_main().
2018-03-17 15:35:19 -06:00
Boris Astardzhiev
a7979e4c3b apps/system/lzf: Refactor so that the user is no longer required to generate the LZF header 2018-03-16 09:55:27 -06:00
Gregory Nutt
14e9a0255b apps/system/lzf: Don't build the LZF tool if the LZF library is not enabled. 2018-03-16 09:33:36 -06:00
Gregory Nutt
d1a3a58fbe apps/system/lzf: Move the LZF tool from apps/examples/ to apps/system. 2018-03-16 09:10:01 -06:00
Gregory Nutt
139b008fc9 apps/system and wireless: Applications should use the standard clock() interface, not the internal NuttX clock_systimer() interface. 2018-03-14 07:59:44 -06:00
Juha Niskanen
b36ac8df0a apps/system/stackmonitor: Fix comparison between pointer and zero character constant. 2018-03-13 07:46:52 -06:00
Gregory Nutt
84ceda663d system/stackmonitor/: Minor design improvement. 2018-01-20 13:37:38 -06:00
Gregory Nutt
8830a841b4 system/stackmonitor: Re-design the stack monitor so that it does not make forbidden calls directly into the OS, breaking the portable POSIX OS interface. It now properly uses the PROCFS file system to glean information about stack usage. 2018-01-20 13:05:13 -06:00
Fabio D'Urso
da4472a978 apps/system/usbmsc: Added Kconfig options to configure write protection for each LUN 2018-01-14 17:11:32 -06:00
Anthony Merlino
5600b287a5 Merged in antmerlino/apps/setlogmask (pull request #127)
Adds 'setlogmask' application that allows you to set the syslog priority via a simple command

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2017-12-19 17:15:45 +00:00
Masayuki Ishikawa
021839224f nxplayer: Add support for http streaming in nxplayer
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2017-12-19 15:08:29 +09:00
Masayuki Ishikawa
77ac05c383 nxplayer: Fix warnings by nxstyle
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2017-12-19 15:08:26 +09:00
Gregory Nutt
fd63b607b5 apps/system/free: Removed because it violates the portable POSIX OS interface. 2017-11-13 07:59:38 -06:00
Gregory Nutt
402306635a system/composite: Eliminate warning about dumptrace being defined but not used. 2017-11-12 10:11:30 -06:00
DL
42ec1aad65 Fixed i2ctool write operation in no restart mode (flag -n).
It seems that I2C driver has changed a bit since i2ctool was written,
so now i2ctool sends repeated start even if `no restart` flag (-n)
was passed to it.
2017-11-01 06:11:53 +03:00
Gregory Nutt
a27294d788 apps/system/ping6: Use inet_ntop() to improve the appearance of the ping6 IPv6 address output. 2017-10-24 15:38:37 -06:00
Gregory Nutt
bf9bc28fcf system/ping and ping6: Fix a typo and also a place where = used when == intended. 2017-10-24 12:27:27 -06:00
Gregory Nutt
749ea9e881 This commit removes the ping6 command from NSH and replaces it with the apps/system/ping6 built-in command. The NSH ping6 command had to be removed because it violated the portable POSIX OS interface. The apps/system/ping6 command uses the sem-standard IPPROTO_ICMP6 socket interface.
Squashed commit of the following:

    apps/system ping and ping6:  Fix a backward test.
    apps/system/ping6: ping6 logic now builds without error.
    apps/system/ping and ping6:  Minor clean-up to configuration settings.
    apps/system/ping6:  Minor clean-up to be able to configure CONFIG_SYSTEM_PING6
    apps/nshlib:  Remove support for ping6 from NSH.
    apps/system/ping6:  Add IPPROTO_ICMPv6 ping6.  Initial commit is simply a clone of the IPPROTO_ICMP ping logic.
    Rename CONFIG_NET_ICMPv6_PING to CONFIG_NET_ICMPv6_SOCKET.
2017-10-24 11:19:41 -06:00
Gregory Nutt
bccf0092a4 nshlib: Remove some dangling IPv4 ping logic. system/ping: Add DNS hostname support. 2017-10-23 09:59:03 -06:00
Gregory Nutt
c1ec7db8a9 This commite eliminates the ping command from NSH and replaces it with a ping 'built-in' at apps/system/ping. The original NSH version of ping violated the portable POSIX interface and, hence, had to be removed. The new system/ping command uses the new IPPROTO_ICMP AF_INET datagram sockets to implement ping.
Squashed commit of the following:

    apps/system/ping:  Fix some timing issues.
    apps/system/ping:  A few timing related corrections.
    apps/nshlib:  Remove support for the NSH 'ping' command.  The implementation of that command violated the portable POSIX interface and has been replaced with a ping 'built-in' command at apps/system/ping.
    apps/system/ping:  Add larger payload.  Verify content of echoed payload.
    apps/system/ping:  Various fixes for a clean compile
    system/ping: Add new build structure for system ping command.
2017-10-23 08:50:01 -06:00
Alan Carvalho de Assis
cbce879d6a Add -n samples to lm75 app and replace Centigrade with Celsius 2017-10-15 07:26:55 -06:00
Alan Carvalho de Assis
f5d7df6658 system/lm75: Fix a naming error in a dependency. 2017-10-14 15:24:38 -06:00
Gregory Nutt
7a8561728c The last change added .PRECIOUS: $(BIN) to everyway Makefile in hopes the libapps.a will not be deleted on Control-C (unproven so far). However, $(BIN) may contain back slashes in some build platforms and that causes problems for make: It can't handle the backslashes in the .PRECIOUS dependency list. $(BIN) replaced with ../../libapp.a, where the number of ../ depends on the depth of the Makefile in the apps/ source tree. 2017-08-13 11:03:17 -06:00
Gregory Nutt
a66da34f18 All Makefiles: Add .PRECIOUS: apps/libapps.a to every Makefile. Hopefully this will end awkward problems when you Control-C out of a build and libapps.a is deleted. 2017-08-13 09:35:14 -06:00
Gregory Nutt
19acc8ad4e apps/system/composite: Remove references to USBMSC. There still dependencies on CDC/ACM in the serial USB trace output. That really should be removed. 2017-07-21 08:35:01 -06:00
Gregory Nutt
1882fe3200 Merge remote-tracking branch 'origin/master' into composite 2017-07-16 08:54:23 -06:00
Frank Benkert
7b9ec306db Squashed commit of the following:
commit 99b41a291b
Author: Gregory Nutt <gnutt@nuttx.org>
Date:   Sat Jul 15 11:04:13 2017 -0600

    apps/system/composite:  Remove configuration settings that are no longer used.

commit 668179495f
Author: Gregory Nutt <gnutt@nuttx.org>
Date:   Sat Jul 15 09:26:49 2017 -0600

    apps/system/composite:  Restore USB tracing; remove unused field in a structure.

commit 23f1dd5e48
Author: Gregory Nutt <gnutt@nuttx.org>
Date:   Sat Jul 15 08:58:14 2017 -0600

    system/composite:  Remove CDC/ACM and MSC configuration logic.  This belongs in the OS composite initialization.  Add and argument so that you can select the USB composite configuration to be attached.

commit f8711488f1
Merge: 00896040 234afcd8
Author: Gregory Nutt <gnutt@nuttx.org>
Date:   Fri Jul 14 16:25:48 2017 -0600

    Merge remote-tracking branch 'origin/master' into composite

commit 0089604044
Merge: f913ea01 ae1eeada
Author: Gregory Nutt <gnutt@nuttx.org>
Date:   Thu Jul 13 13:59:25 2017 -0600

    Merge remote-tracking branch 'origin/master' into composite

commit f913ea0179
Merge: bcbdd798 915b42f8
Author: Gregory Nutt <gnutt@nuttx.org>
Date:   Mon Jul 10 11:08:46 2017 -0600

    Merge remote-tracking branch 'origin/master' into composite

commit bcbdd798c6
Merge: 2219c02d 1657d1ff
Author: Gregory Nutt <gnutt@nuttx.org>
Date:   Fri Jul 7 20:28:30 2017 -0600

    Merge remote-tracking branch 'origin/master' into composite

commit 2219c02ddb
Merge: fe1e52a8 d81d9c41
Author: Gregory Nutt <gnutt@nuttx.org>
Date:   Wed Jul 5 11:12:09 2017 -0600

    Merge remote-tracking branch 'origin/master' into composite

commit fe1e52a83a
Merge: 94f82d47 75f29d9d
Author: Gregory Nutt <gnutt@nuttx.org>
Date:   Fri Jun 30 16:14:36 2017 -0600

    Merge remote-tracking branch 'origin/master' into composite

commit 94f82d473d
Merge: a11806ee ffe0640d
Author: Gregory Nutt <gnutt@nuttx.org>
Date:   Thu Jun 29 10:19:55 2017 -0600

    Merge remote-tracking branch 'origin/master' into composite

commit a11806ee5f
Merge: f29dc985 5f5f8878
Author: Gregory Nutt <gnutt@nuttx.org>
Date:   Mon Jun 26 11:57:00 2017 -0600

    Merge remote-tracking branch 'origin/master' into composite

commit f29dc98512
Merge: 70faf0d1 d8759ffe
Author: Gregory Nutt <gnutt@nuttx.org>
Date:   Mon Jun 19 17:26:00 2017 -0600

    Merge remote-tracking branch 'origin/master' into composite

commit 70faf0d170
Merge: 7d3b1581 a7770590
Author: Gregory Nutt <gnutt@nuttx.org>
Date:   Fri Jun 16 17:33:46 2017 -0600

    Merge remote-tracking branch 'origin/master' into composite

commit 7d3b158142
Merge: b2c392d4 c8ae5f16
Author: Gregory Nutt <gnutt@nuttx.org>
Date:   Fri Jun 16 17:30:39 2017 -0600

    Merge remote-tracking branch 'origin/master' into composite

commit b2c392d4fe
Merge: 95eb2034 f3dc5bea
Author: Gregory Nutt <gnutt@nuttx.org>
Date:   Mon Jun 5 17:41:02 2017 -0600

    Merge remote-tracking branch 'origin/master' into composite

commit 95eb20343b
Author: Gregory Nutt <gnutt@nuttx.org>
Date:   Fri Jun 2 07:09:44 2017 -0600

    apps/system/composite: Add a configuration option to the boardctl() calls to support multiple composite device configurations dynamically.

commit 7652b67882
Author: Frank Benkert <Frank.Benkert@avat.de>
Date:   Thu Jun 1 15:19:40 2017 -0600

    Update to apps/system/compsite assocated with big changes to the composite device logic
2017-07-16 08:45:26 -06:00
Gregory Nutt
c7f8540169 apps/system/composite: Fix configuration selecting.. was setting the port number, not the configure ID. Also add a configuration option to select the default configuration. 2017-07-15 12:13:17 -06:00