xuxin19
a3bbea86ff
remove the check that progname matches mainsrc
...
Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
2023-10-10 01:02:50 +08:00
xuxin19
77a5666cb7
Revert "fix progname do not match issue"
...
This reverts commit c230321cae
.
2023-10-10 01:02:50 +08:00
Huang Qi
1e5e755ba2
examples: Split hello example into hello and hello_wasm
...
Decouple the hello example into hello and hello_wasm. The hello_wasm
example is a minimal example to show how to build a wasm application
by using the NuttX build system, and avoid disturbing the hello
(native build).
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2023-10-08 14:53:08 +08:00
Junbo Zheng
3177a9be84
crypto/mbedtls: fix kconfig typo
...
Signed-off-by: Junbo Zheng <zhengjunbo1@xiaomi.com>
2023-10-06 20:49:06 +08:00
Petteri Aimonen
5a992d4e18
Add basic IEEE-1588 PTP server/client
...
What works:
- Basic server & client operation
- Transmission and reception of announce, sync and follow-up
Still missing:
- SO_TIMINGS for getting more precise packet timestamps
- Implementation of delay_req and delay_resp packets
- Status and stop interfaces for the daemon
2023-10-06 17:25:23 +08:00
Petteri Aimonen
c340d735ec
adjtime: Fix wrong printf format when using CONFIG_SYSTEM_TIME64
2023-10-06 17:25:23 +08:00
ThomasNS
06b4911db4
add shm example using fs shm
2023-10-06 17:24:44 +08:00
raiden00pl
b88057fffd
examples/foc: support svm3 state with nxscope
2023-10-05 20:42:46 +08:00
raiden00pl
a56f0922c5
industrial/foc: add an interface that returns the modulation state
...
Useful for debugging and demonstrating FOC operation
2023-10-05 20:42:46 +08:00
raiden00pl
97e2be0033
logging/nxscope/nxscope.c: fix indentation
2023-10-05 20:42:46 +08:00
SPRESENSE
719d03a8c1
lte/alt1250: Change error code from ENOTSUP to EAFNOSUPPORT
...
ENOTSUP is now a special error code to fallback to the kernel network stack.
Therefore, change the error code from ENOTSUP to EAFNOSUPPORT.
2023-10-03 10:32:18 +02:00
raiden00pl
5cbd9b2b7b
examples/foc: allow nxscope transfer over RTT interface
...
For UART serial interface TERMIOS is required, but for RTT serial interface it's not.
2023-10-02 21:46:52 +03:00
raiden00pl
f505b6cb08
nxscope/serial: ignore baud configuration if set to 0
2023-10-02 21:46:52 +03:00
Eren Terzioglu
85eb37c62b
examples/can: TX and RX structs assigned 0 at startup
2023-09-28 19:14:21 +08:00
anjiahao
ddaa1411a3
system/zlib:fix makefile rule
...
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2023-09-28 08:50:55 +02:00
Xiang Xiao
2d6d199c49
Fix drivertest_watchdog.c:284:33: error: storage size of 'reset_cause' isn't known
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-09-26 00:45:16 +03:00
halyssonJr
02db9c7612
create app for wiegand protocol
...
update app for wiegand protocol
improve wiegand app
app improvement and fix Kconig
2023-09-25 16:21:40 -04:00
anjiahao
a48810f4a5
zlib:add support for zlib
...
We can use zip & unzip commands in nuttx
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2023-09-26 02:28:46 +08:00
Xiang Xiao
9e31a26edc
Fix nsh_altconsole.c:152:41: error: implicit declaration of function 'strlen'
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-09-26 00:31:09 +08:00
Xiang Xiao
610ba20527
Fix ./drivertest_rtc.c:43:10: fatal error: nuttx/time.h: No such file or director
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-09-25 23:03:00 +08:00
Ville Juven
e9f4e87786
nsh_alias.c: unalias -a command does not work correctly
...
getopt returns the argument if it is found, so testing against != ERROR is
wrong.
2023-09-25 21:05:37 +08:00
makejian
851a4aa904
crypto/mbedtls: load certificate memory optimization
...
Reducing the use of memory due to multiple network links loading certificates
Signed-off-by: makejian <makejian@xiaomi.com>
2023-09-25 14:49:39 +08:00
Xiang Xiao
483e6bae27
build: Remove staging folder in distclean
...
forgot in pr: https://github.com/apache/nuttx-apps/pull/1509
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-09-25 01:10:29 +03:00
Xiang Xiao
99a8c5937c
Fix drivertest_watchdog.c:207:30: error: 'struct wdg_state_s' has no member named 'infopath'
...
Remove the unsupported -p option
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-09-25 01:08:49 +03:00
yinshengkai
3e870833ab
testing: fix osperf running error in SMP mode
...
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2023-09-23 15:10:23 +08:00
yinshengkai
9d8a364e16
testing/osperf: fix qemu-armv8a compilation error
...
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2023-09-23 15:10:23 +08:00
likun17
009c9ad13f
apps/system/uorb/test/unit_test.c: add orb_copy return judgment.
...
Signed-off-by: likun17 <likun17@xiaomi.com>
2023-09-23 13:18:52 +08:00
hujun5
5c5c6653fd
libuv: fix build error
...
If UV_ONCE_INIT is a struct, the following errors will occur:
libuv/src/unix/nuttx.c: In function 'uv__global_get':
/home/hujun5/downloads1/vela_sim/apps/system/libuv/libuv/include/uv/unix.h:136:22: error: expected expression before '{' token
136 | #define UV_ONCE_INIT PTHREAD_ONCE_INIT
| ^~~~~~~~~~~~~~~~~
libuv/src/unix/nuttx.c:287:26: note: in expansion of macro 'UV_ONCE_INIT'
287 | global->once = UV_ONCE_INIT;
| ^~~~~~~~~~~~
/home/hujun5/downloads1/vela_sim/apps/system/libuv/libuv/include/uv/unix.h:136:22: error: expected expression before '{' token
136 | #define UV_ONCE_INIT PTHREAD_ONCE_INIT
| ^~~~~~~~~~~~~~~~~
libuv/src/unix/nuttx.c:288:50: note: in expansion of macro 'UV_ONCE_INIT'
288 | global->uv__signal_global_init_guard = UV_ONCE_INIT;
Signed-off-by: hujun5 <hujun5@xiaomi.com>
2023-09-23 13:18:27 +08:00
raiden00pl
1050d3028b
libsodium depends on ICS license
2023-09-22 20:42:18 +08:00
SPRESENSE
d6ed8880d8
lte/alt1250: Correspond to shutdown
...
ALT1250 daemon to support shutdown.
2023-09-22 16:25:09 +08:00
dulibo1
049aaa4c96
pmconfig: check domain if invaild return error avoid to crash
...
Signed-off-by: dulibo1 <dulibo1@xiaomi.com>
2023-09-22 09:16:54 +08:00
dulibo1
dd9290b6bd
pm:add pm runtime testcase
...
Signed-off-by: dulibo1 <dulibo1@xiaomi.com>
2023-09-22 09:16:24 +08:00
Daniel P. Carvalho
e62e1e91fe
Fixes compiler warnings while printing uint32_t and int32_t values.
2023-09-22 09:14:20 +08:00
zhangchao53
60778f6f8c
support xml report and generate tool
...
Signed-off-by: zhangchao53 <zhangchao53@xiaomi.com>
2023-09-21 12:14:12 +08:00
0528Mike
a46a661b34
Update nshlib/nsh_codeccmd.c
...
Co-authored-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2023-09-21 10:48:29 +08:00
wangmingrong
2459476b65
nshlib: Implementation of modifying command md5
...
Simplify the "cmd_codecs_proc" md5 related framework and modify the implementation of the command md5:
Signed-off-by: wangmingrong <wangmingrong@xiaomi.com>
2023-09-21 10:48:29 +08:00
daniellizewski
a4ab405faa
Fix typo in uint8_t
2023-09-21 10:45:17 +08:00
SPRESENSE
6a69f0e96f
wireless/gs2200m: Add support SIOCDENYINETSOCK ioctl command
...
Support SIOCDENYINETSOCK ioctl command to set usrsock status.
If usock_enable is false, its means application wants to create
a socket with other network stack.
2023-09-21 01:13:39 +08:00
Xiang Xiao
dbdba4c254
interpreters/duktape: Add -Wno-unused-but-set-variable to CLAGS
...
To fix error: variable 'num_stmts' set but not used [-Werror,-Wunused-but-set-variable]
duk_int_t num_stmts;
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-09-19 11:27:21 +08:00
Xiang Xiao
17692ffc5f
Revert "interpreters/duktape: Fix error: variable 'num_stmts' set but not used"
...
This reverts commit 801046cd78
.
2023-09-19 11:27:21 +08:00
guoshichao
68b3030f23
testing/ltp: add config.h file
...
this config.h using to control the test procedure of the relative
test cases. this config.h file is generated by ltp project internal
build file, as we are nuttx build system, so need to manage this file
by manual
Signed-off-by: guoshichao <guoshichao@xiaomi.com>
2023-09-19 11:13:44 +08:00
dependabot[bot]
bf44d4b1bb
build(deps): bump docker/login-action from 2 to 3
...
Bumps [docker/login-action](https://github.com/docker/login-action ) from 2 to 3.
- [Release notes](https://github.com/docker/login-action/releases )
- [Commits](https://github.com/docker/login-action/compare/v2...v3 )
---
updated-dependencies:
- dependency-name: docker/login-action
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-09-19 11:13:16 +08:00
Huang Qi
a22aeb00ed
tools: Lock wasm archive during ar rcs
...
Fix issues with multi thread compilation.
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2023-09-19 11:10:13 +08:00
makejian
ab7fd12e1d
mbedtls: use 'getrandom' to get system entropy
...
use getrandom to get system entropy and not dependent on config DEVURANDOM
Signed-off-by: makejian <makejian@xiaomi.com>
2023-09-19 00:41:24 +08:00
Huang Qi
08a4b76a2f
libuv: Upgrade to v1.46.0
...
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2023-09-18 12:40:13 +08:00
Xiang Xiao
801046cd78
interpreters/duktape: Fix error: variable 'num_stmts' set but not used
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-09-17 22:50:08 +03:00
Daniel Appiagyei
b37e84b05f
c++ compatibility: rename usages of reserved c++ keywords 'this' and 'public'
2023-09-16 19:45:52 +08:00
SPRESENSE
a9a8fbbc4a
lte/alt1250: Fix bug that name resolution failed for a long time
...
Fix bug that name resolution failed for a long time under particular cases.
If a DNS query for IPv6 succeeds and IPv4 fails, only the answer of the
IPv6 query is saved in the cache. If only IPv4 is given from LTE,
name resolution will fail while the answer is saved in the cache.
Therefore, the ALT1250 daemon sets the given IP type to the DNS client,
which can only send DNS queries for that IP type.
2023-09-16 18:09:29 +08:00
TaiJuWu
9f2f86441d
Fix sigprocmask
...
1. SIGSTOP and SIGKILL should not be used as test. In g_some_signals,
SIGKILL is used.
2. The SIGSTOP and SIGKILL flags of current task are set so we need to
delete them.
2023-09-16 00:08:34 +03:00
wangyingdong
2e5139eba4
dhcpd:Optimize the data area memory and reduce it by about 1k bytes
...
If a daemon app(e.ot_client) starts dhcpd by calling dhcpd_start and needs to shut it down after use,
then the global static variables ds_inpacket and ds_outpacket will always occupy the data area,
causing unnecessary waste.
Signed-off-by: wangyingdong <wangyingdong@xiaomi.com>
2023-09-13 21:49:49 +08:00