Commit Graph

6685 Commits

Author SHA1 Message Date
TimJTi
9d1a70af86 Add example app for LP503x LED driver
Update examples/lp503x/lp503x_main.c

Move struct lp503x_cmd_s to private types section

Update examples/lp503x/lp503x_main.c

Update examples/lp503x/lp503x_main.c

Update examples/lp503x/lp503x_main.c

Update examples/lp503x/lp503x_main.c

Update examples/lp503x/lp503x_main.c

Update examples/lp503x/lp503x_main.c

Update examples/lp503x/lp503x_main.c

Update examples/lp503x/lp503x_main.c

Update examples/lp503x/lp503x_main.c

Update examples/lp503x/lp503x_main.c

Update examples/lp503x/lp503x_main.c

Update examples/lp503x/lp503x_main.c

Update examples/lp503x/lp503x_main.c

Update examples/lp503x/lp503x_main.c

Update examples/lp503x/lp503x_main.c

Update examples/lp503x/lp503x_main.c

Update examples/lp503x/lp503x_main.c

Update examples/lp503x/lp503x_main.c

Co-Authored-By: Petro Karashchenko <petro.karashchenko@gmail.com>
2022-12-30 21:19:33 +08:00
Zhe Weng
2ad05e3062 ifconfig: Support prefixlen/CIDR for IPv6
Linux:
ifconfig eth0 [inet6] add 2022::2/96

FreeBSD:
ifconfig eth0 inet6 2022::2/96
ifconfig eth0 inet6 2022::2 prefixlen 96

NuttX newly supported:
ifconfig eth0 inet6 [add] 2022::2/96
ifconfig eth0 inet6 [add] 2022::2 prefixlen 96

Ref:
https://man7.org/linux/man-pages/man8/ifconfig.8.html
https://www.freebsd.org/cgi/man.cgi?ifconfig

Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
2022-12-29 17:33:59 +08:00
Zhe Weng
8f10dde6ad ifconfig: Allow hostip on first non-option place after inet/inet6
NuttX previous:

ifconfig eth0 10.0.0.1 [inet]
ifconfig eth0 2022::2 inet6

Try to be compatible with other systems:

Linux:
ifconfig eth0 [inet] 10.0.0.1
ifconfig eth0 [inet6] add 2022::2

FreeBSD:
ifconfig eth0 inet 10.0.0.1
ifconfig eth0 inet6 2022::2

NuttX newly supported:
ifconfig eth0 [inet] 10.0.0.1
ifconfig eth0 inet6 [add] 2022::2

Ref:
https://man7.org/linux/man-pages/man8/ifconfig.8.html
https://www.freebsd.org/cgi/man.cgi?ifconfig

Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
2022-12-29 17:33:59 +08:00
Zhe Weng
19958f0428 apps/system: Add iptables command.
Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
2022-12-29 14:26:41 +08:00
Zhe Weng
64f9dc100c netutils: Add iptables in netlib.
Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
2022-12-29 14:26:41 +08:00
dongjiuzhu1
2e0c1c1ddb app/fstest: config the number of open file and the maximum size of file
adjust resource using on resource-constrained systems

Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2022-12-29 13:38:44 +08:00
crafcat7
30efeb7424 system/cachespeed:Optimize output format and processing logic 2022-12-29 03:56:45 +08:00
raiden00pl
eb8ad7af2f add NxScope example 2022-12-28 01:40:24 +08:00
raiden00pl
cd499f9d37 add the NxScope library - a real-time data logging tool 2022-12-28 01:40:24 +08:00
crafcat7
ea7241a1a6 system/ramspeed:Fix the error of CI compilation caused by not initializing irqstate_t flags in some cases 2022-12-28 01:37:44 +08:00
Xiang Xiao
77ac0e4838 system/trace: Check NOTERAM_GETTASKNAME existence directly
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-12-26 11:53:26 +08:00
Xuxingliang
6e67d8ab78 luamodules: fix compile warning in cjson
Signed-off-by: Xuxingliang <xuxingliang@xiaomi.com>
2022-12-22 13:39:35 +08:00
Neo Xu
185ebab90f apps/industry: add scpi parser lib
Signed-off-by: Neo Xu <neo.xu1990@gmail.com>
2022-12-22 00:59:10 +08:00
yintao
3fbb452b4a cmocka:Add automated testing framework cmocka in testing
Signed-off-by: yintao <yintao@xiaomi.com>
2022-12-22 00:58:51 +08:00
Neo Xu
6725d481b2 interpreters/lua: fix unpack on incremental build
Signed-off-by: Neo Xu <neo.xu1990@gmail.com>
2022-12-21 17:48:29 +08:00
Xu Xingliang
167672c783 interpreters/lua: support lua module list register
Signed-off-by: Xu Xingliang <xuxingliang@xiaomi.com>
2022-12-21 17:48:13 +08:00
Neo Xu
311b4210b7 luamodules/cjson: add lua cjson module
Signed-off-by: Neo Xu <neo.xu1990@gmail.com>
2022-12-21 17:47:14 +08:00
Neo Xu
6d7761f274 luamodules/lsyslog: add lua syslog module
Signed-off-by: Neo Xu <neo.xu1990@gmail.com>
2022-12-21 17:46:59 +08:00
Neo Xu
7a2774b75a luamodules/lfs: add luafilesystem module
Signed-off-by: Neo Xu <neo.xu1990@gmail.com>
2022-12-21 17:46:44 +08:00
ligd
7f11c91054 ostest: remove printf & sem_wait in sigaction
Signed-off-by: ligd <liguiding1@xiaomi.com>
2022-12-21 13:38:18 +09:00
Xiang Xiao
d1e46c2d3e compiler.h: Add _ between format|printf|syslog|scanf|strftime and like
align with other macro naming style

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-12-21 01:05:12 +02:00
huangjian
19553cb395 nshlib:fix "Long line"
Signed-off-by: huangjian <huangjian@xiaomi.com>
2022-12-20 23:39:36 +08:00
huangjian
78020aec0d nshlib:nsh login include nshlib/nshlib.h
Signed-off-by: huangjian <huangjian@xiaomi.com>
2022-12-20 23:39:36 +08:00
huangjian
9f3e2cd234 nshlib:add platform_skip_login to nshlib.h
Signed-off-by: huangjian <huangjian@xiaomi.com>
2022-12-20 23:39:36 +08:00
ligd
9fcb58fb8a pipe: fix pipe test case failed
pipe shouldn't use /tmp folder, /tmp maybe mounted to tmpfs

Signed-off-by: ligd <liguiding1@xiaomi.com>
2022-12-20 23:39:12 +08:00
YAMAMOTO Takashi
867897ad53 interpreters/toywasm/src/toywasm_config.c: add an empty section
I feel this should be fixed in nxstyle.
This is a separate commit to make a revert easier.
2022-12-20 10:45:07 +08:00
YAMAMOTO Takashi
7d6e12917f interpreter/toywasm: Update toywasm version
The situation of toywasm_config.c is similar to toywasm_config.h.
It's cmake-generated in the upstream. The original template is covered
by a different license. I'm the author of the file and hereby re-license
this copy.

Tested on sim/macOS.
2022-12-20 10:45:07 +08:00
Xiang Xiao
cfc005a460 arp: Remove the unnecessary inclusion of nuttx/net/arp
and change the remain inclusion to netinet/arp.h

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-12-16 22:11:10 +02:00
Xiang Xiao
9884159346 nshlib: Add login skip, invalid name ignore and password challenge to telnet login
forget in the follow patches:
commit 6aef469c19
Author: huangjian <huangjian@xiaomi.com>
Date:   Fri Nov 4 20:37:04 2022 +0800

    nshlib:judge whether nsh login username is a valid input

    Signed-off-by: huangjian <huangjian@xiaomi.com>

commit 88fff23d34
Author: huangjian <huangjian@xiaomi.com>
Date:   Fri Nov 4 20:39:26 2022 +0800

    nshlib:add platform skip login function

    Signed-off-by: huangjian <huangjian@xiaomi.com>

commit 5a623cc9e3
Author: huangjian <huangjian@xiaomi.com>
Date:   Fri Nov 4 20:35:07 2022 +0800

    nshlib:add platform challenge function for nsh login

    Signed-off-by: huangjian <huangjian@xiaomi.com>

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-12-16 16:31:05 +02:00
yinshengkai
595adbcca6 drivers/note: rename /dev/note to /dev/note/ram
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2022-12-15 12:15:53 +08:00
zhanghongyu
c7e8ade590 arp: change arptable get struct from arp_entry_s to arpreq
Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2022-12-14 21:19:37 +08:00
zhanghongyu
df3121213e cmd_arp: add device input for arp interface
Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2022-12-14 21:19:37 +08:00
Peter Bee
11f0c2af43 system/camera: fix 'is_image' uninitialized
Signed-off-by: Peter Bee <bijunda1@xiaomi.com>
2022-12-14 21:17:22 +08:00
Masayuki Ishikawa
5592e38253 netutils: iperf: Fix the transfer bytes and the bandwidth overflow
Summary:
- I noticed that the iperf shows incorrect transfer bytes
  in each period.
- Also, the bandwidth overflows sometimes.
- This commit fixes these issues.

Impact:
- None

Testing:
- Tested with qemu-armv8a:netnsh_smp on QEMU-7.1

Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2022-12-12 21:45:52 +08:00
Xu Xingliang
636a155a21 luamodules/luv: fix comile warning -Werror=int-to-pointer-cast
Signed-off-by: Xu Xingliang <xuxingliang@xiaomi.com>
2022-12-12 18:06:53 +08:00
Xiang Xiao
e07d8f546a build.yml: Sync with nuttx version
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-12-12 01:37:50 +02:00
Xu Xingliang
80ed2b96d3 luamodules/luv: add libuv lua binding luv.
Initial work done by Michael Mogenson.

Signed-off-by: Xu Xingliang <xuxingliang@xiaomi.com>
2022-12-10 19:19:10 +08:00
Xu Xingliang
8175d89cd3 apps: add luamodules
Signed-off-by: Xu Xingliang <xuxingliang@xiaomi.com>
2022-12-10 19:19:10 +08:00
Peter Bee
38a190156a apps/system: add nxcamera app
Add NxCamera app similar to NxLooper, which can be used to control video
capture device. The basic capture n' display function is complete, while
file output and camera control features are left TODO.

Signed-off-by: Peter Bee <bijunda1@xiaomi.com>
2022-12-10 02:46:31 +08:00
Peter Bee
091ff57126 graphics/libyuv: fix strict-prototype warning
Added a patch file to fix the warning

Signed-off-by: Peter Bee <bijunda1@xiaomi.com>
2022-12-09 15:21:59 +08:00
Xiang Xiao
3e2c8fdb41 examples/camera: Cast the last argument of ioctl to uintptr_t
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-12-08 12:38:55 +01:00
Xiang Xiao
519c4ccb1b examples/camera: Add FAR for all pointer
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-12-08 12:38:55 +01:00
Xiang Xiao
02f608b64d examples/camera: Call VIDIOC_S_FMT before VIDIOC_REQBUFS
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-12-08 12:38:55 +01:00
Xiang Xiao
ca855f3f23 examples/camera: Fix the style issue
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-12-08 12:38:55 +01:00
zouboan
776136a113 Fix various error in Windows native build 2022-12-08 13:22:13 +08:00
Peter Bee
a8e6a07b0a graphics/libyuv: add libyuv
Library for video format conversions

Signed-off-by: Peter Bee <bijunda1@xiaomi.com>
2022-12-07 00:01:09 +08:00
Xiang Xiao
00dd4affea examples/hidkbd: Reuse lib_meminstream_s and remove hidbkd_instream_s
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-12-05 13:55:31 +01:00
Xiang Xiao
2c56945fee libc/stream: Rename (put|get) to (putc|getc)
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-12-05 13:55:31 +01:00
huangjian
6aef469c19 nshlib:judge whether nsh login username is a valid input
Signed-off-by: huangjian <huangjian@xiaomi.com>
2022-12-04 19:24:57 +08:00
huangjian
88fff23d34 nshlib:add platform skip login function
Signed-off-by: huangjian <huangjian@xiaomi.com>
2022-12-04 19:24:57 +08:00