Commit Graph

7421 Commits

Author SHA1 Message Date
Huang Qi
c138651300 tools: New CMake based Wasm build system
Introduce a new CMake based build system for Wasm.
And target the Wasm ABI to wasm32-wasi, it should
be a more commnly used and standard ABI for Wasm.

Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2024-03-15 11:15:25 -03:00
Juha Niskanen
ec4d7a19f7 ostest: add test for libc memmem() function
Signed-off-by: Juha Niskanen <juha.niskanen@haltian.com>
2024-03-15 19:46:42 +08:00
zhangchao53
5519de826f fix compile error: list_initialize
Signed-off-by: zhangchao53 <zhangchao53@xiaomi.com>
2024-03-15 19:46:00 +08:00
xuxin19
38d30f9984 matter cmake:fix matter_generate_args_tmp_file call error
Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
2024-03-15 01:26:22 +08:00
chao an
69e497f681 testing/ostest/cancel: joining a detached/canceled thread should return EINVAL, not ESRCH
Reference:
https://pubs.opengroup.org/onlinepubs/009695399/functions/pthread_join.html
  [EINVAL]
    The value specified by thread does not refer to a joinable thread.

https://docs.oracle.com/cd/E19120-01/open.solaris/816-5137/tlib-25/index.html

  EINVAL
    The thread corresponding to the given thread ID is a detached thread.

https://linux.die.net/man/3/pthread_join

  EINVAL
    thread is not a joinable thread.

Signed-off-by: chao an <anchao@lixiang.com>
2024-03-13 18:06:36 +09:00
shizhenghui
a00ba19eb4 camera_example: modify initialize interface after v4l2 refactor
Signed-off-by: shizhenghui <shizhenghui@xiaomi.com>
2024-03-13 09:50:58 +08:00
Juha Niskanen
767642b4ea testing/getprime: allow running with zero threads
getprime can now run without creating any additional threads. This helps
testing pthreads and measuring performance of directly searching primes
from main thread versus creating one thread.

Also don't misuse ASSERT() for checking command-line input coming
from user.

Signed-off-by: Juha Niskanen <juha.niskanen@haltian.com>
2024-03-12 19:40:17 +08:00
vela-mib
fec49af501 add cm_fs_test source code
Signed-off-by: vela-mib <vela-mib@xiaomi.com>
2024-03-11 11:24:13 +08:00
yinshengkai
663b54e833 database: fix compile failure 2024-03-05 13:46:01 +08:00
yinshengkai
c8e0d7a02c database: add sqlite support
enable UTILS_SQLITE configuration, use the sqlite3 command line tool

Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2024-03-04 15:34:33 -03:00
Xiang Xiao
110fa8264d ci: Remove the codecheck from build.yml
the check isn't really enabled and enforce before
due to a mass of false alarm, but recently it break
ci frequently, so it's better to remove it now.

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2024-03-04 12:17:44 +08:00
Xiang Xiao
30b3744b4e Ignore all *.lock in apps folder
to fix the ci break reported by:
https://github.com/apache/nuttx/actions/runs/8124056482/job/22205151164?pr=11829

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2024-03-03 10:13:39 +01:00
Michał Łyszczek
d17f554355 examples/embedlog: update example for embedlog-v0.7.0
Signed-off-by: Michał Łyszczek <michal.lyszczek@bofc.pl>
2024-03-03 12:03:54 +08:00
Michał Łyszczek
e6047b296e logging/embedlog: update to version v0.7.0
Signed-off-by: Michał Łyszczek <michal.lyszczek@bofc.pl>
2024-03-03 12:03:54 +08:00
TimJTi
169beaeef7 Add Settings Utility and example app 2024-03-03 02:36:56 +08:00
Michał Łyszczek
8669861312 examples/hx711: add new program to test hx711 chip
Signed-off-by: Michał Łyszczek <michal.lyszczek@bofc.pl>
2024-03-02 12:34:39 +08:00
zhangchao53
7ad4a3dcb7 fix patch error:no such file
Signed-off-by: zhangchao53 <zhangchao53@xiaomi.com>
2024-03-01 17:06:01 +08:00
Takayoshi Koizumi
17539f1340 Fix illegal coding style on nxaudio.c
Make it as 2 lines
2024-02-28 15:30:26 +08:00
SPRESENSE
2b4a25c8d5 examples/fmsynth: Fix freaze when execute it in 2nd time
Fix a freaze BUG when the example is executed again after 1st execution.
2024-02-28 15:30:26 +08:00
Peter van der Perk
2d6f5f230e netinit: Add check mount path retry option for delayed mounts 2024-02-28 10:21:40 +08:00
Xiang Xiao
ea29af94c7 testing/fmemopen: Remove the back slash from long literal string
since the back slash is only needed for the long macro definition

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2024-02-26 17:39:29 -03:00
Tomáš Pilný
9776786e0c examples/dac: Add test mode
Implements simple function generating triangular pattern / saw tooth.
2024-02-26 17:38:51 -03:00
chenrun1
bac8aab243 cmd_cp:Skip mkdir when mkdir is not available
The behavior of mkdir is used during the cp -r process, and the mkdir behavior is skipped when mkdir is unavailable (this may cause unpredictable behavior of cp -r)

Signed-off-by: chenrun1 <chenrun1@xiaomi.com>
2024-02-25 21:59:57 -08:00
chenrun1
e8470f7d0e cp:support -r recursive copies
The cp command supports recursive copying. Use "cp -r" to copy a folder.

Signed-off-by: chenrun1 <chenrun1@xiaomi.com>
2024-02-25 21:59:57 -08:00
Junbo Zheng
9e71031a09 graphics/lvgl: remove unused code
Since it has beed used from https://github.com/apache/nuttx-apps/blob/master/graphics/lvgl/CMakeLists.txt#L72-L74

Signed-off-by: Junbo Zheng <zhengjunbo1@xiaomi.com>
2024-02-25 09:16:42 -08:00
Jorge Guzman
0cc42d6e45 sensor/lm75: fix C syntax error
Signed-off-by" Jorge Guzman jorge.gzm@gmail.com
2024-02-25 10:38:51 -05:00
chenrun1
bd1cc85ad4 dd:support "seek"
Now the dd command can use the "seek" parameter to adjust how many bytes need to be skipped before being written to the target.

Signed-off-by: chenrun1 <chenrun1@xiaomi.com>
2024-02-25 06:36:43 -08:00
Yanfeng Liu
31908b3128 nshlib/prompt: extend NSH prompt string management
Currently NSH prompt is defined at build time, thus improper for AMP cases
where the same NSH binary is used on different nodes as the same NSH prompt
shows on all nodes.

This patch attempts to support runtime prompt string population from ordered
sources:
  - the environment variable defined by NSH_PROMPT_ENV plus suffix
  - the NSH_PROMPT_STRING
  - the HOSTNAME plus suffix
The suffix is defined by NSH_PROMPT_SUFFIX so that to clearly separate the
command inputs.

Changes in `nshlib/`

- Kconfig:       add configs NSH_PROMPT_MAX/ENV/SUFFIX etc
- nsh.h:         adjust g_nshprompt defs, add nsh_update_prompt
- nsh_parse.c    relocate g_nshpromt to nsh_prompt.c
- nsh_init.c     revise to use nsh_update_prompt once
- nsh_session.c  revise to use methods in nsh_prompt.c
- Makefile       add nsh_prompt.c
- CMakeLists.txt add nsh_prompt.c

New additions in `nshlib/`

- nsh_prompt.c   prompt related data structures and methods.

Signed-off-by: Yanfeng Liu <yfliu2008@qq.com>
2024-02-25 00:55:47 -08:00
Alan Carvalho de Assis
f1137b3b55 apps: Make /dev/temp0 as default to system/lm75
The stm32 common logic board uses /dev/temp0 as
default, but system/lm75/lm75.c is trying to
open /dev/temp instead

Signed-off-by: Alan C Assis <acassis@gmail.com>
2024-02-23 19:21:40 -08:00
vela-mib
02d212e829 fix pthread_sigmask_4_1 sigprocmask_4_1 build warning
Signed-off-by: vela-mib <vela-mib@xiaomi.com>
2024-02-23 04:11:17 -08:00
Neo Xu
c1dfeae0b3 cmake: add lvgl cmake support
Signed-off-by: Neo Xu <neo.xu1990@gmail.com>
2024-02-22 21:22:41 -08:00
Zhe Weng
9236d9a2f4 apps/tcpdump: Support capture RAW IP interfaces like TUN
Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
2024-02-22 21:22:00 -08:00
vela-mib
be74e34ede add mm/sched and open posix on CI
Signed-off-by: vela-mib <vela-mib@xiaomi.com>
2024-02-22 06:55:01 -08:00
YAMAMOTO Takashi
60cd8ff592 toywasm: regen
```
REF=4ccb44f9f6477412c289f7ffad6a0f660e99d5a5 ./regen.sh
```
2024-02-21 18:39:06 -08:00
YAMAMOTO Takashi
e3205459af toywasm: update to v41 2024-02-21 18:39:06 -08:00
Yanfeng Liu
b32abfab39 build/ci: fix CI blocking unused variables/functions issues
This patch attempts to fix the blocking issues encountered with build
6374 of apps/pull/2300.

Signed-off-by: Yanfeng Liu <yfliu2008@qq.com>
2024-02-21 18:38:53 -08:00
Yanfeng Liu
3dd35cb549 nshlib/syscmds: guard help mesg for rpmsg ping
This patch guards help message for ping sub-command so that it only
shows when the sub-command is enabled.

Signed-off-by: Yanfeng Liu <yfliu2008@qq.com>
2024-02-21 05:31:45 -08:00
rongyichang
1e9daf0200 apps/graphics: add lcddev_obj initialization to fix crash in lcd_dev mode.
Reference: https://github.com/apache/nuttx/issues/11683

Signed-off-by: rongyichang <rongyichang@xiaomi.com>
2024-02-20 21:55:39 -08:00
Jorge Guzman
90ea9821df modbus_master: fix cmake build warning
Signed-off-by: Jorge Guzman <jorge.gzm@gmail.com>
2024-02-20 08:58:30 -08:00
simbit18
faa8f6666f tools/ci: add initial support for MSYS2
build.yml  -> add msys2 job
2024-02-19 08:32:54 -08:00
wangyongrong
25e8c1c9c4 cmd rptun: Strip rpmsg ioctl and rptun ioctl.
cmd_rptun handles RPTUNIOC_START, RPTUNIOC_STOP, RPTUNIOC_RESET,
cmd_rpmsg handles the public ioctl commands part.

Signed-off-by: wangyongrong <wangyongrong@xiaomi.com>
2024-02-19 05:59:34 -08:00
chao an
05ffbabca7 nsh/uname: improve compatibility for non-GNU compilers
The alloca() function is machine- and compiler-dependent.  For certain
applications, its use can improve efficiency compared to the use of
malloc(3) plus free(3).  In certain cases, it can also simplify memory
deallocation in applications that use longjmp(3) or siglongjmp(3).
Otherwise, its use is discouraged.

Signed-off-by: chao an <anchao@lixiang.com>
2024-02-19 03:49:22 -08:00
raiden00pl
1cb991cce7 i8sak: add support for tracedump command
used to dump trace log from radio
2024-02-18 04:10:48 -08:00
Jorge Guzman
49204e1389 modbus_master: fix modbus master example 2024-02-17 05:01:18 -08:00
zhangchao53
f9f63dc8e1 add cmocka tools and fix __WORDSIZE not defined warning 2024-02-15 04:56:13 -08:00
Abhishek Akkabathula
da9903fe57 elf/tests/helloxx: fix build break with elf cpp exceptions example
fix the below build error by correcting the typo (tring -> string)

hello++5.cxx: In member function 'virtual void CThingSayer::ThrowMyThing(const char*)':
hello++5.cxx:157:21: error: 'tring' was not declared in this scope
  157 |   throw MyException(tring(czSayThis));
      |                     ^~~~~

Signed-off-by: Abhishek Akkabathula <a.akkabathul@samsung.com>
2024-02-15 08:31:51 +01:00
SPRESENSE
90c9364b3b lte/alt1250: Force change modem parameter
In some conditions, LTE connection has issue.
To fix it, need to change a modem parameter.
2024-02-15 08:14:10 +01:00
Tiago Medicci Serrano
9fd1251dcb examples/rmtchar: Increase initial duration time
With higher RMT source clocks, small durations are hard to be
detected. Increasing it makes it easier to enable automated tests.
2024-02-14 10:53:40 -05:00
SPRESENSE
3650251c5e lte/alt1250: Fix bug that caused stack when executing the socket API
Fix a bug that caused the application to get stuck when executing
the socket API after waking up from hibernation and before executing
lte_hibernation_resume().
2024-02-09 14:52:05 +02:00
SPRESENSE
2ac0adf37d lte/alt1250: Correspond to ALT1250_EVTBIT_RESTARTAPI event
If the ALT1250_EVTBIT_RESTARTAPI event is received,
the ALT1250 daemon changes its state to handle LAPI normally.
2024-02-08 23:52:47 +02:00