Commit Graph

2368 Commits

Author SHA1 Message Date
Gregory Nutt
4eda22b4db Revert "This commit adds nsh_consolechild(). I noticed that there are several examples that call nsh_consolemain.c to create to create a new NSH session. That will not always work because nsh_consolemain() performs the one-time initialization needed by the NSH library: Mounting, reading, and running the start-up script, configuring USB tracing. Some of those actions will cause failures if attempted twice."
This reverts commit 4d364d836a.
2016-08-25 14:19:36 -06:00
Gregory Nutt
4d364d836a This commit adds nsh_consolechild(). I noticed that there are several examples that call nsh_consolemain.c to create to create a new NSH session. That will not always work because nsh_consolemain() performs the one-time initialization needed by the NSH library: Mounting, reading, and running the start-up script, configuring USB tracing. Some of those actions will cause failures if attempted twice.
Here are some offenders: examples/cc3000/shell.c, examples/nsh/nsh_main.c, examples/nxterm/nxterm_main.c, and examples/pty_test/pty_test.c.  It is possible that for some of those, that represents the first call to nsh_consolemain().  But probably not.

To give other initialization options, I added nsh_consolechild() which is identical to nsh_consolemain() other than it omits all of the one-time initialization.  Of course, you would not get the result that you wanted if nsh_consolechild() were called without nsh_consolemain().
2016-08-25 14:14:23 -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
e39cfc97c7 Add logic to support an NSH-specific system command 2016-08-25 11:34:36 -06:00
Gregory Nutt
1ea82fe8fa Merged in raiden00/apps (pull request #58)
apps/nshlib/nsh_syscmds.c: missing semicolon
2016-08-25 07:16:25 -06:00
Mateusz Szafoni
6ff8074532 apps/nshlib/nsh_syscmds.c: missing semicolon 2016-08-25 14:26:33 +02:00
Mateusz Szafoni
486967227e Merged nuttx/apps into master 2016-08-25 14:04:38 +02:00
Aleksandr Vyhovanec
3cfd1b5ec7 apps/gpsutils: Fix an error min minmea 2016-08-24 09:55:23 -06:00
Gregory Nutt
09bcce52fa Fix errors in file headers 2016-08-23 14:55:19 -06:00
Gregory Nutt
e3b31f6388 Upate ChangeLog 2016-08-22 10:35:44 -06:00
Gregory Nutt
c9378ef87e Fix hex representation of IP address. Also noted by Michał Łyszczek 2016-08-19 06:35:29 -06:00
Gregory Nutt
b9d56991f3 Update some comments. Remove trailing whitespace noted by Michał Łyszczek 2016-08-19 06:25:42 -06:00
Gregory Nutt
2ff22da39d apps/examples/oneshot: A thought about how we might improve accuracy of long delays. 2016-08-15 12:54:05 -06:00
Gregory Nutt
0a6dd4a24e apps/examples/oneshot: If the requested delay is > max_delay, then break the delay up into several pieces. 2016-08-15 11:44:52 -06:00
Gregory Nutt
85083236d7 Update ChangeLog 2016-08-13 12:09:26 -06:00
Gregory Nutt
35c32d4ba0 apps/system/tee: Port tee command from NetBSD 2016-08-12 17:29:25 -06:00
Gregory Nutt
d8c7a8fff8 apps/examples: Add Oneshot timer example 2016-08-12 14:20:52 -06:00
Gregory Nutt
add52b0503 Cosmetic. Add a blank line. 2016-08-11 18:21:57 -06:00
Gregory Nutt
6e80d39c91 apps/interpreters/minibasic: Add an option to enable/disable the test script 2016-08-11 12:52:11 -06:00
Gregory Nutt
37b6303751 apps/interpreters/minibasic: Use strtod() instead of fscanf() 2016-08-11 12:25:43 -06:00
Gregory Nutt
c17c7f8afe Add some comments 2016-08-11 12:02:09 -06:00
Gregory Nutt
1c613745ed apps/interpreters/minibasic: Move 1K I/O buffer off the stack and into a static. 2016-08-11 11:50:25 -06:00
Gregory Nutt
fb3fa286d5 Mini Basic: some cosmetic changes 2016-08-11 10:34:32 -06:00
Gregory Nutt
47daad13fa Fix to get Mini-Basic to build 2016-08-11 10:01:42 -06:00
Gregory Nutt
a1c0580034 apps/interpreters/minibasic: Add a port of Mini Basic, version 1.0, written by Malcom McLean and released under the Creative Commons Attirbution license. 2016-08-11 09:40:45 -06:00
Alan Carvalho de Assis
93f7809258 Add RFID_READUID sample application 2016-08-06 09:02:57 -06:00
Gregory Nutt
823b8c3981 FIFO_SIZE vs PIPE_SIZE 2016-08-04 16:25:47 -06:00
Gregory Nutt
fff8a91e52 Oops, wrong kind of comments 2016-08-04 13:32:19 -06:00
Gregory Nutt
6624917285 Add some dependencies on new settings in apps/examples/pipe 2016-08-04 13:23:31 -06:00
Gregory Nutt
e4914622b3 NSH: cmd_mkfifo depend son CONFIG_DEV_PIPE_SIZE > 0 2016-08-04 12:57:02 -06:00
Gregory Nutt
aaedd7c0ab Got delimiter backward in recent commit 2016-08-04 11:52:16 -06:00
Gregory Nutt
73b0ce0272 apps/exmples/gpio: Should not claim an error if we are only asked to read an output pin 2016-08-03 13:08:58 -06:00
Gregory Nutt
02b864d3ab Update ChangeLog 2016-08-02 14:36:58 -06:00
Gregory Nutt
11012a6c3e Add DIRLINK and DIRUNLOBK tool definitions to Make.defs 2016-08-02 08:38:20 -06:00
Sebastien Lorquet
a58e09a8ca Add definition for APPNAME in apps/canutils/canlib 2016-08-01 17:32:16 -06:00
Gregory Nutt
fce37aeafa apps/examples/gpio: Bug fixes from testing 2016-08-01 15:27:48 -06:00
Gregory Nutt
acbbd690f9 apps/examples/gpio: Add a simple test of the GPIO driver 2016-08-01 13:53:20 -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
28c397b3ce Add the dirlinks target to some Makefiles. This plugs some wholes open by last chicken-and-egg build fix 2016-07-28 12:00:03 -06:00
Gregory Nutt
256a836a23 apps/canutils/libuavcan: Under certain circumstances, DELIM make not be defined in Makefile 2016-07-28 09:56:37 -06:00
Gregory Nutt
d43a20daca Fix a few typos in the changelog 2016-07-25 12:11:07 -06:00
Gregory Nutt
46af5cdec8 Fix date of 7.17 release. 2016-07-25 07:29:31 -06:00
Gregory Nutt
4df5041ca2 Prep for 7.17 release 2016-07-25 07:23:56 -06:00
Gregory Nutt
eede559506 Update ChangeLog 2016-07-24 14:02:39 -06:00
Gregory Nutt
4b7fd0ab77 Merged in paulpatience/nuttx-apps/libcanard (pull request #55)
apps/canutils/libcanard: Update version
2016-07-24 07:33:06 -06:00
Paul A. Patience
a23d76477e apps/canutils/libcanard: Update version 2016-07-23 16:45:22 -04:00
Gregory Nutt
f87893b514 Move include/nuttx/regex.h to include/nuttx/lib/regex.h 2016-07-21 13:42:06 -06:00