wanggang26
d5d8e9eacb
fix build error:
...
[linguini@pastabox nuttx]$ make -j
CC: tcpblaster_server.c
LN: platform/board to
/home/linguini/cuinspace/pico-nuttx/apps/platform/dummy
tcpblaster_server.c: In function ‘tcpblaster_server’:
tcpblaster_server.c:159:14: error: implicit declaration of function
‘accept4’; did you mean ‘accept’? [-Wimplicit-function-declaration]
159 | acceptsd = accept4(listensd, (FAR struct sockaddr *)&myaddr,
&addrlen,
| ^~~~~~~
| accept
make[3]: *** [Makefile:92: tcpblaster_server.hobj] Error 1
make[2]: *** [Makefile:53:
/home/linguini/cuinspace/pico-nuttx/apps/examples/tcpblaster_context]
Error 2
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [Makefile:180: context] Error 2
make: *** [tools/Unix.mk:457:
/home/linguini/cuinspace/pico-nuttx/apps/.context] Error 2
make: *** Waiting for unfinished jobs....
from https://github.com/apache/nuttx-apps/issues/2632
Signed-off-by: wanggang26 <wanggang26@xiaomi.com>
2024-10-05 09:06:43 +08:00
Petro Karashchenko
86f367132a
netutils/ptpd: add missing FAR
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2024-10-04 08:17:51 +08:00
Petro Karashchenko
66b79a7c89
style: fix indentation issues
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2024-10-04 08:17:51 +08:00
xucheng5
76d419ca45
example/can: replace field ch_unused with ch_tcf
...
Signed-off-by: zhaohaiyang1 <zhaohaiyang1@xiaomi.com>
2024-10-02 21:22:14 +08:00
anjiahao
c916f163f2
nsh:support wait command to wait task exit.
...
usage like:
nsh> sleep 10 &
[5:100]
nsh>set pid1=$!
nsh>sleep 15 &
[6:100]
nsh>set pid2=$!
nsh>wait $pid1 $pid2
'wait' command will block nsh from running until pid1 and pid2 finish.
This is useful for parallel requirements to perform certain tasks
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2024-10-02 21:13:54 +08:00
W-M-R
8d1966e9fc
kasantest: Fix compilation warning
...
signed-off-by: W-M-R <Mike_0528@163.com>
2024-10-02 21:10:22 +08:00
wangmingrong1
94a6f1837a
kasantest: add CMakeLists.txt
...
Signed-off-by: wangmingrong1 <wangmingrong1@xiaomi.com>
2024-10-02 21:10:22 +08:00
wangmingrong1
1fb3687eaa
kasantest.c: fix the size passed by mm_initialize is incorrect
...
Signed-off-by: wangmingrong1 <wangmingrong1@xiaomi.com>
2024-10-02 21:10:22 +08:00
raiden00pl
8fc7004f5b
github: sync labels with nuttx repo
...
sync github lables with main NuttX repo
2024-10-02 20:55:54 +08:00
Petro Karashchenko
4f09da79cf
system/uniqueid: remove FAR from int variables
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2024-10-02 10:40:05 +02:00
Petro Karashchenko
1dabdfa0ba
lte: add missing FAR
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2024-10-02 10:40:05 +02:00
Petro Karashchenko
161c996079
apps: use sizeof array in snprintf
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2024-10-02 10:40:05 +02:00
dongjiuzhu1
6c88a1ad76
examples/elf/sotest: enable and run them simultaneously
...
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2024-10-02 01:53:14 +08:00
dongjiuzhu1
15c90ac17e
examples/sotest/elf: rename romfs_img to run test with CONFIG_NSH_ROMFSETC
...
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2024-10-02 01:53:14 +08:00
dongjiuzhu1
fdc35d0bad
examples/elf: remove unnecessary config CONFIG_EXAMPLES_ELF_DEVPATH
...
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2024-10-02 01:53:14 +08:00
dongjiuzhu1
a5516121e2
uorb/flush: support flush operation
...
After you call orb_flush(), you can determine whether the
flush is completed by listening to the POLLPRI event
of fd and getting the event in orb_get_events.
After calling orb_get_events, the flush events will be cleared.
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2024-10-02 01:48:47 +08:00
dongjiuzhu1
b0b4ac0f39
system/uORB: return subscibe latency/interval
...
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2024-10-02 01:48:47 +08:00
dongjiuzhu1
6c237cfbc0
system/uorb: add O_DIRECT to access sensor as wachers
...
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2024-10-02 01:48:47 +08:00
dongjiuzhu1
925efc2314
system/uORB: using lib_sprintf to output va_format and printf normal info in aosp adb shell
...
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2024-10-02 01:48:47 +08:00
dongjiuzhu1
aa5a38399a
system/uorb: fix compile warning
...
1. add string.h becuase strlen in uORB.c
2. add inttypes.h becuase PRIu64/... in sensor/*.c
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2024-10-02 01:48:47 +08:00
dongjiuzhu1
686bab3160
system/uorb: fix compile warning
...
apps/system/uorb/listener.c:543:38:
warning: unused parameter 'file' [-Wunused-parameter]
FAR FILE *file)
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2024-10-02 01:48:47 +08:00
dongjiuzhu1
5732c76f39
system/uorb: fix memory leak report by coverity
...
nsh> uorb_unit_test
uORB note: try single-topic support
uORB note: PASS single-topic test
uORB note: PASS orb 10-instances
uORB note: try multi-topic support
uORB note: ---------------- LATENCY TEST ------------------
mean: 0 us
std dev: 0 us
min: 0 us
max: 0 us
missed topic updates: 0
uORB note: PASS multi-topic test
uORB note: try multi-topic support subscribing before publishing
uORB note: PASS multi-topic reversed
uORB note: Testing unadvertise
uORB note: Testing multi-topic 2 test (queue simulation)
uORB note: PASS multi-topic 2 test (queue simulation)
uORB note: Testing orb queuing
uORB note: Testing to write some elements...
uORB note: Testing overflow...
uORB note: Testing underflow...
uORB note: PASS orb queuing
uORB note: Testing orb queuing (poll & notify)
PASS
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2024-10-02 01:48:47 +08:00
dongjiuzhu1
5b729162ad
system/uorb: support build in aosp
...
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2024-10-02 01:48:47 +08:00
dongjiuzhu1
44239f11ff
apps/uorb: change nuttx/list to posix queue
...
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2024-10-02 01:48:47 +08:00
yangguangcai
302c1f9dca
drivertest_watchdog:change busyloop after capture.
...
busyloop should be after sem_init and WDIOC_CAPTURE.
Signed-off-by: yangguangcai <yangguangcai@xiaomi.com>
2024-10-01 21:55:02 +08:00
yangguangcai
19a63bdc19
watchdog: change usleep to up_udelay.
...
change uleep to up_udelay prevent system into lower
power mode and watchdog be pause stop count.
Signed-off-by: yangguangcai <yangguangcai@xiaomi.com>
2024-10-01 21:55:02 +08:00
yangguangcai
6358b481fb
test/watchdog:add test case for capture.
...
Signed-off-by: yangguangcai <yangguangcai@xiaomi.com>
2024-10-01 21:55:02 +08:00
yangguangcai
5d9d27d505
drivertest:fix compile error.
...
arm-none-eabi-ld: /home/ygc/ssd/vela_n62_4.0/nuttx/staging/libapps.a(drivertest_watchdog.c.home.ygc.ssd.vela_n62_4.0.apps.testing.drivertest.o): in function `cmocka_driver_watchdog_main':
/home/ygc/ssd/vela_n62_4.0/apps/testing/drivertest/drivertest_watchdog.c:480: multiple definition of `cmocka_driver_watchdog_main'; /home/ygc/ssd/vela_n62_4.0/nuttx/staging/libapps.a(drivertest_watchdog.c.home.ygc.ssd.vela_n62_4.0.apps.testing.drivertest.o):/home/ygc/ssd/vela_n62_4.0/apps/testing/drivertest/drivertest_watchdog.c:480: first defined here
Signed-off-by: yangguangcai <yangguangcai@xiaomi.com>
2024-10-01 21:55:02 +08:00
yangguangcai
d02596835f
drivertest/watchdog:add parameter to avoid testing api getstatus.
...
some vendor hardware not support get watchdog status.
Signed-off-by: yangguangcai <yangguangcai@xiaomi.com>
2024-10-01 21:55:02 +08:00
xuxingliang
3eb2124ca9
system/dhcpc: fix cmake program name
...
Signed-off-by: xuxingliang <xuxingliang@xiaomi.com>
2024-10-01 21:50:08 +08:00
xuxingliang
8e6b13489f
system/fdt: add cmake support
...
Signed-off-by: xuxingliang <xuxingliang@xiaomi.com>
2024-10-01 21:50:08 +08:00
xuxingliang
9cc9a830eb
ostest/smpcall: add smp call from interrupt test
...
Signed-off-by: xuxingliang <xuxingliang@xiaomi.com>
2024-10-01 12:27:25 +08:00
ouyangxiangzhen
34e70e7f0c
testing/ostest: Fix timing assertions in wdog_test
...
This patch removed timing assertions in wdog_test.
Signed-off-by: ouyangxiangzhen <ouyangxiangzhen@xiaomi.com>
2024-10-01 11:39:49 +08:00
ouyangxiangzhen
3d6785bcaf
testing/ostest: Fix busyloop on tee platform
...
This patch fixed busyloop on tee platform.
Signed-off-by: ouyangxiangzhen <ouyangxiangzhen@xiaomi.com>
2024-10-01 11:39:49 +08:00
ouyangxiangzhen
b01765c57d
testing/ostest: Add recursive watchdog callback testcase
...
This patch added wdog recursive test cases.
Signed-off-by: ouyangxiangzhen <ouyangxiangzhen@xiaomi.com>
Signed-off-by: ligd <liguiding1@xiaomi.com>
2024-10-01 11:39:49 +08:00
zhangyuan29
54a8915f29
ostest: test wdog only in flat mode
...
Signed-off-by: zhangyuan29 <zhangyuan29@xiaomi.com>
2024-10-01 11:39:49 +08:00
cuiziwei
e13d37f4d0
ostest:Ignore runtime error.
...
wdog.c:190:3: runtime error: signed integer overflow: 9223372036854775807 + 1 cannot be represented in type 'long int'
#0 0x40e35d3a in wdog_test_run /home/cuiziwei/ska/vela/vela-dev2/apps/testing/ostest/wdog.c:190
#1 0x40e35e75 in wdog_test_thread /home/cuiziwei/ska/vela/vela-dev2/apps/testing/ostest/wdog.c:207
#2 0x40773ffa in pthread_startup pthread/pthread_create.c:59
#3 0x4495e037 in pthread_start pthread/pthread_create.c:139
#4 0x40301864 in pre_start sim/sim_initialstate.c:52
Signed-off-by: cuiziwei <cuiziwei@xiaomi.com>
2024-10-01 11:39:49 +08:00
ouyangxiangzhen
cc13d4b742
ostest/wdog: Fix Coverity problems
...
This patch is to make Coverity happy.
Signed-off-by: ouyangxiangzhen <ouyangxiangzhen@xiaomi.com>
2024-10-01 11:39:49 +08:00
ouyangxiangzhen
8c22bb267b
testing/ostest: Add wdog_test to ostest
...
This patch introduces wdog_test, which is used to ensure the functional correctness of the wdog module.
Signed-off-by: ouyangxiangzhen <ouyangxiangzhen@xiaomi.com>
2024-10-01 11:39:49 +08:00
Kevin Zhou
23bf7fb449
usbserial: Add config for customize direction, message and wait time
2024-10-01 11:37:45 +08:00
dulibo1
b20f023ab7
pmconfig:fix coverity scan issue which is unsigned_compare
...
Signed-off-by: dulibo1 <dulibo1@xiaomi.com>
2024-09-30 18:31:03 +08:00
dulibo1
23dd23373d
drivertest:add include file depended by cmocka
...
from the cmocka.h:
* These headers or their equivalents MUST be included prior to including
* this header file.
* @code
* #include <stdarg.h>
* #include <stddef.h>
* #include <stdint.h>
* #include <setjmp.h>
* @endcode
Signed-off-by: dulibo1 <dulibo1@xiaomi.com>
Signed-off-by: buxiasen <buxiasen@xiaomi.com>
2024-09-30 18:31:03 +08:00
dulibo1
b295d5de91
batterydump:move to system dir
...
Signed-off-by: dulibo1 <dulibo1@xiaomi.com>
2024-09-30 18:31:03 +08:00
dulibo1
46768fc85d
gpio:add example for wakeup gpio type
...
Signed-off-by: dulibo1 <dulibo1@xiaomi.com>
2024-09-30 18:31:03 +08:00
dulibo1
cd9d8bbfa9
test case update follow the regualtor framework
...
Signed-off-by: dulibo1 <dulibo1@xiaomi.com>
2024-09-30 18:31:03 +08:00
xuxingliang
cb812cb2da
luasyslog: add cmake support
...
nsh>
nsh> lua
Lua 5.4.0 Copyright (C) 1994-2020 Lua.org, PUC-Rio
> for k,v in pairs(lsyslog)
>> do
>> print(k,v)
>> end
open function: 0x402d49c0
FACILITY_LOCAL4 0.0
FACILITY_AUTH 0.0
_COPYRIGHT Copyright (C) 1994-2021 Nicolas Casalini (DarkGod)
FACILITY_DAEMON 0.0
FACILITY_LOCAL1 0.0
LOG_WARNING 4.0
close function: 0x402d4990
FACILITY_AUTHPRIV 0.0
LOG_ALERT 1.0
_DESCRIPTION LuaSyslog allows to use log to an unix Syslog daemon, direct or via LuaLogging
FACILITY_CRON 0.0
FACILITY_FTP 0.0
LOG_DEBUG 7.0
FACILITY_LOCAL0 0.0
LOG_NOTICE 5.0
FACILITY_LOCAL5 0.0
LOG_EMERG 0.0
FACILITY_LPR 0.0
_VERSION LuaSyslog 2.0.1
FACILITY_LOCAL7 0.0
FACILITY_KERN 0.0
log function: 0x402d4944
FACILITY_LOCAL2 0.0
LOG_INFO 6.0
FACILITY_NEWS 0.0
FACILITY_LOCAL6 0.0
FACILITY_SYSLOG 0.0
FACILITY_USER 0.0
FACILITY_LOCAL3 0.0
FACILITY_UUCP 0.0
LOG_ERR 3.0
FACILITY_MAIL 0.0
LOG_CRIT 2.0
> lsyslog.log(lsyslog.LOG_EMERG, "Hello")
Hello
>
Signed-off-by: xuxingliang <xuxingliang@xiaomi.com>
2024-09-30 15:27:03 +08:00
makejian
e42de5d36d
mbedtls-alt/bignum: add bignum alternative implementation via /dev/mpi
...
Signed-off-by: makejian <makejian@xiaomi.com>
2024-09-30 15:26:42 +08:00
makejian
194269dbb8
mbedtls-alt/poly1305-alt: add poly1305 alternative implementation
...
Signed-off-by: makejian <makejian@xiaomi.com>
2024-09-30 15:26:42 +08:00
makejian
83d3256f91
mbedtls-alt/ripemd160: add ripemd160 alternative implementation
...
Signed-off-by: makejian <makejian@xiaomi.com>
2024-09-30 15:26:42 +08:00
makejian
4fc6e7ca0c
mbedtls-alt/aes-alt: Illegal parameter detection for aes related functions
...
(1)aes-xts sets the key length to only 256 and 512 bits
(2)when the key length of aes-xts is 512 bits, MAX_KEY_SIZE needs to be expanded to 64 bytes.
(3)check invalid input length and mode
Signed-off-by: makejian <makejian@xiaomi.com>
2024-09-30 15:26:42 +08:00