ligd
c57677c3ce
apps: add rptun /dev/rptun/xx panic cmd
...
Signed-off-by: ligd <liguiding1@xiaomi.com>
2022-04-01 17:36:51 +08:00
Jiuzhu Dong
de61706552
nsh/memdump: support dynamic turn on/off backtrace in heap
...
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2022-04-01 13:31:28 +08:00
田昕
cbc9163266
apps/nsh:add resetcause command
...
Signed-off-by: 田昕 <tianxin7@xiaomi.com>
2022-03-31 12:09:24 +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
wangbowen6
963c1f31db
testing/mm: repair the memory leak question when realloc failed.
...
Signed-off-by: wangbowen6 <wangbowen6@xiaomi.com>
2022-03-31 03:16:24 +08:00
Alin Jerpelea
19acc783c4
remove DISCLAIMER-WIP
...
Most licenses have been converted to Apache and the non Apache
licenses have been documented.
We can assume that now it should be the time to remove DISCLAIMER-WIP
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2022-03-30 16:09:51 +08: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
ligd
d6a187efed
nshlib: merge nsh_getdirpath() to nsh_fsutils.c
...
Signed-off-by: ligd <liguiding1@xiaomi.com>
2022-03-30 02:36:13 +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
yinshengkai
cd1bc19bf9
quickjs: fix compile warning
...
optind is a global variable in getopt.h (a macro defined in stdlib.h in nuttx).
Here it is used as a variable, not a variable of getopt
2022-03-29 22:47:11 +08:00
ligd
e0da9d1409
rexec: correct af type from int to sa_family_t
...
Signed-off-by: ligd <liguiding1@xiaomi.com>
2022-03-29 17:10:32 +08:00
Gustavo Henrique Nihei
c29deef4e5
testing: Extend cxxtest with some C++17 features
...
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2022-03-29 10:03:10 +08: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
Petro Karashchenko
c1dfaf42ff
netutils/ftpd: add option to login to FTPD using FSUTILS_PASSWD
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2022-03-28 23:30:45 +08: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
Petro Karashchenko
d868387148
fsutils/passwd: fix out of bounds array access during password encryption
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2022-03-28 22:11:01 +08:00
Peter Bee
2831af6395
apps/mlearning: tweak lib makefile
...
only one .c needed for each function group
add -flax-vector-conversions to avoid build error on gcc && M55
Signed-off-by: Peter Bee <bijunda1@xiaomi.com>
2022-03-28 16:08:58 +08:00
Peter Bee
96efff32fe
apps/mlearning: tweak lib makefile
...
only one .c needed for each function group
add -flax-vector-conversions to avoid build error on gcc && M55
Signed-off-by: Peter Bee <bijunda1@xiaomi.com>
2022-03-28 16:08:58 +08:00
SunJ
f8811eab38
examples/watchdog: Fix watchdog command parameter error
2022-03-28 13:42:49 +08:00
Jiuzhu Dong
5fab48a2fe
testing/scanftest: fix nxstyle
...
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2022-03-28 00:25:56 +08:00
Jiuzhu Dong
494b47c692
fix compile warning
...
scanftest_main.c:1121:34: warning: ‘%s’ directive writing up to 2 bytes into a region of size between 1 and 80 [-Wformat-overflow=]
canftest_main.c: In function 'scanftest_main':
scanftest_main.c:1399:42: warning: format '%n' expects argument of type 'int *', but argument 3 has type 'unsigned int' [-Wformat=]
1399 | printf("Test #%u assigned %nou instead of %lli.\n",
| ~^
| |
| int *
| %d
1400 | t + 1, nou, type_data[t].value.u);
| ~~~
| |
| unsigned int
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2022-03-28 00:25:56 +08:00
Jiuzhu Dong
dede3698ae
rexecd: fix compile warning
...
rexecd.c:196:9: warning: 'ret' may be used uninitialized in this function [-Wmaybe-uninitialized]
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2022-03-28 00:25:56 +08:00
Gustavo Henrique Nihei
732df52aef
testing: Fix cxxtest application for "no-rtti" builds
...
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2022-03-26 06:31:51 +02:00
Petro Karashchenko
cfadf7b9dc
fsutils/passwd: fix compilation
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2022-03-25 11:07:10 +02:00
Michael Mogenson
4043522daf
interpreters: lua: replace awk command with shell script
2022-03-24 00:18:28 +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
Xiang Xiao
2fc7c67031
wireless/wapi: Fix warning: 'strncpy' specified bound 16 equals destination size
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-03-22 08:35:58 +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
Michael Mogenson
f1a74533f2
examples: add Lua module example
2022-03-21 13:49:42 +08:00
Michael Mogenson
87df63d367
interpreters: add Lua support
2022-03-21 13:49:42 +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
songlinzhang
f85388578c
Add dhcp6c module
...
Signed-off-by: songlinzhang <songlinzhang@xiaomi.com>
2022-03-19 23:25:50 +08:00
Gerson Fernando Budke
afefa1c308
boot/mcuboot: Move MCUboot samples to examples dir
...
The current examples belongs to 'examples/mcuboot' directory. This
moves related example code and Kconfig entries to their respective
project inside examples/mcuboot directory. It cleans all Kconfig
entries at 'boot/mcuboot', including Kconfig, Makefile and
README.md files.
This not perform any code modification.
Signed-off-by: Gerson Fernando Budke <gerson.budke@ossystems.com.br>
2022-03-19 16:09:44 +02:00
Gerson Fernando Budke
36cb168077
boot/mcuboot: Prepare to move MCUboot samples to examples dir
...
This adjusts code and Kconfig variables as preparation to move MCUboot
examples to examples/mcuboot folder.
This changes perfor below sed operations:
's/MCUBOOT_UPDATE_AGENT_EXAMPLE/EXAMPLES_MCUBOOT_UPDATE_AGENT/g'
's/MCUBOOT_SLOT_CONFIRM_EXAMPLE/EXAMPLES_MCUBOOT_SLOT_CONFIRM/g'
It replaces 'apps/boot/mcuboot' prefix by 'apps/examples/mcuboot' and
adjust it with respective application name on below source files:
boot/mcuboot/mcuboot_agent_main.c
boot/mcuboot/mcuboot_confirm_main.c
This commit does not other changes in the code.
Signed-off-by: Gerson Fernando Budke <gerson.budke@ossystems.com.br>
2022-03-19 16:09:44 +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
Petro Karashchenko
2d8798d260
graphics/nxwidgets/UnitTests: correct configuration option name in README.md
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2022-03-19 17:35:48 +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
Matheus C. França
2796187bdf
Update Application.mk
2022-03-16 19:59:08 +02: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
Petro Karashchenko
b207387d48
examples/timer: fix timer notification asignment
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2022-03-16 23:19:41 +08:00
anjiahao
7d10751037
nshlib/nsh_fscmds:use strchr instead of strstr
...
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2022-03-16 20:05:51 +08:00
anjiahao
eabba4ca20
cmd_mkdir:support mkdir opthon -p
...
use "mkdir -p /test/test" to ceate a dir
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2022-03-16 13:53:45 +08:00
Matheus Catarino França
cdb04f6172
Zig hello-example
...
rename example - fix
confusion-rename fixed
zigflags added
rm zigflag single-threaded
zig rules added
2022-03-16 12:18:01 +08:00
fanzhuyun
2dde296d4f
testing/fstest: add cleanup to fatutf8
...
Signed-off-by: fanzhuyun <fanzhuyun@xiaomi.com>
2022-03-15 18:38:52 +08:00
zhanghongyu
e0e41c5d7f
feature: wapi add encode parse when scan
...
Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2022-03-15 18:01:04 +08:00
zhanghongyu
5e22b6f564
fix: iperf can not exit when stop
...
Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2022-03-15 18:01:04 +08:00
zhanghongyu
f1d5d6e671
fix: ap socket can not accept twice
...
Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2022-03-15 18:01:04 +08:00
zhanghongyu
6c2a487f85
feature: pointer of netdev ioctl support cross-core access via clean dcache
...
Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2022-03-15 18:01:04 +08:00