dulibo1
e0989d950f
pmconfig:fix coverity scan issue which is unsigned_compare
...
Signed-off-by: dulibo1 <dulibo1@xiaomi.com>
2024-10-25 16:13:30 +02:00
dulibo1
7893712622
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-10-25 16:13:30 +02:00
dulibo1
893ac88f97
batterydump:move to system dir
...
Signed-off-by: dulibo1 <dulibo1@xiaomi.com>
2024-10-25 16:13:30 +02:00
dulibo1
8e938957c2
gpio:add example for wakeup gpio type
...
Signed-off-by: dulibo1 <dulibo1@xiaomi.com>
2024-10-25 16:13:30 +02:00
dulibo1
734baae5a2
test case update follow the regualtor framework
...
Signed-off-by: dulibo1 <dulibo1@xiaomi.com>
2024-10-25 16:13:30 +02:00
Bowen Wang
bbba2448cd
nsh_syscmds/rpmsg: include <nuttx/rpmsg/rpmsg.h> to fix compile error
...
nsh_syscmds.c: In function ‘cmd_rpmsg_once’:
nsh_syscmds.c:567:13: error: ‘RPMSGIOC_PANIC’ undeclared (first use in this function)
567 | cmd = RPMSGIOC_PANIC;
| ^~~~~~~~~~~~~~
nsh_syscmds.c:567:13: note: each undeclared identifier is reported only once for each function it appears in
nsh_syscmds.c:571:13: error: ‘RPMSGIOC_DUMP’ undeclared (first use in this function); did you mean ‘FIOC_DUMP’?
571 | cmd = RPMSGIOC_DUMP;
Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
2024-10-25 16:13:30 +02:00
Yongrong Wang
82fb1a4511
nsh_syscmds.c: upadate rpmsg ping help
...
1. struct rpmsg_ping_s ack change to cmd;
2. Update the help descrption based on the new cmd
meaning;
Signed-off-by: Yongrong Wang <wangyongrong@xiaomi.com>
Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
2024-10-25 16:13:30 +02:00
wangmingrong1
9aedfdd4f7
gcov.c: deal compile warming
...
gcov.c:61:6: warning: 'path' may be used uninitialized [-Wmaybe-uninitialized]
61 | if (path == NULL || access(path, F_OK) != 0 || atoi(strip) <= 0)
| ^
gcov.c: In function 'gcov_main':
gcov.c:79:19: note: 'path' was declared here
79 | FAR const char *path;
Signed-off-by: wangmingrong1 <wangmingrong1@xiaomi.com>
2024-10-25 16:13:30 +02:00
yinshengkai
2b11886c9a
system: adjust gcov configuration name
...
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2024-10-25 16:13:30 +02:00
yinshengkai
833b36cddc
system/gcov: supports generating device-side code coverage
...
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2024-10-25 16:13:30 +02:00
Neo Xu
0ed4ca1767
noteprintf: fix compile warnings
...
noteprintf_main.c:52:7: warning: unused variable 'binary' [-Wunused-variable]
52 | } binary =
Fix typo of sched.
Signed-off-by: Neo Xu <neo.xu1990@gmail.com>
2024-10-25 16:13:30 +02:00
yinshengkai
a7011eb6f6
examples: fix noteprint compile error
...
The sched_note_string/bprintf/dump interfaces have been removed and replaced with printf and event
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2024-10-25 16:13:30 +02:00
Alin Jerpelea
42f2b444a2
Revert "lvgl: upgrade to release/v9.2.1"
...
This reverts commit 57dd7fd03f
.
2024-10-10 17:58:45 +08:00
Windrow14
aed7d2b8a9
fsutils/mkmbr/mkmbr.c: fix null pointer access when not all device space is defined in mbr
...
argv[argn] is accessed out of range when there are neither four partitions are specified nor the last partition is of auto size.
Add a number of partition variable based on input argument number.
Signed-off-by: Yinzhe Wu <Yinzhe.Wu@sony.com>
Reviewed-by: Yuezhang Mo <Yuezhang.Mo@sony.com>
Reviewed-by: Jacky Cao <Jacky.Cao@sony.com>
Tested-by: Yinzhe Wu <Yinzhe.Wu@sony.com>
2024-10-10 16:47:04 +08:00
Neo Xu
57dd7fd03f
lvgl: upgrade to release/v9.2.1
...
Signed-off-by: Neo Xu <neo.xu1990@gmail.com>
2024-10-09 22:50:56 +08:00
Alin Jerpelea
656d335e05
canutils/libobd2: replace field ch_unused with ch_tcf
...
https://github.com/apache/nuttx-apps/pull/2635
replaced ch_unused with ch_tcf
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2024-10-09 22:50:40 +08:00
xucheng5
f2d3423f3b
example/can: replace field ch_unused with ch_tcf
...
Signed-off-by: zhaohaiyang1 <zhaohaiyang1@xiaomi.com>
2024-10-09 22:50:29 +08:00
dongjiuzhu1
de7bbc1b25
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-09 22:50:13 +08:00
dongjiuzhu1
84e7a1d409
system/uORB: return subscibe latency/interval
...
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2024-10-09 22:50:13 +08:00
dongjiuzhu1
9d7e023e65
system/uorb: add O_DIRECT to access sensor as wachers
...
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2024-10-09 22:50:13 +08:00
dongjiuzhu1
2ae831f40d
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-09 22:50:13 +08:00
dongjiuzhu1
f0db02740b
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-09 22:50:13 +08:00
dongjiuzhu1
2933182cf6
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-09 22:50:13 +08:00
dongjiuzhu1
83fc4e2aba
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-09 22:50:13 +08:00
dongjiuzhu1
d076b9815e
system/uorb: support build in aosp
...
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2024-10-09 22:50:13 +08:00
dongjiuzhu1
fe5acd6570
apps/uorb: change nuttx/list to posix queue
...
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2024-10-09 22:50:13 +08:00
likun17
729e1cad6e
uorb:Added 6dof motion and gesture related types. For details,see: https://developer.android.com/reference/android/hardware/SensorEvent#values
...
Signed-off-by: likun17 <likun17@xiaomi.com>
2024-10-09 20:17:29 +08:00
likun17
9ca75e2977
uORB: Add topic information acquisition and setting interface.
...
Signed-off-by: likun17 <likun17@xiaomi.com>
2024-10-09 20:17:29 +08:00
Xiang Xiao
f86baa76fc
net: Remove IFF_DOWN flag to compatible with Linux/*BSD
...
turn off interface by checking IFF_UP flag isn't set:
https://github.com/apache/nuttx/issues/1838
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2024-10-09 18:19:23 +08:00
likun17
ac11e3cba9
Adapt the new header file path of va_format.
...
Signed-off-by: likun17 <likun17@xiaomi.com>
2024-09-23 14:54:06 +08:00
xuxin19
b4d794cbd5
Makefile:complete missing DEPPATH
...
Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
2024-09-23 08:41:29 +08:00
Michal Lenc
f81a094283
nshlib: add support for pkill command
...
This command looks through the currently running processes and kills
the those that match the selection criteria. This way system can send
signal to processes by name and without knowing the IDs.
Example (kill application hello):
pkill -15 hello
The command can be turned off by NSH_DISABLE_PKILL option and depends
on FS_PROCFS.
Signed-off-by: Michal Lenc <michallenc@seznam.cz>
2024-09-23 08:40:54 +08:00
wanggang26
767c8ea6ce
uorb: enable O_CLOEXEC explicit
...
to avoid potential fd leak which means fork/vfork will duplicate fd
without O_CLOEXEC flag to the child process.
Signed-off-by: wanggang26 <wanggang26@xiaomi.com>
2024-09-23 08:34:38 +08:00
wanggang26
bae15dfd58
nshlib: enable O_CLOEXEC explicit to avoid potential fd leak
...
leaking here means fork/vfork will duplicate fd without O_CLOEXEC flag
to the child process.
Signed-off-by: wanggang26 <wanggang26@xiaomi.com>
2024-09-23 08:34:16 +08:00
raiden00pl
f27e755ad7
github/workflows: add PR size labeler
...
add workflow that assigns labels based on the PR's size
2024-09-23 08:33:33 +08:00
wanggang26
864371cc10
nshlib:enable O_CLOEXEC expliciti to avoid potential fd leak
...
leaking here means fork/vfork will duplicate fd without O_CLOEXEC flag
to the child process.
Signed-off-by: wanggang26 <wanggang26@xiaomi.com>
2024-09-22 01:44:06 +08:00
likun17
3144c14947
listener.c: Support data saving to csv file.
...
Signed-off-by: likun17 <likun17@xiaomi.com>
2024-09-21 23:07:33 +08:00
likun17
b428af2cad
uORB: Add formatted string ("o_format") parameters and remove callback log ("cb") printing.
...
Signed-off-by: likun17 <likun17@xiaomi.com>
2024-09-21 23:07:33 +08:00
likun17
296a6b3cac
gas.c:Adapt to uORB new macro definition content.
...
Signed-off-by: likun17 <likun17@xiaomi.com>
2024-09-21 10:55:24 +08:00
Alan Carvalho de Assis
21f5bc9b70
testing/ramtest: Fix not updated CMake file
...
This issue was preventing ramtest to be displayed into
nsh (this is why all modifications need to be tested!!
"should work" doesn't work).
This is was discovered by user @nonpawite
Signed-off-by: Alan C. Assis <acassis@gmail.com>
2024-09-20 10:55:06 +08:00
wangjianyu3
b1c4e39205
examples/gps: Add default case for switch-warning of vendor extended sentence
...
Vendor may add extended sentence may not handled in switch, error if -Werror=switch enabled.
And extended sentence should not added to general examples.
Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
2024-09-19 22:11:39 +08:00
dongjiuzhu1
abdcb33f14
uORB/uORB; using array to save path for sensor_reginfo_s
...
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2024-09-19 11:45:49 +08:00
makejian
9a1a8d3ca3
mbedtls/psa: provides PSA method for using hardware random driver
...
Signed-off-by: makejian <makejian@xiaomi.com>
2024-09-19 08:36:46 +08:00
makejian
96b220659d
apps/mbedtls-alt: support cmac
...
Signed-off-by: makejian <makejian@xiaomi.com>
2024-09-19 08:36:46 +08:00
xuxin19
d3942fa1b0
module build:replace BUILD_LOADABLE with MODULES
...
Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
2024-09-19 08:32:26 +08:00
wangjianyu3
d1fc46d978
tools/mksymtab.sh: Support symbol name overriding
...
The lines start with "," make no effects(as comments)
e.g.
$ cat exports.txt | grep atan2
atan2Override,atan2
$ /PATH/TO/APPS/tools/mksymtab.sh FOO BAR exports.txt | grep atan2
extern void *atan2Override;
{"atan2", &atan2Override},
Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
2024-09-19 03:46:46 +08:00
wangjianyu3
7f7ff8c7d4
tools/mksymtab.sh: Support adding additional symbols that are not in undefined list
...
e.g. For CHRE dynamic nanoapps, pre-saving symbols that may be used later, no need recompiling.
Test: (unique & sorted)
$ nm ./hello_world.o | grep " U "
U __aeabi_unwind_cpp_pr1
U chreGetTime
U chreGetVersion
U chreLog
U __stack_chk_fail
U __stack_chk_guard
$ cat additional.txt -n
1 test_symbol
2 test_symbol
$ /PATH/TO/APPS/tools/mksymtab.sh ./hello_world.o MY_PREFIX -a additional.txt
#include <nuttx/compiler.h>
#include <nuttx/symtab.h>
extern void *__aeabi_unwind_cpp_pr1;
extern void *__stack_chk_fail;
extern void *__stack_chk_guard;
extern void *chreGetTime;
extern void *chreGetVersion;
extern void *chreLog;
extern void *test_symbol;
const struct symtab_s MY_PREFIX_exports[] =
{
{"__aeabi_unwind_cpp_pr1", &__aeabi_unwind_cpp_pr1},
{"__stack_chk_fail", &__stack_chk_fail},
{"__stack_chk_guard", &__stack_chk_guard},
{"chreGetTime", &chreGetTime},
{"chreGetVersion", &chreGetVersion},
{"chreLog", &chreLog},
{"test_symbol", &test_symbol},
};
const int MY_PREFIX_nexports = sizeof(MY_PREFIX_exports) / sizeof(struct symtab_s);
Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
2024-09-19 03:46:46 +08:00
wangjianyu3
da83fa8ab2
tools/mksymtab.sh: Check sed expression
...
sed: -e expression #1 , char 0: no previous regular expression
Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
2024-09-19 03:46:46 +08:00
anjiahao
ddaec5f188
apps/tools/mksymtab.sh:When generating symbols, exclude symbols that dynamic modules in bin/ call each other.
...
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2024-09-19 03:46:46 +08:00
pengyiqiang
c0d8a07042
lvgl/Makefile: support multiple options for LV_OPTLEVEL
...
This configuration is added to put LVGL into PSRAM for execution, and the lv_*.o file needs to be matched in the link script. Since LTO optimization will cause the file name to be modified, resulting in a matching failure, it will only take effect if LTO optimization is removed during compilation.
Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com>
2024-09-19 03:46:34 +08:00