zhanghongyu
a25f640e54
wapi: Make the initial scan buffer configurable through Kconfig
...
The default value is 4KB which is same as IW_SCAN_MAX_DATA
Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2022-08-15 22:27:59 +08:00
zhanghongyu
a755cb72da
wapi: correct scan return value
...
Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2022-08-15 22:27:59 +08:00
zhanghongyu
8c8ebf4503
wapi: fix coverity warning
...
Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2022-08-15 22:27:59 +08:00
raiden00pl
13a0d539fe
examples/foc/Kconfig: EXAMPLES_FOC_SETPOINT_ADC depends on ADC
2022-08-15 16:42:56 +03:00
raiden00pl
1f4f338772
examples/foc/foc_motor_b16.c: fix open loop Q current
2022-08-15 16:42:00 +03:00
zhanghongyu
26892be894
usrsock: fix usrsock close hang when net not ready
...
reason: ept NULL when close request and poll event occur simultaneously
Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2022-08-15 16:41:17 +03:00
zhanghongyu
451243accb
usrsock_server: Reduce unnecessary poll prepare
...
Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2022-08-15 16:41:17 +03:00
zhanghongyu
707b7be4da
usrsock: ioctl Remove bad copy operations
...
Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2022-08-15 16:41:17 +03:00
Peter Bee
a3ccf59204
quickjs/Makefile: pass jobserver status to submake
...
N/A
Use +make or $(MAKE) instead of make -C
Signed-off-by: Peter Bee <bijunda1@xiaomi.com>
2022-08-15 11:12:33 +03:00
yinshengkai
6895da98e3
system/input: add input tools keyboard support
...
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2022-08-15 11:12:21 +03:00
chao.an
451f528bbb
wireless/wapi: correct check of return value
...
1. correct check of return value
----------------------
* Name: ioctl
...
* Returned Value:
* >=0 on success (positive non-zero values are cmd-specific)
* -1 on failure with errno set properly:
2. country code length should contain LF
Signed-off-by: chao.an <anchao@xiaomi.com>
2022-08-15 10:51:55 +03:00
zhouliang3
ec4f97623a
libuv/tests: Fix libuv extension tests compilation error
...
Signed-off-by: zhouliang3 <zhouliang3@xiaomi.com>
2022-08-15 10:51:10 +03:00
Xiang Xiao
79e4c66764
testing/sensortest: Keep g_sensor_info in order
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-08-15 10:49:34 +03:00
Xiang Xiao
3021b8d11e
testing/sensortest: Add FAR for pointer type
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-08-15 10:49:34 +03:00
xiatian6
491f549d1c
fix: sensor: add sensor type of cap
...
Increase the type of cap sensor, including
raw data and detection status.
Signed-off-by: xiatian6 <xiatian6@xiaomi.com>
2022-08-15 10:49:34 +03:00
liuhaitao
06754940c5
dhcpd: fix build warning
...
CC: dhcpd.c
In function 'dhcpd_openlistener',
inlined from 'dhcpd_run.part.0' at dhcpd.c:1513:20:
dhcpd.c:1425:3: error: 'strncpy' specified bound 16 equals destination size [-Werror=stringop-truncation]
1425 | strncpy(req.ifr_name, interface, IFNAMSIZ);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
Signed-off-by: liuhaitao <liuhaitao@xiaomi.com>
2022-08-14 14:08:52 +03:00
liuhaitao
dbb19c9e5a
tools: add git pre-commit hook for apps
...
VELAPLATFO-1028
tools/pre-commit should be copied to .git/hooks/pre-commit to take
effect.
Signed-off-by: liuhaitao <liuhaitao@xiaomi.com>
2022-08-14 14:06:10 +03:00
Xiang Xiao
b515a00fea
zmodem: Move crc16.h and crc32.h from host to host/nuttx
...
to avoid the conflict with the 3rd party library
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-08-13 13:28:30 +03:00
Huang Qi
29a49f366e
wamr: Add a new option to custom stack guard size
...
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2022-08-10 15:21:26 +08:00
Masayuki Ishikawa
41fe4f177a
system:nsh : Apply CONFIG_NSH_DISABLE_TELNETSTART to nsh_main.c
...
Summary:
- This commit applies CONFIG_NSH_DISABLE_TELNETSTART to nsh_main.c
Impact:
- None
Testing:
- Tested with sabre-6quad:netknsh (will be updated later)
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2022-08-09 23:17:25 +08:00
Masayuki Ishikawa
a86315050d
system: telnetd: Add telnetd app
...
Summary:
- This commit adds telnetd app
Impact:
- None
Testing:
- Tested with sabre-6quad:netknsh (will be updated later)
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2022-08-09 23:17:25 +08:00
Masayuki Ishikawa
3f70a78dd3
nshlib: Make nsh_telnetmain() in public
...
Summary:
- This commit makes nsh_telnetmain() in public so that we can
call it from applications.
- Also, CONFIG_NSH_DISABLE_TELNETSTART is introduced so that
we can disable nsh_telnetstart()
Impact:
- nsh with telnet daemon
Testing:
- Tested with sabre-6quad:netknsh (will be updated later)
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2022-08-09 23:17:25 +08:00
Masayuki Ishikawa
000d1455b4
netutils: Make telnetd_daemon() in public
...
Summary:
- This commit makes telnetd_daemon() in public so that we
can call it from applications.
- Also, adds new configs to support posix_spawnp()
Impact:
- telnetd only
Testing:
- Tested with sabre-6quad:netknsh (will be updated later)
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2022-08-09 23:17:25 +08:00
Huang Qi
167c551e82
wamr: Add a new option to enable semaphore support
...
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2022-08-09 23:17:00 +08:00
Jiuzhu Dong
e04333c986
driver/sensor: rename /dev/sensor -> /dev/uorb
...
because this directory contains all topics by uorb using, not just sensors.
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2022-08-08 23:11:37 +08:00
Lee Lup Yuen
8b43f9f9ca
testing/sensortest: Update device path
...
Device paths are now named `/dev/sensor/sensor_...`: 3fdd036ba6/drivers/sensors/sensor.c (L49)
2022-08-08 13:31:18 +08:00
Jiuzhu Dong
c0cafab1a7
fsutils/mkfatfs: remove invalid header file
...
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2022-08-08 00:55:49 +08:00
Petro Karashchenko
672b5ffbc1
netutils/iperf: fix string for iperf test interface option
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2022-08-05 13:57:28 +08:00
Petro Karashchenko
6d730e3c25
system/cfgdata: add "format" command to description
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2022-08-05 13:57:21 +08:00
Peter van der Perk
9179783906
Embedded Template Library (ETL) Example application
2022-08-05 13:56:36 +08:00
Nathan Hartman
30805a7001
Remove executable permission from source file.
2022-08-04 23:19:39 +08:00
Peter van der Perk
dcd60a2abe
Use thread-safe ntoa functions
...
NXStyle fixes
Apply suggestions from code review
Co-authored-by: Petro Karashchenko <petro.karashchenko@gmail.com>
API fixes and NXStyle fixes
Apply suggestions from code review
Co-authored-by: Petro Karashchenko <petro.karashchenko@gmail.com>
Use thread-safe ntoa functions
NXStyle fixes
Apply suggestions from code review
Co-authored-by: Petro Karashchenko <petro.karashchenko@gmail.com>
API fixes and NXStyle fixes
Apply suggestions from code review
Co-authored-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2022-08-04 23:18:06 +08:00
liyi
c5102fe504
ifconfig support set IPv6 DNS server
...
Signed-off-by: liyi <liyi25@xiaomi.com>
2022-08-04 19:47:15 +08:00
Peter van der Perk
a0d0f5eb25
mkfats make g_bootcodeblob const to save on static ram usage
2022-08-02 21:05:05 +08:00
Peter van der Perk
c026bd824a
canardv0 nxstyle fix
2022-08-02 17:01:28 +08:00
Peter van der Perk
819c34e975
Add libcanardv1 for Cyphal, rename libcanard to libcanardv0
2022-08-02 17:01:28 +08:00
Takayoshi Koizumi
cfa5af51cd
wireless/gs2200m: Release all blocking socket
...
When dis-associtaion happens, the socket is destroyed. And all blocking
sockets are released for that error handling can be performed.
2022-08-02 16:54:35 +09:00
Alan Carvalho de Assis
8a177cd797
apps/games: Add shift game
2022-07-31 13:41:43 +03:00
ligd
75155532b6
pmconfig: update pmconfig dump
...
Signed-off-by: ligd <liguiding1@xiaomi.com>
2022-07-30 03:15:01 +08:00
ligd
a109a6e58b
rptun_ping: add sleep param to rptun_ping
...
Signed-off-by: ligd <liguiding1@xiaomi.com>
2022-07-30 03:15:01 +08:00
ligd
79a137495a
cu: fix cu hang when meet ctrl + C
...
We can't do sem_wait in sigaction
hang backtrace:
[<0x2c5a6958>] arm_switchcontext+0xc/0x10
[<0x2c579eba>] nxsem_wait+0x6e/0xa8
[<0x3c9a8cb5>] pb_field_iter_find+0xffde8cb/0xd3635c15
[<0x2c58d164>] uart_tcdrain.constprop.0+0x10/0xf8
[<0x2c58d5c6>] uart_close+0x10e/0x180
[<0x2c579f38>] nxsem_wait_uninterruptible+0x44/0xb8
[<0x2c95f87a>] file_close+0x12/0x44
[<0x2c95e5a8>] close+0x80/0xb4
[<0x2c5c6396>] sigint+0x1a/0x28
[<0x2c57b1b0>] nxsig_deliver+0x54/0xb8
[<0x2c5a549a>] arm_sigdeliver+0x1a/0x44
[<0x2c579eb6>] nxsem_wait+0x6a/0xa8
[<0x2c579eb6>] nxsem_wait+0x6a/0xa8
[<0x2c579eb6>] nxsem_wait+0x6a/0xa8
[<0x2c58aa1a>] pm_lock+0x1a/0x28
[<0x2c58a656>] pm_stay+0xa/0x60
[<0x2c58bb14>] rptun_notify+0x4c/0x58
[<0x2c97b8fc>] virtqueue_kick+0x54/0x7c
[<0x2c97ac82>] rpmsg_virtio_send_offchannel_nocopy+0x9a/0xcc
[<0x2c58df7c>] uart_rpmsg_dmasend+0x8c/0xe0
[<0x2c5771be>] leave_critical_section+0x2e/0x54
[<0x2c58d124>] uart_write+0x11c/0x14c
[<0x2c9620c6>] write+0x32/0x50
[<0x2c5c665e>] cu_main+0x2ba/0x484
[<0x2c5957be>] nxtask_startup+0x12/0x24
[<0x2c57b9d2>] nxtask_start+0x46/0x60
Signed-off-by: ligd <liguiding1@xiaomi.com>
2022-07-29 19:21:52 +03:00
ligd
8081711e22
nxlooper: nxlooper should wait call buffer returned before close
...
Signed-off-by: ligd <liguiding1@xiaomi.com>
2022-07-29 19:18:34 +03:00
Jiuzhu Dong
eef03ad0a1
testing/sensortest: fix cmd argument mismatch(follow new sensor driver)
...
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2022-07-29 16:26:40 +03:00
Masayuki Ishikawa
147a796a7a
system: popen: Fix to build with CONFIG_BUILD_KERNEL=y
...
Summary:
- This commit fixes to build with CONFIG_BUILD_KERNEL=y
Impact:
- None
Testing:
- Tested with sabre-6quad:knsh (not merged yet)
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2022-07-29 10:20:19 +08:00
ligd
1345fa13b1
usrsock: adjust rptun API
...
Signed-off-by: ligd <liguiding1@xiaomi.com>
2022-07-27 20:36:59 +08:00
Jiuzhu Dong
ab43c625d1
nshlib/ps: update config MM_BACKTRACE to int type
...
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2022-07-27 02:43:28 +08:00
haopengxiang
6b635d575a
gps/minmea: replace minmea file with github repo
...
apply kosma/minmea origin github repo in gpsutils
Signed-off-by: haopengxiang <haopengxiang@xiaomi.com>
2022-07-26 19:29:12 +08:00
Jiuzhu Dong
45f2c2a26d
testing/sensortest: fix compile break
...
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2022-07-26 12:38:34 +08:00
Jiuzhu Dong
a06fa5ac27
testing/sensor_test: update sensortest according to enhance sensor driver
...
1.update prefix of sensor event structure to sensor_xxx.
2.remove activate cmd because of open will auto activate sensor.
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2022-07-26 10:40:39 +08:00
Xiang Xiao
a549ea3888
Fix find: '/github/workspace/sources/nuttx/libs/libxx/uClibc++/tests': No such file or directory
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-07-25 10:47:21 +02:00