Commit Graph

663 Commits

Author SHA1 Message Date
zhuyanlin
3de5798ff4 apps/system/hexed/src/bfile.c: Fix memory leak 2018-11-07 11:32:07 -06:00
Gregory Nutt
a579bab48a apps/system/progmem: Remove this utility. It makes illegal direct calls into the OS. 2018-10-19 11:44:41 -06:00
Gregory Nutt
c5edf40542 apps/examples/udpblaster: Add option to use poll() on output (only). Also picks up some fixes to various typographical errors. 2018-09-14 06:59:23 -06:00
Gregory Nutt
f3413df508 Update ChangeLog in preparation for 7.26 release. 2018-09-06 15:08:12 -06:00
Gregory Nutt
fff0ffa185 Update .gitignore files. 2018-09-04 13:20:52 -06:00
Gregory Nutt
305278d1ae Application.mk: Fix some issues when building directories such as fsutils/mkfatfs that have not mainobj. In this case, the MAINSRC is undefined and it would generate a bad linker command line. 2018-09-04 13:00:03 -06:00
Gregory Nutt
66948fe525 Appliation.mk: Even on Cygwin, GNU make insists that targets use Unix style paths. System/progmem: Rename the install application to progmem. This generates a target install: which collides with the install:: target in Application.mk. 2018-09-04 09:38:26 -06:00
anchao
b5cfd93444 apps/: Modification to build system: Unified application compilation rules 2018-09-03 09:29:56 -06:00
Gregory Nutt
e678211436 system/i2c/i2c_main.c: fix a backward comparison. Noted by Jakob Haufe. 2018-08-30 10:33:32 -06:00
akob Haufe
d7d541e2d9 apps/system/i2c: Allow registers besides 0x00 in the dev command. 2018-08-30 06:35:18 -06:00
Gregory Nutt
b33eaf881d apps/system/cu: Fix undefined SIGKILL if CONFIG_SIG_DEFUALT is not defined. 2018-08-29 05:39:01 -06:00
Gregory Nutt
a1b9fc8bd8 apps/system/cu: SIGKILL is more appropriate that SIGINT in this circustance. 2018-08-28 12:09:25 -06:00
Gregory Nutt
bb4c5c49ef Replace usage of SIGKILL with SIGINIT 2018-08-28 12:02:26 -06:00
ZhongAn
392943a0a0 apps/system/nxrecorder: Add nxrecorder application 2018-08-27 08:20:11 -06:00
ZhongAn
09a3bc44b4 system/nxplayer/nxplayer.c: Add playraw command 2018-08-27 08:04:48 -06:00
Xiang Xiao
7eacf7daa2 Squashed commit of the following:
apps/system/nxplayer:  Release buffer before session and release semaphore in nxplayer_setvolume

  system/nxplayer/nxplayer.c:  Remove & for apb->samp reference. It is already a pointer.
2018-08-27 07:52:04 -06:00
Xiang Xiao
5304ec5eec Replace all ASSERT calls to DEBUGASSERT 2018-08-24 06:19:35 -06:00
anchao
220653f21c Squashed commit of the following:
Author: anchao <anchao@pinecone.net>

     apps/, most main() function: Correct CONFIG_BUILD_LOADABLE usage
     Loadable apps/: Correct loadable symbol table generate
     apps/system/ubloxmodem:  Fix build break
     apps/examples/ostest: start restart/waitpid/user test from main loop
     apps/nshlib:  Expand reboot and poweroff commands to include a second, optional mode argument

    Author: Gregory Nutt <gnutt@nuttx.org>

     An attempt to fix build issues.  Does not work.
     apps/examples/ostest:  Fix some inappropriate renaming of static functions introduced with recent patches.
     apps/builtin/exec_builtin.c:  Fix a error introduced by recent comments.  Found in build testing.

    Author: anchao <anchao@pinecone.net>

     apps/builtin/exec_builtin.c:  Try posix_spawn if builtin apps do not have have an entry point.
     apps/Application.mk: introduce MODULE config to simplify tristate(m)
     apps/nsh:  Change the nuttx shell module type to tristate
     apps:  Add loadable application support
     script/mksymtab:  Generate symbol table name by default
     apps/builtin:  Allow loadable applications can register with apps/builtin.
2018-08-23 11:06:15 -06:00
ligd
feb1229dc3 apps/system/cu/cu_main.c: (1) Protect from possible re-definition of signal values, (2) Fix CU ctrl-C hand when remote core hang. 2018-08-23 07:05:09 -06:00
Xiang Xiao
aef0978a12 apps/system/ping and ping6: Change dependency in ping and ping6 Kconfig. These may be implemented in users sockets and, hence, may need to be avaiable even if ICMP and ICMPv6 sockets are not support. 2018-08-23 06:53:11 -06:00
Xiang Xiao
604885cbef apps/system/ping and ping6: Send ID and seqno in network byte order. 2018-08-23 06:47:33 -06:00
Xiang Xiao
32182421a9 apps/system/system/system.c: Add 'const' to make function signature compatible with OpenGroup.org 2018-08-23 06:38:45 -06:00
Xiang Xiao
ddd86d31ca apps/system/zmodem:
- fix error "sz_main.o: No such file or directory"
  - support -p <path> for rz to change the folder for the recevied file
  - switch debug output from printf to syslog
  - send the next packet for ZME_ACK in ZMS_SENDING to avoid rz on the host side stuck
  - make send work reliable even without hardware flow control
2018-08-23 06:33:39 -06:00
Gregory Nutt
2f982e9c77 Revert "Squashed commit of the following:"
This reverts commit 25b92edd9f.
2018-08-22 12:06:32 -06:00
anchao
25b92edd9f Squashed commit of the following:
apps/builtin/exec_builtin.c:  Try posix_spawn if builtin apps do not have have an entry point.
    apps/Application.mk: introduce MODULE config to simplify tristate(m)
    apps/nsh:  Change the nuttx shell module type to tristate
    apps:  Add loadable application support
    script/mksymtab:  Generate symbol table name by default
    apps/builtin:  Allow loadable applications can register with apps/builtin.
2018-08-22 09:30:38 -06:00
anchao
9fe6d2e1c3 Remove illegal calls into OS to initialize BINFMT support. This must be moved to the board initialization logic within the OS. 2018-08-22 07:53:35 -06:00
Gregory Nutt
3c4ca6a35e apps/system/nsh: Completes implementation of system() and popen() commands for the KERNEL build mode. 2018-08-18 11:39:26 -06:00
Gregory Nutt
32f50985a6 Fix references to examples/nsh left in previous commit. 2018-08-18 09:33:25 -06:00
Gregory Nutt
8de513e36b apps/system/nsh: Move apps/examples/nsh to apps/system/nsh. It has become so entrenched that it is hardly an example these days. May as well formalized it as a system task. 2018-08-18 09:04:43 -06:00
Gregory Nutt
e3e911555a apps/system/system and popen: Adapt so that these can be used in the KERNEL build mode. In this case, simply replace task_spawn() with posix_spawn(). This depends on the existence of some environment where /bin/sh exists and can be used to execute one NSH command. For the case of system(), this change was more complete because it previously used task_create(). Now it uses either task_spawn() or posix_spawn(), depending upon the configuration. 2018-08-18 07:55:23 -06:00
Gregory Nutt
8455ee34b6 apps/system/popen/Kconfig: popen is not available in the KERNEL build. 2018-08-17 15:58:29 -06:00
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
Gregory Nutt
99b41a291b apps/system/composite: Remove configuration settings that are no longer used. 2017-07-15 11:04:13 -06:00
Gregory Nutt
668179495f apps/system/composite: Restore USB tracing; remove unused field in a structure. 2017-07-15 09:26:49 -06:00
Gregory Nutt
23f1dd5e48 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. 2017-07-15 08:58:14 -06:00
Gregory Nutt
bcbdd798c6 Merge remote-tracking branch 'origin/master' into composite 2017-07-07 20:28:30 -06:00
Gregory Nutt
1829e252f2 system/dhcpc: Fix warning about renew_main.o appear twice in rule. 2017-07-05 12:45:03 -06:00
Gregory Nutt
fe1e52a83a Merge remote-tracking branch 'origin/master' into composite 2017-06-30 16:14:36 -06:00
Gregory Nutt
c3bc27ded2 system/telnet: Fix a copy-paste error in conditional compilation. 2017-06-29 11:21:45 -06:00
Gregory Nutt
94f82d473d Merge remote-tracking branch 'origin/master' into composite 2017-06-29 10:19:55 -06:00
Gregory Nutt
98204bad94 system/telnet: POLL must not be disabled in configuration. Telnet client port argument is no optional. 2017-06-27 07:46:16 -06:00
Gregory Nutt
666771f18c system/telnet: Add Telnet Chat deamon and and client from libtelent. 2017-06-26 16:39:39 -06:00
Gregory Nutt
a11806ee5f Merge remote-tracking branch 'origin/master' into composite 2017-06-26 11:57:00 -06:00
Gregory Nutt
54d55cb307 system/dhcpc: The DHCPC renew command did not build correctly due to naming problems. Noted by Masayuki Ishikawa, 2017-06-23 18:13:51 -06:00
Gregory Nutt
f29dc98512 Merge remote-tracking branch 'origin/master' into composite 2017-06-19 17:26:00 -06:00
Oleg Evseev
512089abdc correct copy-paste typo in comments in composite_main.c 2017-06-18 19:30:01 +00:00
Gregory Nutt
95eb20343b apps/system/composite: Add a configuration option to the boardctl() calls to support multiple composite device configurations dynamically. 2017-06-02 07:09:44 -06:00
Frank Benkert
7652b67882 Update to apps/system/compsite assocated with big changes to the composite device logic 2017-06-01 15:19:40 -06:00
Gregory Nutt
d9805d38e2 apps/system/ramtest: Make stacksize and priority conigurable. 2017-05-21 12:12:45 -06:00
Gregory Nutt
ccb6282f5b apps/system/dhcpc: Add missing argument of fprintf. 2017-05-21 11:32:07 -06:00
Gregory Nutt
c1a64d0cad apps/system/ntpc: Add a command to start or stop the NTPC daemon. 2017-05-21 11:26:16 -06:00
Gregory Nutt
da9f0421c0 apps/system/dhcpc: Currently only works with IPv4 and Ethernet MAC. 2017-05-21 10:53:45 -06:00
Gregory Nutt
2984fa3911 apps/system/dhcpc: Add a command to renew or establish a lease on an IPv4 address. 2017-05-21 10:51:26 -06:00
Juha Niskanen
0bcd50d7a1 apps/: Make more globals static to avoid name clashes 2017-05-19 07:13:12 -06:00
Gregory Nutt
13911d9b17 Fix lots of occurrences of 'the the', 'the there', 'the these', 'the then', 'the they. 2017-05-11 13:40:03 -06:00
Gregory Nutt
f473842f96 Fix some calls to task_create(): argv[0] is the first parameter, not the name of the task. 2017-05-09 10:59:24 -06:00
Gregory Nutt
a7f9c09a80 nxplayer: Needs to include strings.h for strcasecp() 2017-02-27 09:25:35 -06:00
Aleksandr Vyhovanec
73a3e4b916 apps/system/zmodem/host/nuttx/compiler.h synchronized with nuttx/nuttx/include/nuttx/compiler.h 2017-01-09 14:23:08 +03:00
Gregory Nutt
741db21f70 Remvoe std_readline(). This called up_getc() and up_putc() directly, violating the POSIX OS interface. 2016-12-13 18:04:43 -06:00
Gregory Nutt
bfec325ade Add support for new scheduler instrumentation. 2016-12-07 09:08:55 -06:00
Gregory Nutt
7288a8d7c0 apps/system/sched_lock: Add support for spinlock notes 2016-12-01 12:39:51 -06:00
Gregory Nutt
8228ab13fc apps/system/sched_note: Extend to include additions to instumentation for SMP. 2016-11-27 17:13:26 -06:00
Sebastien Lorquet
8590fe314d apps/system/system: Use Application.mk in Makefile. 2016-08-26 07:09:04 -06:00
Gregory Nutt
775d25c560 Update some comments in a Kconfig 2016-08-25 13:28:19 -06:00
Gregory Nutt
b1d44a81b4 apps/system/system: A much larger stack is needed to run reliably on the simulation. 2016-08-25 13:22:06 -06:00
Gregory Nutt
743234ea40 apps/examples/system: Add a simple test of the system command. Fix the first bug discovered by the test. 2016-08-25 12:38:13 -06:00
Gregory Nutt
012979f530 apps/system/system: Add a generic system command. Current implentation cannot use /bin/sh and spawns the custom NSH system command directly. 2016-08-25 11:34:36 -06:00
Gregory Nutt
35c32d4ba0 apps/system/tee: Port tee command from NetBSD 2016-08-12 17:29:25 -06:00
Gregory Nutt
ac018597e4 Fix a syntax error in a Kconfig file. Update comments in another. 2016-07-29 13:12:28 -06:00
Gregory Nutt
3e83aa7388 Add apps/include to include path in top-level Make.defs file. Remove multiple definitions of INCDIR opt. 2016-07-11 10:45:17 -06:00
Sebastien Lorquet
2cbad44f1d This is the Pokemon patch to change all includes fronm <apps/bla/bla.h> to "bla/bla.h" 2016-07-11 10:11:18 -06:00
Gregory Nutt
cd741c82cf apps/include: Move all header files associated with modules in apps/system to apps/include/system 2016-07-01 06:48:22 -06:00
Gregory Nutt
7304927448 Move the TZ/Olson zoneinfo data set from apps/system/zoneinfo to libc/zoneinfo 2016-06-30 15:47:41 -06:00
Gregory Nutt
8a03660c72 Remove apps/system/usbmonitor. It has been moved to nuttx/drivers/usbmonitor. 2016-06-30 13:13:05 -06:00
Gregory Nutt
3dc17f54ff apps/system/hex2bin: Move the portable library portion of hex2bin to nuttx/libc/hex2bin where it can be shared with the OS internals. 2016-06-27 11:20:38 -06:00
Gregory Nutt
bb06f7368f Without lowsyslog() *llinfo() is not useful. Eliminate and replace with *info(). 2016-06-20 11:48:15 -06:00
Gregory Nutt
5098539063 Add _ to front of remaining debug macros 2016-06-16 12:12:34 -06:00
Gregory Nutt
cc03ecefc8 Rename err() to _err() 2016-06-16 11:44:22 -06:00
Gregory Nutt
65899c99e6 apps/nshlib: Change some *err() message to *info() messages if what was a *dbg() message does not indicate and error condition. 2016-06-14 14:18:07 -06:00
Gregory Nutt
a7b1aae68c Fix some warnings 2016-06-13 12:06:44 -06:00
Gregory Nutt
586b0aa7e0 Change names of *dbg() * *err() 2016-06-11 15:51:27 -06:00
Gregory Nutt
f4bae25e32 Rename *lldbg to *llerr 2016-06-11 14:55:13 -06:00
Gregory Nutt
468bdcf8e6 Rename CONFIG_DEBUG to CONFIG_DEBUG_FEATURES 2016-06-11 14:13:39 -06:00
Gregory Nutt
344c92e2a4 Replace all occurrences of vdbg with vinfo 2016-06-11 11:55:38 -06:00
Gregory Nutt
406ac81fb3 Update ChangeLog 2016-06-09 13:26:22 -06:00
Sebastien Lorquet
7ca5478da3 Rearrange to eliminate Kmenu files 2016-06-09 08:59:16 -06:00
Gregory Nutt
b5891c8b1a Eliminate some warnings 2016-06-08 09:44:16 -06:00
Sebastien Lorquet
880661a284 merge upstream 2016-06-06 11:25:29 +02:00
Gregory Nutt
19be2cafea Fix name collision in flash_eraseall restoration. 2016-06-05 08:41:02 -06:00
Gregory Nutt
d06b721ba2 Fix new dependencies for flash_eraseall 2016-06-03 09:11:22 -06:00
Gregory Nutt
3734b4c966 Restore apps/system/flash_eraseall/ using new IOCTL wrapper 2016-06-03 08:15:37 -06:00
Sebastien Lorquet
4044ed8882 merge with upstream 2016-06-03 11:28:36 +02:00
Gregory Nutt
12c0b3ca30 apps/system/flash_erraseall: Removed because it violates the OS/application interface. 2016-06-02 10:21:48 -06:00
Sebastien Lorquet
a9aa753fa4 Recursive Kconfig autogeneration 2016-06-02 16:34:00 +02:00
Sebastien Lorquet
b354a41fd4 Use directory.mk for recursive dir makefiles 2016-06-02 16:25:51 +02:00
Sebastien Lorquet
bfff5e7179 Add empty preconfig rules to 'leaf' makefiles 2016-06-02 16:24:30 +02:00
Sebastien Lorquet
9a406515d7 make the full tree use wildcards make.defs 2016-06-02 16:21:21 +02:00
Sebastien Lorquet
bfff7dc4ca add kmenu files 2016-06-02 15:23:50 +02:00
Paul A. Patience
8bdf3e1f25 zmodem: Add missing slash 2016-05-30 10:14:23 -04:00
Gregory Nutt
62fec5d57d apps/system/sched_note: Move the schduler note monitor from example/ to system/ 2016-05-18 19:22:47 -06:00
Gregory Nutt
eedac48c7b ASCII: Improve some naming 2016-04-14 16:21:02 -06:00
Gregory Nutt
fd5d0e19dc Remove apps/system/sdcard 2016-03-30 18:19:27 -06:00
Gregory Nutt
0943afd2f9 Kconfig files: All USB-related options depend on CONFIG_LIB_BOARDCTRL and now set CONFIG_BOARDCTL_USBDEVCTL=y 2016-03-26 07:13:57 -06:00
Gregory Nutt
e01e664ccb Fix a few issues related to new USB device boardctl() commands 2016-03-25 14:24:01 -06:00
Gregory Nutt
a31300cb05 Replace calls to OS internal cdcacm_*, usbmsc_*, and composite_* with boardctl() calls 2016-03-25 13:26:00 -06:00
Gregory Nutt
6125e9376e Standardize some naming in code section comments 2016-02-21 18:15:00 -06:00
Gregory Nutt
3f95e05bc2 NetLib: Add utility functions to support access to the ARP table 2016-02-08 11:44:59 -06:00
Gregory Nutt
c8e21ddcd6 Costmetic changes to comments and spacing. 2016-02-06 11:34:39 -06:00
Gregory Nutt
83dc6a9b79 I2C tool: Verify that the I2C bus driver exists when process the -b option 2016-02-05 10:49:27 -06:00
Gregory Nutt
032e73f1eb Eliminate some warnings 2016-02-02 14:48:17 -06:00
Gregory Nutt
bb9b4c8063 Low level drive access functions should not generate output; it interferes with higher level formatting 2016-02-02 14:42:16 -06:00
Gregory Nutt
7c4f9eb8e9 I2CTOOL: Now uses the I2C driver instead of direct calls into the OS 2016-02-02 10:27:50 -06:00
Gregory Nutt
5ab3722d5d I2C: Remove the setfrequency method from the interface 2016-02-01 16:32:48 -06:00
Gregory Nutt
4e4dbda41e I2C: Add frequency to i2c_msg_s structure 2016-02-01 14:14:48 -06:00
Gregory Nutt
ae0a55de53 I2C: Remove setaddress method 2016-02-01 12:16:56 -06:00
Gregory Nutt
2709652753 The I2C_TRANSFER method is no longer optional 2016-01-31 14:15:07 -06:00
Gregory Nutt
3ef9b14738 Move apps/examples/ubloxmodem to apps/system/ubloxmodem 2016-01-31 09:35:42 -06:00
Gregory Nutt
f0eb017434 Rename i2c_dev_s to i2c_master_s. 2016-01-30 08:37:28 -06:00
Gregory Nutt
c4395122f9 Move include/nuttx/i2c.h to include/nuttx/i2c/i2c_master.h 2016-01-30 08:00:59 -06:00
Gregory Nutt
a1cbc92b4f Be courageous: system/ramtron completely removed. It is an inappropriate application 2016-01-27 10:38:14 -06:00
Gregory Nutt
f8f78a0661 system/ramtron is now EXPERIMENTAL because it violates the OS interface boundard by calling up_spiinitialize() directly. The function up_spiinitialize has been obsoleted and is no longer available 2016-01-27 09:25:01 -06:00
Gregory Nutt
a585c6958d Make files non-executable 2016-01-23 15:27:48 -06:00
Gregory Nutt
fff6765e63 Update some README files 2016-01-22 17:20:15 -06:00
Gregory Nutt
27a55f36d6 Move system/inifile to fsutils/inifile 2016-01-20 17:10:55 -06:00
Gregory Nutt
d198f09ae3 Update examples/module and system/symtab to adjust to change in boardctl() and insmod() interfaces 2015-12-13 08:14:44 -06:00
Gregory Nutt
c0fa1d0970 hexed: Remove write-only variable 2015-11-22 13:33:43 -06:00
Gregory Nutt
37401b9889 hexed: Minor improvements 2015-11-22 12:56:19 -06:00
Gregory Nutt
b1ef1169b9 hexed: Fix some misc. issues 2015-11-22 12:00:20 -06:00
Gregory Nutt
3e10f0084b debugging system/hexed. Still does not work 2015-11-22 09:55:29 -06:00
Gregory Nutt
1a6100f1ec Remove some dangling whitespace 2015-11-21 18:33:26 -06:00
Gregory Nutt
2ff6775ac9 Add the hexed command line hex editor. See http://apps.venomdev.net/hexed/ 2015-11-21 18:32:04 -06:00
Nghia Ho
e6f6ae0803 handle when CONFIG_READLINE_MAX_EXTCMDS == 0 2015-11-03 09:49:43 -08:00
nghiaho12
94696500dd readline: Support the case where CONFIG_READLINE_MAX_BUILTINS==0 2015-11-03 07:44:50 -06:00
Gregory Nutt
273a083d20 Misc cosmetic changes from review of last merge 2015-11-02 09:11:06 -06:00
Gregory Nutt
646febbe86 Merged in nghiaho12/apps/nghia/improve_tab_completion (pull request #18)
better TAB completion
2015-11-02 06:53:30 -06:00
Nghia Ho
211f8bf76d bug fix:: Never reach readline_prompt() in nsh_initialize, moved it up to the top. Works now.
enhancement: TAB completion now works like Unix, it will autocomplete as much as possible for
multiple matches.
2015-11-01 01:41:01 -07:00
Gregory Nutt
aacfce081e Fix several cosmetic, C coding style issues 2015-10-03 11:03:42 -06:00
Gregory Nutt
9cb2849742 Standardize the width of all comment boxes in header files 2015-10-02 17:35:18 -06:00
Gregory Nutt
0629c5466e Standardize the width of all comment boxes in C file 2015-10-02 17:33:30 -06:00
Gregory Nutt
e3ad56043e Standardize naming used for public data and function groupings 2015-10-02 16:20:33 -06:00
Gregory Nutt
e9447c6058 Standardize nameing of the pre-processor definitiongs group header 2015-10-02 14:06:11 -06:00
Gregory Nutt
f52a228eef Eliminate a warning 2015-09-08 07:46:48 -06:00
Gregory Nutt
a5d4ed2fef Make sure that CONFIG_USBDEV_TRACE_INITIALIDSET has an assigned value to avoid warnings 2015-09-08 07:24:26 -06:00
Paul A. Patience
266cc147c4 Correct #if to #ifdef when the macro can be undefined 2015-09-01 13:44:06 -04:00
Gregory Nutt
73fc8b501e apps/system/symtab: Fix some typos; update .gitignore 2015-08-23 12:19:52 -06:00
Gregory Nutt
c7d8ef0f7c Move logic from nuttx/libc/symtab to apps/system/symtab 2015-08-23 11:59:07 -06:00
Gregory Nutt
f73ee9d352 apps/system/netdb would not build unless CONFIG_NETDB_HOSTFILE was defined because it needed gethostbyname. Noted by OrbitalFox 2015-08-21 09:29:38 -06:00
Gregory Nutt
74801cf38e apps/tools/mkkconfig.sh: The top-level Kconfig file is not auto-generated. The autogenerated Kconfig file will be constructed so that every second level directory that contains a Kconfig file will automatically be sourced 2015-08-11 17:49:10 -06:00
Gregory Nutt
7c13bac893 Replace some C99 style C with NuttX standard C89 style 2015-08-09 09:58:59 -06:00
Gregory Nutt
d63ce7f5bb readline(): A a configuration option to enable/disable command line history; Additional cosmetic changes from code review 2015-08-09 08:15:23 -06:00
Nghia Ho
c28f521a5e Added command history using up/down arrow keys. 2015-08-08 20:54:42 -07:00
Gregory Nutt
d699f5766d Fixes to system/readline/Kconfig 2015-07-30 12:58:03 -06:00
Gregory Nutt
5aa53ea2db Readline: Fix a configuration dependency. If we are not echoing to the console, then we cannot support tab completion 2015-07-30 12:53:04 -06:00
Gregory Nutt
169c3c77f1 Fix some bad conditional compilation and update some comments 2015-07-30 12:40:39 -06:00
Gregory Nutt
820c5c42dd readline/NSH: Extend the tab-completion logic so that NSH commands can also be completed by pressing the tab key 2015-07-30 12:11:58 -06:00
Gregory Nutt
f1b4b4d47a Fix a few mistakes I made on the last commit 2015-07-28 07:30:05 -06:00
Gregory Nutt
766886310d readline: Update initial readline commit -- make option configurable. Add an interface to de-couple the readline implementation from NSH. Misc. updates for coding style 2015-07-28 07:17:50 -06:00
Nghia Ho
bc1c74387f Unix style TAB compleition, for builtin apps only 2015-07-27 22:47:24 -07:00
Gregory Nutt
9669fff72b Fix system/netdb configuration dependency 2015-07-10 14:53:58 -06:00
Gregory Nutt
5abf88abed Print host aliases too; Change how host name is print; the match might be on a host name alias rather than the actual host name 2015-07-09 09:16:41 -06:00
Gregory Nutt
662620ae50 apps/system/netdb: Fix length argument used with inet_ntop 2015-07-08 16:46:35 -06:00
Gregory Nutt
b63f57b949 Fix an error in the system/netdb Makefile 2015-07-08 16:25:39 -06:00
Gregory Nutt
05f608322e Add a command to access the network database 2015-07-08 16:02:18 -06:00
Gregory Nutt
5ff7234707 Remove the system/sysinfo command 2015-07-04 15:17:36 -06:00
Gregory Nutt
5dc87f85eb Remove the apps/system/poweroff command; it is replaces with the NSH shutdown command 2015-07-04 08:23:02 -06:00
Gregory Nutt
19f40c4f0f Power off support now depends on CONFIG_ARCH_HAVE_POWEROFF 2015-07-03 06:53:26 -06:00
Gregory Nutt
e297b94eae Modify board_power_off() so that is is called only via boardctl() 2015-07-02 17:10:14 -06:00
Gregory Nutt
8f16c5d32d system/poweroff: Use prototype for board_power_off() from include/nuttx/board.h, not from non-supported power.h header file 2015-07-02 16:26:27 -06:00
Gregory Nutt
d5b6949c9f Fix references to the no-longer-existent misc/ directory in comments, README files, and documentation 2015-06-28 08:14:53 -06:00
Gregory Nutt
17a0e206c6 Update README 2015-04-19 07:27:30 -06:00
Gregory Nutt
9e2d46657d Update comments and README 2015-04-15 16:25:38 -06:00
Gregory Nutt
84fcc41a63 Update README 2015-04-15 11:31:13 -06:00
Gregory Nutt
10fc3ed1ac configs/sim/src: Add logic to test localtime and TZ database. See apps/system/README.txt for info 2015-04-15 11:00:40 -06:00
Gregory Nutt
4ad24f8903 Update README files 2015-04-15 09:31:44 -06:00
Gregory Nutt
8bdfcf3ada apps/system/zoneinfo: Remove tzmount command. It violates some OS boundaries 2015-04-15 09:22:03 -06:00
Gregory Nutt
728407b1d3 apps/system/zoneinfo: Add logic to build a ROMFS file system containing the timezone data 2015-04-15 08:39:44 -06:00
Gregory Nutt
a665361197 Prep for 7.9 release 2015-04-14 14:17:55 -06:00
Gregory Nutt
755c8f8a7f apps/system/zoneinfo: All logic to build timezone info. Does not do much else yet 2015-04-14 11:21:20 -06:00
Gregory Nutt
50deb7ad20 Remove executable flag from more .c and .h files 2015-04-09 08:20:57 -06:00
Gregory Nutt
6e462908ba apps/system: Clean up Kconfig menuing 2015-04-07 13:23:39 -06:00
Gregory Nutt
0e060f5d2c Add Olimexino-STM32 board support from David Sidrane 2015-03-20 18:00:10 -06:00
Gregory Nutt
caf4a7ffc6 Fix two uses of DEBUG_COLORATION vs STACK_COLORATION (from David Sidrane). Also some corrected comments 2015-03-05 06:41:14 -06:00
Gregory Nutt
d01dc4fb4c Fix some warnings in audio code causing by fixing the prototypes of mq_send() and mq_receive() 2015-02-09 12:50:04 -06:00
Gregory Nutt
13854c8b5a Removed forced enable of CONFIG_READLINE_ECHO in apps/system/readline/readline.h 2015-02-01 13:15:31 -06:00
Gregory Nutt
80c1704d85 Oops missed one reference to DEBUG_STACK 2015-01-24 07:17:56 -06:00
Gregory Nutt
632480ce24 apps/system/lm75: Missing semicolon when floating point enabled 2015-01-06 13:21:56 -06:00
Gregory Nutt
40d2de6b83 Add a tiny system application to read the current temperature 2015-01-06 12:31:33 -06:00
Gregory Nutt
88c3d8bdda apps/system/composite: Fix some corrupted conditional compilation that crept in. Looks like some automatated update gone awry. 2014-12-28 19:02:44 -06:00
Gregory Nutt
354524c8c2 apps/system/usbmsc: Fix some corrupted conditional compilation that crept in. Looks like some automatated update gone awry. 2014-12-28 17:09:35 -06:00
Gregory Nutt
4cc9c1901b Fix some misplaced conditional compilation. From David Sidrane 2014-12-26 08:20:13 -06:00
Gregory Nutt
ad1f59f497 apps/system/cu: Add a some configurable defaults (only to reduce my keystrokes in repetitive testing) 2014-12-13 13:11:06 -06:00
Gregory Nutt
40e2a076fe Cosmetic fix to a comment 2014-12-13 12:00:19 -06:00
Gregory Nutt
dabe412e70 Add a minimalist implemention of the 'cu' terminal program (part of Taylor UUCP for ages). Using it, you can simply open a serial port and interact with it. Using '~.' you can leave the terminal program and drop back to nsh.
This might  come in handy for other people that have e.g. GSM modems, GPS receivers or other devices with text based serial communications attached to their Nuttx systems.
2014-12-13 10:36:37 -06:00
Gregory Nutt
bffa1da92a . 2014-12-13 10:34:11 -06:00
Gregory Nutt
8a26497e88 apps/inifile: Filename parameter should be const 2014-12-06 09:14:55 -06:00
Gregory Nutt
b2c867f214 More ccpcheck-related fixes 2014-11-25 17:28:22 -06:00
Gregory Nutt
ecc8c70f77 Fixes for more cppcheck complaints. 2014-11-25 15:41:34 -06:00
Gregory Nutt
04bf18295f NxPlayer Kconfig should depend on AUDIO support 2014-11-17 16:51:16 -06:00
Gregory Nutt
3ec21f41c1 Remove use of CONFIG_MASK_TASK_ARGS from the I2C tool 2014-11-13 06:27:47 -06:00
Gregory Nutt
61751ad39f Fix compile problems introduced when the syslog() prototype changed; Also update Makefile for kernel build 2014-10-22 12:05:39 -06:00
Gregory Nutt
2719815dd9 Update everything under apps/ to use the corrected syslog interfaces 2014-10-08 11:34:22 -06:00