Commit Graph

472 Commits

Author SHA1 Message Date
Gregory Nutt
411a047f9c apps/system/critmon: Make output more compact and usable. 2018-11-25 07:42:47 -06:00
Gregory Nutt
92d8243153 apps/system/critmon: Fix some bugs found in initial testing. Stack size must be configurable to avoid issues with the simulator. 2018-11-24 17:56:23 -06:00
Gregory Nutt
943abb19d2 apps/system/critmon: Add a daemon on monitor critical sections. 2018-11-24 13:35:53 -06:00
Xiang Xiao
3c1c533cb5 apps/system/ping6: Remove NET_USRSOCK from Kconfig dependence list 2018-11-09 11:54:24 -06:00
ligd
f954b15cac pps/system/ping and pings and apps/netutils/ping: Extract icmp ping and icmpv6 ping6 logic from system/ to C-callable library in netutils/. 2018-11-08 09:32:05 -06:00
Xiang Xiao
98a429596f system/ping/ping.c and system/ping6/ping6.c: Set optind to zero in the error case
system/ping/ping.c and system/ping6/ping6.c:  Move all ping preparation work into icmp_ping
system/ping/ping.c and system/ping6/ping6.c:  Support -W <timeout> and -s <size> option
system/ping/ping.c and system/ping6/ping6.c:  Decouple the output from ping logic
2018-11-08 09:05:54 -06:00
anchao
42ce384259 apps/system/vi/vi.c: Do not print error if the file does not exist. 2018-11-07 11:43:04 -06:00
Xiang Xiao
4804d74c61 apps/system/system.c: Fix warning when passing argument 6 of 'task_spawn' from incompatible pointer type [-Wincompatible-pointer-types] 2018-11-07 11:37:00 -06:00
From: dongjiuzhu
2d4df65040 apps/system/i2c/i2c_get.c: Fix i2c_msg freq initialization problem. Typo prevent I2C frequency initialization in a struct i2c_msg. 2018-11-07 11:35:13 -06:00
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