Commit Graph

728 Commits

Author SHA1 Message Date
Erdem Meydanli
c222043ed1 system/termcurses: Add terminate operation into the termcurses_ops_s interface
The existing implementation of the termcurses_deinitterm calls
termcurses_setcolors with some hard-coded values, leading to different
terminal emulators' behavior. Instead, a reset call needs to be made to
the implementation to roll back changes.

A new operation (terminate) has been added to the termcurses_ops interface
to achieve this functionality.

The vt100's terminate implementation ensures that default foreground and
background colors are applied portably across different terminals emulators.
2021-08-28 21:12:40 +08:00
Juha Niskanen
b283289986 apps: fix miscellaneous typos
Signed-off-by: Juha Niskanen <juha.niskanen@haltian.com>
2021-08-26 11:39:28 -07:00
Xiang Xiao
d4d2f13f89 Rename CONFIG_LIB_BOARDCTL to CONFIG_BOARDCTL
since boardctl isn't a libc feature

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-08-06 11:04:35 +02:00
Xiang Xiao
967f526850 Rename LIB_ to LIBC_ for all libc Kconfig
follow other libc component naming convention

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-08-05 16:42:32 +02:00
Xiang Xiao
ad3f44bc77 Change match to fnmatch
follow the kernel side change

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-08-02 16:15:57 -03:00
chao.an
72abd300e6 system/dumpstack: add dump stack tool support
Signed-off-by: chao.an <anchao@xiaomi.com>
2021-08-01 23:56:36 -07:00
Nakamura, Yuuichi (ITDD)
f6dfd1dbb2 system/trace: Fix trace output for the correct display in Trace Compass 2021-08-01 08:43:24 -07:00
SPRESENSE
6367449751 system/embedlog: Fix sed command usage for macOS
The `sed` command only with `-i` option has not been supported
on macOS platform, and so it causes build error on macOS.
Fix Makefile so that it passes on all platforms without using
`-i` option.
2021-07-29 10:07:22 +02:00
Oleg
51c778bc5c system/cu: fix setting termios with parity
clear only the bits in c_cflag that will be set by cu
2021-07-19 03:06:57 -07:00
Xiang Xiao
ca70e585b1 system/nxlooper: Fix the following compiler warning
nxlooper.c: In function 'nxlooper_opendevice':
Error: nxlooper.c:126:15: error: unused variable 'x' [-Werror=unused-variable]
  126 |       uint8_t x;
      |               ^
Error: nxlooper.c:125:15: error: unused variable 'supported' [-Werror=unused-variable]
  125 |       uint8_t supported = true;
      |               ^~~~~~~~~
In file included from nxlooper.c:40:
nxlooper.c: In function 'nxlooper_loopthread':
Error: nxlooper.c:482:15: error: format '%d' expects argument of type 'int', but argument 3 has type 'ssize_t' {aka 'long int'} [-Werror=format=]
  482 |       audinfo("message received size %d id%d\n", size, msg.msg_id);
      |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ~~~~
      |                                                  |
      |                                                  ssize_t {aka long int}
nxlooper.c:482:39: note: format string is defined here
  482 |       audinfo("message received size %d id%d\n", size, msg.msg_id);
      |                                      ~^
      |                                       |
      |                                       int
      |                                      %ld
cc1: all warnings being treated as errors
make[3]: *** [/github/workspace/sources/apps/Application.mk:133: nxlooper.c.github.workspace.sources.apps.system.nxlooper.o] Error 1
nxlooper_main.c: In function 'nxlooper_cmd_loopback':
Error: nxlooper_main.c:209:9: error: implicit declaration of function 'nxlooper_loopraw'; did you mean 'nxlooper_stop'? [-Werror=implicit-function-declaration]
  209 |   ret = nxlooper_loopraw(plooper, channels, bpsamp,
      |         ^~~~~~~~~~~~~~~~
      |         nxlooper_stop

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-07-10 07:45:42 -03:00
ligd
192cbd8717 system/critmon: add thread run time support
Change-Id: I272a38f29a9aad3267052ce94643bbd73c8753a9
Signed-off-by: ligd <liguiding1@xiaomi.com>
2021-07-03 01:51:29 -05:00
chao.an
c89e9330cc system/ping[6]: correct the ping return value
MIRTOS-421

Change-Id: I68d8328ead736cd557d6142f611fae0540f74c1b
Signed-off-by: chao.an <anchao@xiaomi.com>
2021-06-22 10:28:21 -03:00
Peter Bee
8b66a6238a apps/system: fix command history behavior (2)
N/A
Fixing "last command" misbehavior when one command in history is a
substring of another.

Signed-off-by: Peter Bee <bijunda1@xiaomi.com>
Change-Id: I1ea205e3f2461b6c2377147cb9fc878ba5b19b4f
2021-06-22 10:27:43 -03:00
Xiang Xiao
01f8bef2ba system/critmon: print info before sleep
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-06-20 07:05:44 -07:00
ligd
696c6f412e system/critmon: add critmon program for critmon once
Change-Id: Ifc1f384ad5321d23030aaa5e424627f5d8ae0484
Signed-off-by: ligd <liguiding1@xiaomi.com>
2021-06-20 07:05:44 -07:00
YAMAMOTO Takashi
d46b477e2c argtable3: Workaroud a clang warning
cf. 7704006f3c
2021-06-17 07:21:52 +02:00
Alin Jerpelea
01532a45d6 system: fix relative path CI error
error: Path relative to repository other than nuttx must begin with the root directory
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-06-16 09:03:06 -05:00
Xiang Xiao
99e1674912 Call posix_spawn with filename as the first argv entry
pair with the kernel side change to follow the standard defintion:
https://pubs.opengroup.org/onlinepubs/009695399/functions/posix_spawn.html

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-06-14 07:12:54 -06:00
Alin Jerpelea
aa581fe5ce system: nxstyle fixes
fixes for errors reported by the nxstyle tool

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-06-11 02:42:05 -05:00
Alin Jerpelea
84e0ca1310 system: update licenses to Apache
Gregory Nutt is has submitted the SGA

Ken Pettit has submitted the ICLA

David S. Alessio has submitted the ICLA

as a result we can migrate the licenses to Apache.

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-06-11 02:42:05 -05:00
Xiang Xiao
d9c1c5bbc8 Include assert.h in necessary place
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-06-08 13:04:34 -07:00
Alin Jerpelea
1e88c73107 Makefile: Ken Pettit: update licenses to Apache
Gregory Nutt is has submitted the SGA

Ken Pettit has submitted the ICLA

as a result we can migrate the licenses to Apache.

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-06-07 21:35:33 -05:00
Alin Jerpelea
55364e92a8 Makefile: Uros Platise: update licenses to Apache
Gregory Nutt is has submitted the SGA

Uros Platise has submitted the ICLA

as a result we can migrate the licenses to Apache.

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-06-07 21:35:33 -05:00
Alin Jerpelea
ec339bc49a Makefiles: Gregory Nutt: update licenses to Apache
Gregory Nutt is the copyright holder for those files and he has submitted the
SGA as a result we can migrate the licenses to Apache.

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-06-07 21:35:33 -05:00
Xiang Xiao
58293abb8e Follow up task_spawn change from kernel side
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-06-01 12:45:26 +09:00
Xiang Xiao
213e60232f Include assert.h in necessary place
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-05-31 08:51:22 +02:00
Gustavo Henrique Nihei
b843486386 readline: Reset offset when top command is issued repeateadly 2021-05-24 22:01:21 -05:00
Xiang Xiao
82ed7bf5b1 Include debug.h for xerr/xinfo/xwarn caller
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-05-24 19:52:54 +09:00
Xiang Xiao
1ee948e0c8 Include assert.h for DEBUGASSERT caller
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-05-24 12:34:37 +09:00
Xiang Xiao
d3f8f423d5 Include debug.h for xerr/xinfo/xwarn caller
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-05-24 12:33:17 +09:00
Michał Łyszczek
19e2ffe37e system/psmq: update to v0.2.1
This release breaks API and ABI by making use of library way
easier and more safe. No app in a nuttx tree uses psmq, so
nothing in-tree will be broken by this change.

Updated license files to Apache 2.0.

Tested on nucleo-f091

Signed-off-by: Michał Łyszczek <michal.lyszczek@bofc.pl>
2021-05-23 23:57:25 +01:00
jturnsek
6b53a1959b Arrow keys not working when in INSERT mode 2021-05-20 04:23:10 -05:00
Xiang Xiao
7ef50558ab system/system: Include errno.h
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-05-20 08:42:05 +01:00
Michał Łyszczek
ccc8ddaf5d system/embedlog: update to v0.6.0
Changes from v0.4.0
- add thread safety code
- add option to print function info (name) in logs
- abi/api stabilization
- bug fixes + increased reliability

Signed-off-by: Michał Łyszczek <michal.lyszczek@bofc.pl>

---
v1 -> v2 [suggested by Brennan Ashton]
 - fix path to embedlog_main.c in header comment
 - change license from bsd3 to apache2.0
2021-05-16 11:30:29 -03:00
Simon Piriou
e4db4df673 system: adb: fix shell service
Fix wrong dup2 return value check after:
fs: file_dup2 shouldn't hold the file list lock
1e5bfa623aa93b918566e8dc0e2f9c1a1037f45e

Fix issue in adb shell introduced in:
nsh: Pass the correct command lines to nsh_consolemain
6aca60133c
2021-05-08 22:51:25 -07:00
Gustavo Henrique Nihei
73a8c65ec9 system/spi: Adopt CPHA as the abbreviation for clock phase 2021-05-06 00:24:43 -07:00
Gustavo Henrique Nihei
5b26068635 system/spi: Fix NxStyle issues 2021-04-27 02:29:45 -05:00
Gustavo Henrique Nihei
63d59b0acf system/spi: Print sent data in the same way as received.
This eases the comparison for testing SPI with looped back MOSI and MISO
signals.
2021-04-27 02:29:45 -05:00
Xiang Xiao
52d853e642 system/nxplayer: Fix error: 'outstanding' undeclared
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-03-29 01:46:29 -07:00
Gustavo Henrique Nihei
6f75c1b3d6 system/i2c: Add command for resetting an I2C bus 2021-03-12 11:08:09 +08:00
Gustavo Henrique Nihei
f7e9d09566 system/i2c: Fix nxstyle issues 2021-02-23 08:49:19 -08:00
Gustavo Henrique Nihei
f167754743 system/i2c: Fix typo in "repetitions" word 2021-02-23 08:49:19 -08:00
YAMAMOTO Takashi
a63bdcbacb system/ntpc: Add ntpcstatus command
An example output:

    nsh> ntpcstatus
    The number of last samples: 5
    [0] srv 178.16.23.50 offset -0.014006560 delay 0.349967444
    [1] srv 5.9.57.158 offset 0.001792161 delay 0.269991633
    [2] srv 206.75.147.25 offset 0.009916600 delay 0.129989672
    [3] srv 162.159.200.1 offset 0.011508908 delay 0.019917401
    [4] srv 185.19.184.35 offset 0.021468135 delay 0.239915030
    nsh>
2021-02-20 01:30:55 -08:00
Gustavo Henrique Nihei
771d19b94a system/cle: Remove column offset for cursor position 2021-02-19 10:39:21 -08:00
Gustavo Henrique Nihei
08c29110a6 system/cle: Fix cle application build 2021-02-19 10:39:21 -08:00
YAMAMOTO Takashi
bb620bb95c netdb: Fix usage and comment 2021-01-27 11:38:16 +01:00
Xiang Xiao
ee443edf6a system/argtable3: Update to the latest version(v3.2.0.7402e6e)
and remove 0001-feat-Switch-to-FreeBSD-getopt-library.patch
since it is already included in the new official release

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-01-16 14:13:25 -08:00
Xiang Xiao
35f3b609fe system/argtable3: Update to the latest version(v3.1.5.1c1bb23)
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-01-14 15:18:05 +09:00
Xiang Xiao
6aca60133c nsh: Pass the correct command lines to nsh_consolemain
Change-Id: Ic6617cecb6949054e6bdce8757523e7a60d83eb0
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-01-13 16:40:18 +08:00
chenwen
756dc32fd0 netutils/iperf: Add iperf example.
system/argtable3: Add an ANSI C library for command-line parsing.
2021-01-07 08:43:26 -06:00