Huang Qi
fd8ce46060
system/cle: Don't echo extra '\n'
...
Before:
```
NuttShell (NSH) NuttX-12.0.0
nsh> free
/* Extra line here */
total used free largest nused nfree
Umem: 33154512 33584 33120928 33120928 96 1
```
After:
```
NuttShell (NSH) NuttX-12.0.0
nsh> free
total used free largest nused nfree
Umem: 33154512 33584 33120928 33120928 96 1
```
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2023-03-04 13:50:08 +08:00
Gustavo Henrique Nihei
fe7b57aa11
wamr: Fix INTERPRETERS_WAMR_LIBC_WASI dependency on PSEUDOFS_SOFTLINKS
...
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2023-03-04 01:47:33 +08:00
Huang Qi
9bb730fb6b
nsh: Don't echo password during login
...
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2023-03-04 01:44:40 +08:00
Huang Qi
2e49d78400
nsh/login: FIx error prompt length
...
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2023-03-04 01:44:40 +08:00
simbit18
68fee5effb
apps/examples/ina226/Makefile: Fix mistake in comment
...
fix relative path error
2023-03-04 01:43:30 +08:00
simbit18
4e4ccd6c73
apps/examples/apds9960/Makefile: Fix mistakes in comments
...
Fix mistakes in comments
2023-03-04 01:43:17 +08:00
simbit18
88b01447b5
apps/examples/lp503x/Makefile: Fix mistakes in comments
...
Fix mistakes in comments
2023-03-04 01:43:03 +08:00
simbit18
006e33c646
apps/examples/hidkbd/Makefile: Fix mistakes in comments
...
Fix mistakes in comments
2023-03-04 01:43:03 +08:00
simbit18
2254074f82
apps/examples/can/Makefile: Fix mistakes in comments
...
Fix mistakes in comments
2023-03-04 01:43:03 +08:00
Huang Qi
f1ba1a40ed
nsh: Improve performance of ps
by merge nsh_output
...
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2023-03-03 17:41:39 +09:00
Huang Qi
e957e1633c
nsh: Improve performance of help
by line buffer
...
This change reduce the usage of `printf`,
which will improve both CPU usage and IO performance.
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2023-03-03 17:41:39 +09:00
Xiang Xiao
21bc466a2b
Remove the tail space char from all files
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-03-03 00:18:36 +02:00
Karel Kočí
cf9dd1c653
lvgl: silent download and unpack
...
This introduces changes from NuttX commit
03b164f59ce40a3f5677b0588af2aee8d9697bf6.
2023-03-02 22:24:54 +08:00
raiden00pl
832b160cb1
bluetooth/nimble: update to bc7828341226d860429c63994065f8f1b8b8d7b0
...
which fix https://github.com/apache/mynewt-nimble/pull/1472
2023-03-02 22:21:37 +08:00
pengyiqiang
ca403ffaf7
lvgl/port: optimize fbdev buffer sync algorithm
...
Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com>
2023-03-02 13:52:05 +08:00
Huang Qi
8160dd0d56
readline: Don't echo input except VT100 command
...
Let's echo character by serial driver,
this will imporve the experience of telnetd,
which will display input command and newline twice.
And also enhance the compatiblity with some third party
linux readline based application (like WAMR repl).
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2023-03-02 13:46:18 +08:00
yinshengkai
4f04151f17
exampels/note: modify SCHED_NOTE_XXX -> sched_note_xxx
...
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2023-03-02 11:20:40 +08:00
SPRESENSE
b58ecee1c9
apps/examples/udp: Fix warnings by -Wformat
...
Fix warnings where address of IPv4 is displayed.
2023-03-02 11:20:06 +08:00
yinshengkai
fa589ae622
nsh: fix nsh startup failure
...
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2023-03-01 21:26:01 +08:00
zhangyuan21
5e4c4d7393
netutils/dhcpd: fixed simusb build issue
...
define dhcpd_arpupdate when CONFIG_NETUTILS_DHCPD_IGNOREBROADCAST undef
Signed-off-by: zhangyuan21 <zhangyuan21@xiaomi.com>
2023-03-01 21:25:31 +08:00
Michal Lenc
99b99c8c5e
pwm: update channel range with support of 0 and -1
...
PWM drivers support channel numbers 0 (skip the channel) and -1 (skip this
channel and all following channels). This commit enables usage of this
numbers in PWM example application.
Signed-off-by: Michal Lenc <michallenc@seznam.cz>
2023-02-27 22:33:56 +08:00
Takeyoshi Kikuchi
c785e32183
add "hello_nim" example application written by Nim.
...
Signed-off-by: Takeyoshi Kikuchi <kikuchi@centurysys.co.jp>
2023-02-27 10:15:33 +01:00
raiden00pl
a594bbda7c
logging/nxscope: add a mention of available client tools for NxScope
2023-02-27 16:04:46 +08:00
Xiang Xiao
a4f7129984
Fix nsh_builtin.c:91:22: error: 'SA_NOCLDWAIT' undeclared
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-02-26 19:02:28 +02:00
Xiang Xiao
359f66ad37
nshlib: Remove the remaining CONFIG_FILE_STREAM dependence
...
continue the change from https://github.com/apache/nuttx-apps/pull/1559
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-02-24 17:38:19 +08:00
Xiang Xiao
80feb2432d
nshlib: Shouldn't set TIOCSCTTY with STDOUT_FILENO directly
...
to handle the shell redirection correctly
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-02-24 17:38:19 +08:00
xinbingnan
9246502aca
drivertest/drivertest_uart: uart driver testcase
...
VELAPLATFO-4612
There are three test.
1. Write a long default string into the serial port.
2. Read the default string given by the last test from the serial port.
3. Manually execute the `test_content_ gen.py` script and write the text into the serial device to test the burst capability or run this script and specify device path to automatically test.
Signed-off-by: xinbingnan <xinbingnan@xiaomi.com>
2023-02-24 17:13:06 +08:00
Xiang Xiao
df2db2e410
interpreters/bas: Fix the nxstyle warning
...
except "Mixed case identifier found"
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-02-24 08:36:58 +02:00
Lucas Saavedra Vaz
c94b091bd3
benchmarks/coremark: Fix recompilation bug
2023-02-24 14:06:10 +08:00
chao.an
ba030e5843
wireless/wapi: correct check of return value
...
VELAPLATFO-2999
----------------------
* Name: ioctl
...
* Returned Value:
* >=0 on success (positive non-zero values are cmd-specific)
* -1 on failure with errno set properly:
Signed-off-by: chao.an <anchao@xiaomi.com>
2023-02-23 12:56:11 -03:00
yinshengkai
19ba886ec2
trace: remove SCHED_INSTRUMENTATION_HIRES
...
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2023-02-23 22:33:14 +08:00
chao an
7cc325ae83
crypto/mbedtls: disable optimize on sim platform
...
Signed-off-by: chao an <anchao@xiaomi.com>
2023-02-23 18:05:26 +08:00
Huang Qi
7f67ee8c88
bas_fs.c: Fix nxstyle: Multiple data definitions
...
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2023-02-23 17:21:19 +08:00
Huang Qi
db22e07d07
stdio: Remove CONFIG_EOL_IS_XXX
...
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2023-02-23 17:21:19 +08:00
Xiang Xiao
69cad3c287
build: Remove the annoy warning from distclean
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-02-22 23:15:02 +08:00
lilei19
41f60bd669
change strcpy to strlcpy
...
Change-Id: I8b9429a3c225a82842fce136bdb14b8b135066d3
Signed-off-by: lilei19 <lilei19@xiaomi.com>
2023-02-22 23:09:55 +08:00
pengyiqiang
e86745b9a2
lvgldemo: use nitems instead of sizeof
...
Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com>
2023-02-22 23:09:42 +08:00
Karel Kočí
6b44c59bee
graphics/lvgl: fix build due to no-format-security
...
Without this change the build produces error:
error: ‘-Wformat-security’ ignored without ‘-Wformat’
2023-02-22 23:07:20 +08:00
pengyiqiang
6f192bd1e0
lvgl/port: add libuv porting
...
Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com>
2023-02-22 15:33:53 +02:00
crafcat7
b8533e0f70
drivertest/gpio:Add FAR to the pointer
2023-02-22 16:17:04 +08:00
crafcat7
fd0ac1b8fb
drivertest/block:Add FAR to the pointer
2023-02-22 16:16:51 +08:00
Huang Qi
95f32fd018
nsh: Decouple with CONFIG_FILE_STREAM
...
Replace all fwrite/fread/fgets/... to write/read/...
Before:
```
text data bss dec hex filename
109827 601 6608 117036 1c92c nuttx/nuttx
```
After:
```
text data bss dec hex filename
108053 601 6608 115262 1c23e nuttx/nuttx
```
After with CONFIG_FILE_STREAM disabled:
```
text data bss dec hex filename
105667 601 6608 112876 1b8ec nuttx/nuttx
```
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2023-02-22 13:47:41 +08:00
Xiang Xiao
6a686ba93d
bluetooth/nimble: Update to 17a8e61fdec48d579df3bc5af59a9cff5edee674
...
which contain the fix:
https://github.com/apache/mynewt-nimble/pull/1462
https://github.com/apache/mynewt-nimble/pull/1459
https://github.com/apache/mynewt-nimble/pull/1457
https://github.com/apache/mynewt-nimble/pull/1161
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-02-21 23:39:51 +02:00
xinbingnan
5a8e089c66
drivertest/drivertest_i2c_spi.c: add testcase for i2c
and spi
...
The BMI160 6-axis acceleration sensor is used as the peripheral of the I2C test. The main purpose of the test is to open the peripheral and read the data of the sensor. If it is read successfully, the test is successful.
Add compiled constraints to make it work only when the bmi160 driver is turned on.
Signed-off-by: xinbingnan <xinbingnan@xiaomi.com>
2023-02-22 02:46:36 +08:00
chao an
8ac809e680
system/libuv: check GCC version before set special flags
...
Signed-off-by: chao an <anchao@xiaomi.com>
2023-02-21 13:57:43 +08:00
chao an
f0ddb92be0
libuv: disable warning message of dangling-pointer
...
| In file included from libuv/src/uv-common.h:42,
| from libuv/src/uv-common.c:23:
| libuv/src/uv-common.c: In function 'uv_walk':
| libuv/src/queue.h:68:19: warning: storing the address of local variable 'queue' in '((void * (**)[2])MEM[(void *[2] * *)loop_13(D) + 8B])[1]' [-Wdangling-pointer=]
| 68 | QUEUE_PREV(q) = (n); \
| | ^
| libuv/src/queue.h:78:7: note: in expansion of macro 'QUEUE_SPLIT'
| 78 | QUEUE_SPLIT(h, q, n); \
| | ^~~~~~~~~~~
Signed-off-by: chao an <anchao@xiaomi.com>
2023-02-20 19:25:58 +08:00
chao an
cf4db3f62d
drivers/note: fix build break by note rename change
...
Regression by:
| commit 4e6041a46c
(HEAD, origin/master, origin/HEAD)
| Author: Xiang Xiao <xiaoxiang@xiaomi.com>
| Date: Tue Feb 14 01:17:13 2023 +0800
|
| system: Change DRIVER_NOTExxx to DRIVERS_NOTExxx
|
| follow the kernel side change: https://github.com/apache/nuttx/pull/8531
|
| Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Signed-off-by: chao an <anchao@xiaomi.com>
2023-02-20 16:13:54 +08:00
Xiang Xiao
4e6041a46c
system: Change DRIVER_NOTExxx to DRIVERS_NOTExxx
...
follow the kernel side change: https://github.com/apache/nuttx/pull/8531
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-02-20 14:30:57 +08:00
Oreh
f63a3cac0e
Add NSH lomtd command (creates MTD loop device)
2023-02-19 19:55:52 +08:00
pengyiqiang
8bee2e2fe0
lvgl/port/lv_port_touchpad: add cursor display
...
Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com>
2023-02-19 10:53:42 +08:00