ligd
0e06cfeaec
system/media: replace sem lock with pthread_mutex
...
Signed-off-by: ligd <liguiding1@xiaomi.com>
2023-01-20 22:47:26 +08:00
Xiang Xiao
44d0642334
Add *.su to .gitignore
...
*.su is generated by gcc/clang when we pass -fstack-usage to them
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-01-19 08:19:34 +01:00
pengyiqiang
360f7b748a
system/ramspeed: skip cases where time too short
...
Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com>
2023-01-18 09:02:10 +01:00
anjiahao
731e7470b2
crypto:add aescbc testcase to testing
...
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2023-01-17 01:57:39 +08:00
anjiahao
b366a31644
crypto:add getfd for crypto testcase
...
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2023-01-17 01:57:39 +08:00
Lee Lup Yuen
757fc307c3
examples/lvgldemo: Select default demo
...
The LVGL Example App `lvgldemo` currently requires 1 argument: the name of the demo to show.
```bash
lvgldemo widgets
```
In this PR, we propose to make the argument optional if there is only one demo configured. This will enable PINE64 PinePhone to boot straight into `lvgldemo` and auto-start the LVGL App, without entering any `nsh` commands.
### Modified Files
`examples/lvgldemo/lvgldemo.c`: If no arguments are specified and only 1 demo exists, select the demo
2023-01-16 19:41:19 +08:00
田昕
b1e6583246
wireless/wapi:rework wapi error print in util.h
...
Signed-off-by: 田昕 <tianxin7@xiaomi.com>
2023-01-14 14:01:28 +08:00
YAMAMOTO Takashi
6aef7fc0a3
interpreter/toywasm: Update toywasm version
...
Tested on esp32-devkitc.
2023-01-11 17:05:01 +02:00
梁超众
fb638a13cc
remove userspace usrsock rpmsg client/server
...
Signed-off-by: 梁超众 <liangchaozhong@xiaomi.com>
2023-01-11 18:11:02 +08:00
chao an
8b368b7680
examples/netlink_route: fix compiler warning
...
netlink_route_main.c: In function ‘dump_neighbor’:
netlink_route_main.c:151:26: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘uint8_t *’ {aka ‘unsigned char *’} [-Wformat=]
151 | printf("%02x", nb->ne_addr.u.na_addr);
| ~~~^ ~~~~~~~~~~~~~~~~~~~~~
| | |
| unsigned int uint8_t * {aka unsigned char *}
| %02hhn
netlink_route_main.c:155:26: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘uint8_t *’ {aka ‘unsigned char *’} [-Wformat=]
155 | printf("%02x.", nb->ne_addr.u.na_addr);
| ~~~^ ~~~~~~~~~~~~~~~~~~~~~
| | |
| unsigned int uint8_t * {aka unsigned char *}
| %02hhn
Signed-off-by: chao an <anchao@xiaomi.com>
2023-01-11 15:14:51 +08:00
田昕
2b2c4805a4
netutils/dhcpc:fix dhcp hostname len error in dhcpc_sendmsg
...
Signed-off-by: 田昕 <tianxin7@xiaomi.com>
2023-01-10 21:52:31 +08:00
raiden00pl
efdc1ebf3f
move embedlog from system to logging
2023-01-05 21:42:15 +08:00
Xiang Xiao
6e6df7dca8
Remove the unnecessary NULL fields in global instance definition of file_operations
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-01-04 09:30:25 +02:00
pengyiqiang
a610b633d2
graphics/lvgl: Upgrade to lvgl v8 version
...
Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com>
2023-01-01 10:14:55 -03:00
dongjiuzhu1
542558f2c1
nshlib/script: avoid output unnecessary log when missing rc.sysinit file
...
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2022-12-31 00:40:00 +08:00
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