chao.an
0dc716d426
sched/note: unify the data format
...
Signed-off-by: chao.an <anchao@xiaomi.com>
2022-04-03 18:04:28 +08:00
Petro Karashchenko
214dbe51b4
open() options: pass file options 0 if only ioctl is used
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2022-04-01 12:22:07 -03:00
qiaohaijiao1
442d52e878
system/nxlooper: fix warning
...
nxlooper.c:615:7: warning: 'playbufs' may be used uninitialized in this function [-Wmaybe-uninitialized]
Signed-off-by: qiaohaijiao1 <qiaohaijiao1@xiaomi.com>
2022-03-31 16:59:16 +08:00
qiaohaijiao1
68fa377c5e
system/nxplayer: fix warning
...
nxplayer.c:400:57: warning: array subscript 4 is above array bounds of 'uint8_t[4]' {aka 'unsigned char[4]'} [-Warray-bounds]
nxplayer.c:400:57: warning: array subscript 5 is above array bounds of 'uint8_t[4]' {aka 'unsigned char[4]'} [-Warray-bounds]
nxplayer.c:400:57: warning: array subscript 6 is above array bounds of 'uint8_t[4]' {aka 'unsigned char[4]'} [-Warray-bounds]
nxplayer.c:400:57: warning: array subscript 7 is above array bounds of 'uint8_t[4]' {aka 'unsigned char[4]'} [-Warray-bounds]
Signed-off-by: qiaohaijiao1 <qiaohaijiao1@xiaomi.com>
2022-03-31 16:59:16 +08:00
ligd
9730eaad9e
nsh: sh_main also support isctty = true
...
Signed-off-by: ligd <liguiding1@xiaomi.com>
2022-03-30 22:47:37 +03:00
ligd
427798f7ee
nxlooper: support different period size of player & recorder
...
Signed-off-by: ligd <liguiding1@xiaomi.com>
2022-03-30 02:46:07 +08:00
Huang Qi
ec15dc0344
system/libuv: Support specify stack size for worker thread
...
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2022-03-29 18:09:10 +03:00
Petro Karashchenko
41dd5f15bd
system/cfgdata: add missing include file
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2022-03-28 17:19:00 -03:00
zhuyanlin
e3df21cd4c
trace: fix pointer cross the border
...
Fix pointer cross the border
Signed-off-by: zhuyanlin <zhuyanlin1@xiaomi.com>
2022-03-28 22:17:59 +08:00
Xiang Xiao
d364d7a810
system: Fix nx[looper|player|recorder] warning
...
nxlooper.c:879:7: warning: 'strncpy' specified bound 96 equals destination size [-Wstringop-truncation]
879 | strncpy(plooper->recorddev, pdevice, sizeof(plooper->playdev));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
nxlooper.c:875:7: warning: 'strncpy' specified bound 96 equals destination size [-Wstringop-truncation]
875 | strncpy(plooper->playdev, pdevice, sizeof(plooper->playdev));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
nxlooper.c: In function 'nxlooper_loopraw':
nxlooper.c:165:52: warning: '%s' directive output may be truncated writing up to 96 bytes into a region of size 53 [-Wformat-truncation=]
165 | snprintf(path, sizeof(path), "/dev/audio/%s", pdevice->d_name);
| ^~
nxlooper.c:165:11: note: 'snprintf' output between 12 and 108 bytes into a destination of size 64
165 | snprintf(path, sizeof(path), "/dev/audio/%s", pdevice->d_name);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
nxplayer.c: In function 'nxplayer_playinternal':
nxplayer.c:359:53: warning: '%s' directive output may be truncated writing up to 96 bytes into a region of size 53 [-Wformat-truncation=]
359 | snprintf(path, sizeof(path), "/dev/audio/%s", pdevice->d_name);
| ^~
nxplayer.c:359:11: note: 'snprintf' output between 12 and 108 bytes into a destination of size 64
359 | snprintf(path, sizeof(path), "/dev/audio/%s", pdevice->d_name);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
nxrecorder.c: In function 'nxrecorder_setdevice':
nxrecorder.c:695:3: warning: 'strncpy' specified bound 96 equals destination size [-Wstringop-truncation]
695 | strncpy(precorder->device, pdevice, sizeof(precorder->device));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
nxplayer.c: In function 'nxplayer_setdevice':
nxplayer.c:1686:3: warning: 'strncpy' specified bound 96 equals destination size [-Wstringop-truncation]
1686 | strncpy(pplayer->prefdevice, pdevice, sizeof(pplayer->prefdevice));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CC: nxrecorder_main.c
nxplayer.c: In function 'nxplayer_setmediadir':
nxplayer.c:2090:3: warning: 'strncpy' specified bound 96 equals destination size [-Wstringop-truncation]
2090 | strncpy(pplayer->mediadir, mediadir, sizeof(pplayer->mediadir));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-03-23 11:05:18 +02:00
Petro Karashchenko
c88dd4bbaf
system/cfgdata: implement "format" option
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2022-03-22 10:30:50 +08:00
Xiang Xiao
282e44e3e0
system/ping: Don't include nuttx/lib/math.h
...
since the mdev is calculated through function provided by fixedmath.h
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-03-19 22:24:04 +02:00
Petro Karashchenko
29cc338dac
system/cfgdata: fix compilation when MTD_CONFIG_NAMED is enabled
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2022-03-19 17:36:29 +08:00
xuewenliang
c69ec94d13
Modifying the ping command
...
1、Round trip times in the ping command range from millisecond to subtle
2、Add statistics on RTT related min/avg/Max/mdev in ping program
3、The ping command supports ctrl+c interruption operations
Signed-off-by: xuewenliang <xuewenliang@xiaomi.com>
2022-03-18 09:54:01 +08:00
Petro Karashchenko
566be8c7b1
definitions: unify MAX and MIN macro definitions
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2022-03-16 23:20:17 +08:00
Xiang Xiao
61007bcdb6
system/adb: Update to microADB to the latest version
...
and enable the port forwarding feature
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-03-15 09:16:27 +02:00
pengyiqiang
c53dca512e
rename ramspeed to ramspeed_main
...
Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com>
2022-03-14 18:46:07 +08:00
pengyiqiang
c2f4d16db5
system: add ramspeed test.
...
Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com>
2022-03-14 18:46:07 +08:00
yinshengkai
db4fc86465
system/input: add input tool button support
...
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2022-03-14 18:44:08 +08:00
Petro Karashchenko
f9baa422c1
style: unify path to files in comment section
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2022-03-09 10:37:33 +08:00
Alin Jerpelea
4cd9c5d0e1
apps: system: setlogmask: update licenses to Apache
...
Gregory Nutt has submitted the SGA
Verge Aero has submitted the SGA
as a result we can migrate the licenses to Apache.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2022-03-08 17:04:01 +02:00
Xiang Xiao
5a2c435035
system/hexed: fix error: 'memset' used with length equal to number of elements without multiplication by element size
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-03-08 10:52:18 +02:00
Alin Jerpelea
cd79a79d00
Makefile: 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>
2022-03-08 01:44:49 +08:00
Xiang Xiao
df48f0bb73
system/termcurses: Fix the compiler warning
...
tcurses_vt100.c: In function 'tcurses_vt100_move':
Error: tcurses_vt100.c:121:48: error: '%d' directive writing between 1 and 11 bytes into a region of size between 2 and 12 [-Werror=format-overflow=]
121 | static const char *g_movecurs = "\033[%d;%dH"; /* Move cursor to x,y */
| ^~
tcurses_vt100.c:121:39: note: directive argument in the range [-2147483647, 2147483647]
121 | static const char *g_movecurs = "\033[%d;%dH"; /* Move cursor to x,y */
| ^~~~~~~~~~~~~
tcurses_vt100.c:795:9: note: 'sprintf' output between 7 and 27 bytes into a destination of size 16
795 | sprintf(str, g_movecurs, row + 1, col + 1);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-03-07 00:58:19 +08:00
Xiang Xiao
65a02ba9f9
system/nxplayer: Fix the compiler warning
...
nxplayer.c: In function 'nxplayer_playinternal':
Error: nxplayer.c:209:36: error: '%s' directive output may be truncated writing up to 99 bytes into a region of size 59 [-Werror=format-truncation=]
209 | snprintf(buf, sizeof(buf), "GET /%s HTTP/1.0\r\n\r\n", relurl);
| ^~ ~~~~~~
nxplayer.c:209:3: note: 'snprintf' output between 19 and 118 bytes into a destination of size 64
209 | snprintf(buf, sizeof(buf), "GET /%s HTTP/1.0\r\n\r\n", relurl);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: nxplayer.c:1809:42: error: 'snprintf' output may be truncated before the last format character [-Werror=format-truncation=]
1809 | snprintf(path, sizeof(path), "%s/%s", pplayer->mediadir, pfilename);
| ^
nxplayer.c:1809:7: note: 'snprintf' output 2 or more bytes (assuming 129) into a destination of size 128
1809 | snprintf(path, sizeof(path), "%s/%s", pplayer->mediadir, pfilename);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: nxplayer.c:359:53: error: '%s' directive output may be truncated writing up to 128 bytes into a region of size 53 [-Werror=format-truncation=]
359 | snprintf(path, sizeof(path), "/dev/audio/%s", pdevice->d_name);
| ^~
nxplayer.c:359:11: note: 'snprintf' output between 12 and 140 bytes into a destination of size 64
359 | snprintf(path, sizeof(path), "/dev/audio/%s", pdevice->d_name);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-03-07 00:58:19 +08:00
Xiang Xiao
44b92d9254
Fix readline_common.c:277:19: error: 'strncpy' destination unchanged after copying no bytes
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-03-06 00:40:06 +08:00
Xiang Xiao
02a095bb76
system/adb: Download the last version of microADB
...
commit aa9c64896c7d47478656928d4dcf9b1a5e346da7
Author: Xiang Xiao <xiaoxiang@xiaomi.com>
Date: Sat Jan 22 16:41:23 2022 +0800
remove NuttX special code
since the new libuv porting for NuttX doesn't need the special process
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-03-04 09:00:30 +02:00
Xiang Xiao
29374c96c3
system/adb: Replace NuttX special shell service with microADB builtin one
...
since the new libuv porting support uv_proccess_t now
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-03-04 09:00:30 +02:00
Xiang Xiao
77382e7209
process-spawn.c: switch uv_socketpair to uv_pipe
...
to remove the socket dependence
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-03-04 09:00:30 +02:00
Xiang Xiao
f0bb6cf914
system/libuv: Switch process.c to process_spawn.c
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-03-02 23:41:32 +08:00
Xiang Xiao
7872332284
libuv: Remove unsupported case from test list
...
And some minor changes:
* Remove no-proctitle.c from CSRCS since there is a implementation in nuttx.c
* Add sysinfo-[loadavg|memory].c to CSRCS to provide system info
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2022-03-01 13:52:34 +08:00
Huang Qi
9351ab50d5
system/libuv: Bump to v1.42.0
...
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2022-02-28 18:05:00 +08:00
Huang Qi
a79195a048
system/adb: Remove unsed macro __NUTTX__
...
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2022-02-28 18:05:00 +08:00
zhanghu6
18b5902a3e
apps/trace: add switch and dump instrumentation
...
usage:
trace switch switch [+|-]
Configure switch trace filter
trace print [+|-]
Configure dump trace filter
Signed-off-by: zhanghu6 <zhanghu6@xiaomi.com>
2022-02-24 10:23:50 -03:00
Xiang Xiao
4cc0c755bf
Remove CONFIG_CLOCK_MONOTONIC special code
...
since this opion doesn't exist anymore
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-02-23 01:21:44 +08:00
Xiang Xiao
b1276ea1b4
system/adb: Change the default value of ADBD_PAYLOAD_SIZE to 1024
...
improve the speed of "adb push" and "adb pull"
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-02-17 05:26:27 +01:00
Xiang Xiao
f4fdf94d53
system/cu: Don't select SERIAL_TERMIOS in Kconfig
...
since all terminal related code is already guarded by CONFIG_SERIAL_TERMIOS
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-02-09 18:36:25 +01:00
Xiang Xiao
9534c640e8
system/adb: Fix error: 'fd' may be used uninitialized in this function
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-02-03 22:27:01 +01:00
Xiang Xiao
53cd8cda1f
system/adb: Support reset to bootloader and recovery mode
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-01-29 12:44:41 +01:00
Xiang Xiao
8506078624
system/adb: Replace printf with syslog since adb is a service
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-01-24 23:32:15 +08:00
Norman Rasmussen
cc5b99a725
system/uniqueid: Add a tool to get the board uniqueid
2022-01-22 22:48:23 +08:00
Xiang Xiao
db235f98d8
Rename CONFIG_SMP_NCPUS to CONFIG_NR_CPUS
...
follow up NuttX side change
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-01-22 00:08:32 +01:00
yinshengkai
8f1948038e
system/input: add system input cmd tool
...
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2022-01-20 19:47:05 +01:00
Petro Karashchenko
9480c0ec12
include: fix double include pre-processor guards
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2022-01-16 17:36:21 +08:00
Norman Rasmussen
374cb9230a
Fix boarctl typos
2022-01-16 08:07:47 +01:00
Fotis Panagiotopoulos
bc5d8034f1
Typo fixes.
2022-01-06 10:30:41 +08:00
zhanghu6
0c79d57f12
note main: system/sched_note add output of string and binary
...
ifdef CONFIG_SCHED_INSTRUMENTATION_DUMP
case NOTE_DUMP_STRING:
case NOTE_DUMP_BINARY:
endif
2022-01-04 20:53:08 +08:00
Norman Rasmussen
6993c66389
Check for too many arguments to hostname
...
Also use the symbolic value for the success exit code.
2022-01-01 14:54:15 +01:00
Norman Rasmussen
2a4db81217
system/hostname: Add a tool to get/set hostname
2021-12-29 01:59:47 -06:00
Petro Karashchenko
5ac15130db
apps: remove space befone newline in logs
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2021-12-27 20:52:08 -06:00
chao.an
fcd69d1cdf
system/lzf: correct the open mode
...
Signed-off-by: chao.an <anchao@xiaomi.com>
2021-12-20 09:12:52 -06:00
chao.an
419e6b012a
system/lzf: add support for host build
...
Signed-off-by: chao.an <anchao@xiaomi.com>
2021-12-20 09:12:52 -06:00
chao.an
5a61f9e0b0
system/lzf: fix nxstyle warning
...
Signed-off-by: chao.an <anchao@xiaomi.com>
2021-12-20 02:17:07 -06:00
chao.an
0f632f1d66
system/lzf: replace the semaphore to pthread to ensuring compatibility
...
Private SEM_INITIALIZER is incompatible with other OS
Signed-off-by: chao.an <anchao@xiaomi.com>
2021-12-20 02:17:07 -06:00
zhanghu6
1e28c3b9ea
trace dump: the note dump module of out keep string output
2021-12-14 11:16:54 -06:00
zhanghu6
a63aef8f02
warning: trace_dump_sched_switch unused because add SCHED_INSTRUMENTATION_SWITCH
...
https://github.com/apache/incubator-nuttx/pull/4998
note dump: add CONFIG_SCHED_INSTRUMENTATION_SWITCH #4998
2021-12-14 11:16:54 -06:00
zhanghu6
a2c8fa182a
trace dump: build error because add CONFIG_SCHED_INSTRUMENTATION_SWITCH in note driver
...
https://github.com/apache/incubator-nuttx/pull/4998
note dump: add CONFIG_SCHED_INSTRUMENTATION_SWITCH #4998
2021-12-14 11:16:54 -06:00
zhanghu6
cc8dd03b9c
trace dump: add string and binary
...
NOTE_DUMP_STRING
NOTE_DUMP_BINARY
And incubator-nuttx[trace: and sched note dump #4963 ] is together
2021-12-13 21:22:21 -06:00
Xiang Xiao
58586f86e3
system/cle: Make it work without CONFIG_FILE_STREAM
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-11-30 22:06:03 -06:00
Xiang Xiao
c8439368ac
system/readline: Make it work without CONFIG_FILE_STREAM
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-11-30 22:06:03 -06:00
Abdelatif Guettouche
7b192f24fe
system/trace/trace.c: Condition the creation of "i" and "count"
...
varialbes with SYSCALL or IRQ instrumentation to avoid a warning.
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2021-11-27 05:48:13 -06:00
Abdelatif Guettouche
c26c4009d9
system/trace/trace_dump.c: Fix typo in a comment (NUL -> NULL).
...
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2021-11-27 05:48:13 -06:00
Abdelatif Guettouche
b345298232
system/sched_note/note_main.c: Fix the path of file in the header.
...
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2021-11-12 08:29:03 -06:00
Abdelatif Guettouche
610d3878af
system/sched_note/note_main.c: Some cosmetic changes to comments.
...
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2021-11-12 08:29:03 -06:00
Abdelatif Guettouche
e2975b5947
system/sched_note/note_main.c: Drop the ERROR string from the syslog
...
error messages as it's already prepended.
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2021-11-12 08:29:03 -06:00
Abdelatif Guettouche
49866a8fe4
system/sched_note/note_main.c: Change the priority of errors printed
...
through syslog.
Errors should have LOG_ERR instead of LOG_INFO.
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2021-11-12 08:29:03 -06:00
Abdelatif Guettouche
31ad83e018
system/sched_note/Makefile: Fix program name.
...
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2021-11-12 08:29:03 -06:00
Xiang Xiao
35e442d08c
system/readline: Move READLINE_HAVE_EXTMATCH inside SYSTEM_READLINE section
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-11-08 10:43:47 -03:00
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
Nakamura, Yuuichi
bfa826d30d
system/trace: Fix fprintf format warnings
2021-01-06 10:27:34 +01:00
chao.an
54bbfee30e
system/readline: check the control ascii only to support multi-languages
...
Signed-off-by: chao.an <anchao@xiaomi.com>
2021-01-05 08:02:25 +01:00
ligd
0e4c29be03
system/nx: update mqueue_open return value
...
Change-Id: Ic8d7763fa2da01312cb0e02b4aaf73893cad471a
Signed-off-by: ligd <liguiding1@xiaomi.com>
2021-01-03 21:15:00 -06:00
danguanghua
a4f240e0e1
system: nxlooper: add nxlooper for loopback test
...
N/A
which record and play raw data using audio subsystem
to verify audio record and playback function
Signed-off-by: danguanghua <danguanghua@xiaomi.com>
Change-Id: I2c768b8e8234a31f9622cb9955f785329cf402a5
Signed-off-by: danguanghua <danguanghua@xiaomi.com>
2020-12-25 02:26:52 -06:00
Huang Qi
3040c59ae9
Replace all wget with curl
...
wget is missing from some system (like macOS and Windows native),
it's better to use curl to simplify build environment.
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2020-12-21 22:45:46 -06:00
danguanghua
f210010466
system: enable O_CLOEXEC when openning audio device
...
N/A
to avoid multiple open operations of audio_open
Change-Id: Id283def4811c71f3c0bd38dc1a480afce303c4c3
Signed-off-by: danguanghua <danguanghua@xiaomi.com>
2020-12-19 07:56:18 -06:00
Masayuki Ishikawa
9f542c42e5
system: adb: Fix compile issues in adb_main.c
...
Summary:
- This commit fixes compile issues for the following condition
- CONFIG_ADBD_BOARD_INIT=n && CONFIG_BOARDCTL_RESET=y
Impact:
- adb only
Testing:
- Tested with stm32f4discovery:adb (not pushed yet)
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-12-17 00:32:54 -06:00
Xiang Xiao
16c6e1f0b8
system: nxplayer and nxrecorder shouldn't hardcode message length to 16
...
the audio driver may config a very large buffer count,
so let's adjust the message queue length dynamically.
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-12-14 16:30:11 +01:00
danguanghua
3d42c6460f
fix build bread if CONFIG_AUDIO_MULTI_SESSION enabled
...
N/A
Change-Id: I785f44a4381965df700000cbd33faeb2d2e24f6e
Signed-off-by: danguanghua <danguanghua@xiaomi.com>
2020-12-11 08:06:31 -06:00
Simon Piriou
d37a1d2f1b
system/adb: fix shell issue and add reboot feature
2020-12-08 10:13:34 -06:00
chao.an
fe915679b1
style/Document: remove unnecessary trailing whitespace
...
N/A
Signed-off-by: chao.an <anchao@xiaomi.com>
2020-11-28 12:20:10 +01:00
YAMAMOTO Takashi
ec0f0b7fbc
system/nxrecorder/nxrecorder.c: Fix a syslog format
2020-11-27 02:43:30 -06:00
YAMAMOTO Takashi
ce3ca22152
system/nxrecorder/nxrecorder.c: Don't assume debug macro expansion
2020-11-27 02:43:30 -06:00
YAMAMOTO Takashi
ed768d1159
system/nxplayer/nxplayer.c: Fix a syslog format
2020-11-27 02:43:30 -06:00
YAMAMOTO Takashi
db07ae43ee
system/nxplayer/nxplayer.c: Don't assume debug macro expansion
2020-11-27 02:43:30 -06:00
YAMAMOTO Takashi
69da172c5f
system/cle/cle.c: Fix syslog formats
2020-11-23 18:23:24 -08:00
dongjiuzhu
6189a8df4b
app/system/readline: fix compile break
...
N/A
Change-Id: I562b96492be9976611199e6215c55c03f1e154c8
Signed-off-by: dongjiuzhu <dongjiuzhu1@xiaomi.com>
2020-11-17 20:12:57 -08:00
YAMAMOTO Takashi
a760f95b5d
system/zmodem/zm_receive.c: Fix a printf format warning
2020-11-13 05:51:23 -08:00
YAMAMOTO Takashi
423d748cee
system/zmodem/zm_receive.c: Appease nxstyle
2020-11-13 05:51:23 -08:00
YAMAMOTO Takashi
36819dbad9
system/lm75/lm75.c: Fix a printf format warning
2020-11-13 05:51:23 -08:00
YAMAMOTO Takashi
4f8104ca3f
system/lm75/lm75.c: Appease nxstyle
2020-11-13 05:51:23 -08:00
YAMAMOTO Takashi
b8e1819bf0
system/ramtest/ramtest.c: Fix printf format warnings
2020-11-13 05:51:23 -08:00
YAMAMOTO Takashi
c59ab94567
system/vi/vi.c: Fix a printf format warning
2020-11-13 05:51:23 -08:00
YAMAMOTO Takashi
6db2f25f69
system/i2c/i2c_hexdump.c: Fix a printf format warning
2020-11-13 05:51:23 -08:00
YAMAMOTO Takashi
2d9ed6a7e7
system/ping/ping.c: Fix printf format warnings
2020-11-13 05:51:23 -08:00
YAMAMOTO Takashi
6e0f188ece
system/ping/ping.c: Appease nxstyle
2020-11-13 05:51:23 -08:00
YAMAMOTO Takashi
a085678879
system/ramtest/ramtest.c: Fix printf warnings
2020-11-09 04:10:59 -08:00
YAMAMOTO Takashi
0fcb94f999
system/ramtest/ramtest.c: Appease nxstyle
2020-11-09 04:10:59 -08:00
Simon Piriou
a8a70f219d
libuv/adb: add gitignore files
2020-11-08 12:10:11 -08:00
Simon Piriou
c1c488e835
system: add Android Debug Bridge daemon
2020-11-08 13:11:48 -03:00
Simon Piriou
efd81744d1
libuv: fix bugs and add partial pipe support
2020-11-08 13:11:48 -03:00
ligd
ee7b0fc1dd
nxplayer & nxrecorder: make main thread configurable, set to default
...
Change-Id: I730f2dab00da245a79fc61d679296e73efc2374f
Signed-off-by: ligd <liguiding1@xiaomi.com>
2020-11-03 21:45:59 -08:00
Nakamura, Yuuichi
e6e435572b
Add task name recording support for trace command
2020-11-01 19:33:08 -08:00
ligd
d791afff4c
system/cu/cu_main.c: ctrlC will send SIGINT/SIGSTP
...
N/A
Change-Id: I67f02977d206875cf1bd9cae4973c49af1db4c1d
Signed-off-by: ligd <liguiding1@xiaomi.com>
2020-10-27 10:16:55 -07:00
Nakamura, Yuuichi
954c90b4b5
Add SCHED_INSTRUMENTATION_HIRES support
2020-10-21 02:10:51 +08:00
Xiang Xiao
58aa886bad
system/sched_note: Change DRIVER_NOTE to DRIVER_NOTERAM
...
follow up the kernel side change
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-10-20 17:54:45 +01:00
Nakamura, Yuuichi
ef2758c0c5
Add note_syscall args support
2020-10-21 00:42:53 +08:00
Juha Niskanen
2b88677895
system/cu: do not reset baud rate to zero when parity options are used
...
cfsetspeed() now stores baud rate to c_cflag member of
struct termios, so it must not be overridden later on.
Signed-off-by: Juha Niskanen <juha.niskanen@haltian.com>
2020-10-20 01:08:22 +08:00
Juha Niskanen
a20cf0980d
system/cu: do not exit directly from getopt loop, bad in flat builds
...
Signed-off-by: Juha Niskanen <juha.niskanen@haltian.com>
2020-10-20 01:08:22 +08:00
Xiang Xiao
8a63e58936
Change all 'Nuttx' to 'NuttX'
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-10-18 22:27:57 -07:00
Nakamura, Yuuichi
7588d458e5
Remove trace command description
2020-10-18 00:23:27 +08:00
Nakamura, Yuuichi
007033f295
Fix note_syscall_leave_s to avoid unaligned access
2020-10-17 23:53:30 +08:00
Nakamura, Yuuichi
71ce72a341
Add trace command for task trace
2020-10-15 16:49:11 +08:00
y
51a96ce935
system/nxplayer/nxplayer_main.c: fix '%d' missing in sscanf
...
Change-Id: Ie69c9d4c38c7d6fe926788c67b992d3922b74d8c
2020-09-27 04:57:12 -07:00
licheng
a375f64f81
nxplayer&nxrecoder: add channel map support
...
Change-Id: I5e5534e7330d816533a6894cf3cd8c4e19984c6f
Signed-off-by: ligd <liguiding1@xiaomi.com>
2020-09-27 00:35:49 -07:00
Masayuki Ishikawa
03c3b2ed0f
system: nxplayer: Fix a compile error if CONFIG_DEBUG_AUDIO_ERROR=y
...
Summary:
- This commit fixes a compile error
Impact:
- Affects nxplayer with CONFIG_DEBUG_AUDIO_ERROR=y
Testing:
- Tested with spresense:rndis
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-09-15 21:15:58 -07:00
Xiang Xiao
3edfb4a3ac
system/readline: Fix the stack overflow when application name is too long
...
shouldn't zero the memory after tmp_name
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I527001af08da0865c4054b7a5b6ccaf60f585c06
2020-09-04 08:57:03 +02:00
Xiang Xiao
68c8a0f708
Fix nxstyle warning
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-08-23 15:44:32 -06:00
Xiang Xiao
837b405624
Change all files come from Xiaomi/Pinecone to Apache License 2.0
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-08-23 15:44:32 -06:00
Ouss4
aa717d59fd
system/readline/readline_common.c: Don't save the command again in the
...
history buffer if it's the one at the top.
2020-08-22 05:11:02 -07:00
Ouss4
a1b8ad9190
system/readline/readline_common.c: Fix nxstyle issues.
2020-08-22 05:11:02 -07:00
Xiang Xiao
9d80399bd5
nsh: Accept the command line arguments like sh
...
Usage: nsh [<script-path>|-c <command>]
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: Ifb76b27e7fd09d26b1f6e48c391fed0972018041
2020-08-19 14:32:53 -07:00
spiriou
18158ed271
system: add libuv port for NuttX
2020-08-17 11:09:47 -03:00
Oleg Evseev
fcd3937d7c
system/cu: refactor, add option -c to disable \n -> \r\n conversion
...
option -c will disable \n -> \r\n conversion both for serial device and console if it is a tty
refactor: use only one function to set termios parameters, use termious related code and options only if CONFIG_SERIAL_TERMIOS is defined
2020-08-14 00:58:55 +01:00
Xiang Xiao
e6c5ff9208
Remove the unnecessary touch and clean from Makefile
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-08-11 19:10:19 +01:00
SPRESENSE
63cd701958
Makefile: Unify ROOTDEPPATH into DEPPATH
...
DEPPATH is commonly used in nuttx repo, so it to be the same with them.
2020-07-29 15:22:20 +02:00
SPRESENSE
fb26ef28c6
system/hex2bin: Fix compilation error
...
Avoid overwrite the PROGNAME.
2020-07-29 15:22:20 +02:00
SPRESENSE
088df5f156
system: Fix typos
...
Fix typos in following files:
- system/setlogmask/Kconfig
- system/tee/Makefile
- system/telnet/Makefile
- system/spi/Kconfig
2020-07-29 15:22:20 +02:00
Masayuki Ishikawa
f6aa7340bc
system: taskset: Replace license header with Apache License 2.0
...
Summary:
- This commit replaces license headers under system/taskset.
Impact:
- No impact
Testing:
- Buid check only
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-07-29 01:05:31 -05:00
Maciej Wójcik
21049ece6e
Rewritten READMEs to Markdown
2020-07-25 01:01:51 -07:00
Maciej Wójcik
51e6645f71
Rename README and README.txt to README.md
2020-07-25 01:01:51 -07:00
Xiang Xiao
deaa6c5b7b
build: Replace $(TOPDIR)/Make.defs with $(APPDIR)/Make.defs
...
and move NUTTXLIB defintion to the common place
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-07-09 15:17:37 -03:00
Xiang Xiao
7789bbb470
zmodem: Remove CONFIG_HAVE_INLINE from compiler.h
...
follow up the kernel side change
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-07-06 01:22:42 +01:00
Xiang Xiao
b217de70e5
apps: Remove all stuff related to CONFIG_xxx_CXXINITIALIZE
...
since it is moved to the central place in nuttx side instead
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I544d6110f1ca6460f7c82f970870aa9b1e7ab3dd
2020-07-01 10:03:12 -06:00
Masayuki Ishikawa
fed7a53ef5
system: nxrecorder: Refactor nxrecorder.c
...
NOTE: Remove redundant code regarding audio buffer configuration
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-06-17 13:04:23 +08:00
Gregory Nutt
4f044a4342
system/sched_note/note_main.c: Add interrupt/syscall call decode.
2020-06-16 20:43:18 +01:00
Masayuki Ishikawa
2282310483
system: nxrecorder: Add O_TRUNC when creating a file
...
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-06-16 17:00:24 +08:00
Matias Nitsche
853439f0e7
composite: nxstyle fixes
2020-06-15 21:21:58 +01:00
Matias Nitsche
22d5712a5a
composite: do not require CDCACM driver to be set, composite interface is generic
2020-06-15 21:21:58 +01:00
YAMAMOTO Takashi
faba0249c1
Include malloc.h instead of stdlib.h for mallinfo()
...
Adapt to the change in the main repo.
mallinfo is meant to be API compatible with Linux,
where it's provided by malloc.h.
(I think the API actually originated with System V. I don't
remember how it was there though. Anyway, I guess the
compatibility with Linux is more important than System V
these days.)
2020-06-15 07:21:52 -06:00
Masayuki Ishikawa
1d4dc43e73
system: nxrecorder: Fix compile warnings in nxrecorder.c
...
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-06-10 18:15:08 -07:00
Masayuki Ishikawa
2ba9fd55af
system: nxplayer: Refactor nxplayer.c
...
NOTE: Remove redundant code regarding audio buffer configuration
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-06-05 15:21:02 +08:00
Xiang Xiao
d28dcfbee3
zmodem: Fix the build break and warning for host binary
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: If6b324c20fcb245633f3bdc9000bc48f581c7dc6
2020-06-03 13:07:11 +01:00
YAMAMOTO Takashi
6205eb01f2
remove duplicated g_wordsize
2020-05-25 14:42:58 +08:00
Xiang Xiao
69f013e74e
build: Remve the unnecessary .gitignore
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-23 15:56:35 +01:00
Xiang Xiao
ea135b89c6
build: Replace all -I to INCDIR
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-21 17:43:42 +01:00
Xiang Xiao
ead498a788
build: Remove the workaround for the inexistence of .config/Make.defs
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-21 17:43:42 +01:00
Masayuki Ishikawa
8d1f2d52da
system: nxplayer: Introduce max host and file name for http url
...
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-05-21 18:48:02 +08:00
Xiang Xiao
9be0be5d47
build: host executable should use HOSTEXEEXT not EXEEXT
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-19 08:58:10 -06:00
Xiang Xiao
6a26547dec
build: Move INCDIROPT to common place
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-18 15:37:24 -06:00
Ouss4
cc2ac7452c
system/netdb/netdb_main.c: Eliminate a warning when
...
CONFIG_NETDB_HOSTFILE is not set.
2020-05-14 16:40:12 -06:00
Gregory Nutt
b2d8c501f6
Remove use of set_errno() from application code.
...
The normal assignment errno = errcode should work fine now.
2020-05-07 22:23:19 +01:00
Xiang Xiao
4389885cf6
Move usrsock_rpmsg from system to netutils folder
...
This is a more suitable location
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-06 08:59:53 -06:00
Xiang Xiao
7a99d62ca1
Fix nxstyle warning
...
Signed-off-by: Xiang Xiao <xiaox
iang@xiaomi.com>
2020-05-06 07:31:10 -06:00
Xiang Xiao
8a1f5ee34c
debug: Reduce CONFIG_CPP_HAVE_VARARGS usage
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-06 07:31:10 -06:00
Xiang Xiao
547bad9e2a
Remove the unnecessary BUILD_FLAT dependence from Kconfig
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-04-29 11:46:53 -06:00
Xiang Xiao
dcc620e6b8
Kconfig: Change !BUILD_PROTECTED && !BUILD_KERNEL to BUILD_FLAT
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-04-29 07:23:51 -06:00
Xiang Xiao
ef19ca0243
cle.c: Fix warning: assuming signed overflow does not occur when assuming that (X + c) < X is always false
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-04-27 15:29:37 +02:00
Xiang Xiao
f55c5b67ee
usrsock: Fix warning: the incompatible pointer type
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-04-27 15:29:37 +02:00
Alin Jerpelea
2749e6467b
system: nxplayer & nxrecorder: nxstyle fixes
...
nxstyle fixes for nxplayer & nxrecorder apps
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2020-04-21 16:41:51 -06:00
Xiang Xiao
650b58d6b2
nshlib: Fix nxstyle warning
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-04-19 08:07:06 -06:00
Xiang Xiao
de8a56d149
nshlib: Split shell functionality from nsh to sh
...
1.Improve the compatiblity as other OS
2.Avoid call nsh_initialize more than once
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-04-19 08:07:06 -06:00
Xiang Xiao
3f9302561c
nshlib: Enhance nsh to execute the shell script
...
and support the interactive shell too
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-04-19 08:07:06 -06:00
Xiang Xiao
7b4d34e352
system/taskset: Call system to launch application instead of nsh_system
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-04-19 08:07:06 -06:00
Xiang Xiao
e4b101d2ef
system/cu: Echo NULL char too
...
since zero is also a valid character
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-04-16 20:50:40 +09:00
Gregory Nutt
3e73991857
nxstyle fixes for PR 170
2020-04-11 20:32:53 +01:00
Gregory Nutt
05f2253a33
Remove CONFIG_CAN_PASS_STRUCT
...
This is the companion to PR #766 . It removes the CONFIG_CAN_PASS_STRUCT option as recommended by Issue #620
NuttX PR #766 depends on PR being in place but not vice versa. This PR should be merge-able without #766 and then PR #766 should also pass its checks.
2020-04-11 20:32:53 +01:00
YAMAMOTO Takashi
3ba85167fe
system/ramtest: Change the default of stack size to DEFAULT_TASK_STACKSIZE
...
Given what this program does, it's probably ok to allocate a few more
kilo bytes of the stack.
2020-03-27 02:43:11 -05:00
YAMAMOTO Takashi
eb083265f4
system/flash_eraseall: Bump stack size to DEFAULT_TASK_STACKSIZE
2020-03-27 02:43:11 -05:00
YAMAMOTO Takashi
2ecdf4c554
Change the default of a few stack size configs to DEFAULT_TASK_STACKSIZE
...
These had the larger default for the sim.
It's no longer necessary as DEFAULT_TASK_STACKSIZE
can have different default for each arch.
See also:
commit b1d44a81b4
2020-03-27 02:43:11 -05:00
YAMAMOTO Takashi
e7156be066
Change the defaults of stack size configs to DEFAULT_TASK_STACKSIZE
...
This commit changes only ones with the default 2048 and
leaves the others.
E.g. this leaves SYSTEM_RAMTEST_STACKSIZE, whose default is 1024.
I guess those need to be inspected one-by-one.
2020-03-27 02:43:11 -05:00
YAMAMOTO Takashi
c304624fab
Replace "STACKSIZE = 2048" with CONFIG_DEFAULT_TASK_SIZE
...
For now, I left the following instances because it isn't
clear to me why they are using the different values.
Maybe they need one-by-one inspection.
examples/igmp/Makefile:STACKSIZE = 1024
examples/powerled/Makefile:STACKSIZE = 1024
examples/powermonitor/Makefile:STACKSIZE = 768
examples/relays/Makefile:STACKSIZE = 512
examples/smps/Makefile:STACKSIZE = 1024
graphics/screenshot/Makefile:STACKSIZE = 4096
system/flash_eraseall/Makefile:STACKSIZE = 1024
testing/cxxtest/Makefile:STACKSIZE = 4096
testing/smart_test/Makefile:STACKSIZE = 4096
2020-03-27 02:43:11 -05:00
Xiang Xiao
1511403fdf
Revert "Don't generate .depend anymore"
...
This reverts commit cc5ad09caa
.
2020-03-22 23:09:40 -05:00
Xiang Xiao
cc5ad09caa
Don't generate .depend anymore
2020-03-22 18:15:21 +00:00
Ouss4
7694f21292
system/cu/cu_main.c: Fix nxstyle complaints.
2020-03-13 16:36:03 -06:00
Oleg Evseev
df5d4cd033
system/cu/cu_main.c: Add option -f to loop forever.
2020-03-13 16:36:03 -06:00
Oleg Evseev
f221d33525
system/cu/cu_main.c: Fix wrongly swapped parity options.
2020-03-13 16:36:03 -06:00
Gregory Nutt
c742373efc
apps/system/cle: Fix error when compiling with C89 compiler.
2020-03-13 20:14:14 +01:00
Xiang Xiao
41d88f06e7
Run codespell -w with the latest dictonary again
2020-02-23 07:10:14 -06:00
Xiang Xiao
d660492289
Run codespell -w against all files
...
and fix the wrong correction
2020-02-22 14:41:36 -06:00
chao.an
f28eca9dbc
Make.defs: Use complete include path
2020-02-19 12:56:10 -06:00
Xiang Xiao
f14aead53e
Shouldn't use local readline in telnet
...
Shouldn't use local readline in telnet since the host has more powerful intelligent
2020-02-08 07:58:04 -06:00
Xiang Xiao
bf3e6e2367
Improvements for telnet server
...
Author: Xiang Xiao <xiaoxiang@xiaomi.com>
Check POLLHUP and POLLERR in telnet poll loop
to handle the remote end close correctly
Send "NVT"(network virtual terminal) as the default if getenv("TERM") return NULL
telnet should trigger the error handling if inet_pton return zero
since zero mean the string has format error
Don't return 1 in _environ_telnet to avoid trigger the compression
and remove the redundant TELNET_TELOPT_COMPRESS2 check
Change telnet_error_u to telnet_error_e required by the coding standard
Ensure telnet object get freed before the abnormal exit
2020-02-04 19:09:22 -03:00
Gregory Nutt
724a34bd3b
Run all files modified by pr45 through nxstyle.
2020-02-03 07:38:57 -06:00
Xiang Xiao
37135e5dfe
telnetd should listen both IPv4 and IPv6 for the dual stack
...
Change-Id: Ic1c2878f2eda721ccdf667b0a634289c643f5220
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-02-03 07:17:22 -06:00
Xiang Xiao
1154735ca6
Refine the preprocess conditional guard style
2020-01-31 11:04:10 -06:00
Xiang Xiao
e0dcfa0c55
Remove extra whitespace from files ( #43 )
...
* Remove multiple newlines at the end of file
* Remove the white space from the end of line
2020-01-31 08:29:24 -06:00
Satoshi Togawa
012031bc8e
fix typo
2020-01-24 22:12:06 +09:00
Xiang Xiao
53efd71d6d
Fix format warn ( #13 )
...
* fix warning: format '%u' expects argument of type 'unsigned int *', but argument 3 has type 'uint16_t *
Change-Id: I3eccf8e2cd917f19b7a9edab233b327297d74bb7
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
* fix warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'int'
Change-Id: Ic59a1e9e49256637fa73459c46b8cded036cf971
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-01-14 03:21:13 +01:00
Adam Feuer
7fd1b9065b
delete all characters from char to EOL
...
- more like GNU readline or emacs - can delete entire line with
ctrl-A ctrl-K
2020-01-08 15:40:04 -06:00
Alin Jerpelea
967e7e2912
system: readline: Improve security
2020-01-08 20:43:39 +08:00
Alin Jerpelea
01e2b11785
system: zmodem: Improve zmodem send performance
...
Introduce new configuration of CONFIG_SYSTEM_ZMODEM_SNDFILEBUF, which
allocates cache buffer for reading file to be sent. This option can
improve the performance of zmodem sending file by multiple bytes read
of file, especially when the single read of file is very slow.
2020-01-08 20:43:39 +08:00
Alin Jerpelea
221a45879d
system: zmodem: Fix compile error in zmodem host tool
2020-01-08 20:43:39 +08:00
Alin Jerpelea
437dba336e
system: zmodem: Fix debug assert condition
2020-01-08 20:43:39 +08:00
Alin Jerpelea
5c936ce0e4
Various fixes ( #6 )
...
Author: Gregory Nutt <gnutt@nuttx.org>
Run all .c and .h affected by this PR through nxstyle.
Author: Alin Jerpelea <alin.jerpelea@sony.com>
* system/usbmsc: Fix accessing uninitialized pointer
* fsutils/inifile: Fix a memory leak in inifile error case
* fsutils/mksmartfs: Fix uninitialized return code
* system/zmodem: Fix a compile error in zmodem debug enabled
* nshlib/nsh_fscmds.c: Add syntax check to cp command
If the destication of NutShell cp command is the same with the source,
it may cause the file corruption. Add the syntax check of argument to
avoid this problem.
2020-01-07 09:01:23 -06:00
Xiang Xiao
857158451b
Unify the void cast usage
...
1.Remove void cast for function because many place ignore the returned value witout cast
2.Replace void cast for variable with UNUSED macro
Change-Id: Ie644129a563244a6397036789c4c3ea83c4e9b09
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-01-02 23:21:01 +08:00
Gregory Nutt
3da8091d30
Include nuttx/symtab.h instead of nuttx/binfmt/symtab.h since symtab.h under binfmt folder is for internal use.
2019-12-10 08:39:22 -06:00
Xiang Xiao
7479cd6819
apps/system/nsh/nsh_main.c: Remove HAVE_DUMMY_SYMTAB logic since BINFS can run without it.
2019-12-10 08:37:58 -06:00
Gregory Nutt
9667060914
Remove apps/system/sudoku.
2019-11-25 16:14:47 -06:00
kyChu
23d2785b19
system/spi/Kconfig: Simultaneous with Dave Marples patch, kyChu submitted a nearly equivalent change with PR 206. In have enhanced Dave Marples change with some good things form kyChu's PR.
2019-11-25 07:49:31 -06:00
Dave Marples
12224806dc
system/spi/Kconfig: This patch fixes a missing definition in the spitool when SPI is enabled with command/data switching.
2019-11-25 07:41:14 -06:00
Gregory Nutt
3ebf71095e
Remove all support for the ancient Pascal compiler and pcode interpreter.
2019-11-21 07:04:34 -06:00