simbit18
b85bd22fe1
apps/examples/esp32_himem/Makefile: Fix mistakes in comments
...
Fix mistakes in comments
2023-03-07 10:00:43 +08:00
simbit18
82c78c6734
apps/examples/esp32_himem/Make.def:sFix mistakes in comments
...
Fix mistakes in comments
2023-03-07 10:00:43 +08:00
simbit18
b6cd7679e4
apps/examples/pwm/pwm.h: Fix mistakes in comments
...
Fix mistakes in comments
2023-03-07 10:00:43 +08:00
simbit18
71bbfbea43
apps/examples/mtdrwb/Makefile: Fix mistakes in comments
...
Fix mistakes in comments
2023-03-07 10:00:43 +08:00
simbit18
24667d219e
apps/examples/tcp_ipc_server/Make.defs: Fix mistakes in comments
...
Fix mistakes in comments
2023-03-07 10:00:43 +08:00
simbit18
7c803d28e6
apps/examples/tcp_ipc_server/Makefile: Fix mistakes in comments
...
Fix mistakes in comments
2023-03-07 10:00:43 +08:00
simbit18
2792127849
apps/examples/tcp_ipc_client/Makefile: Fix mistakes in comments
...
Fix mistakes in comments
2023-03-07 10:00:43 +08:00
simbit18
13315255e5
apps/examples/tcp_ipc_client/Make.defs: fix nxstyle
...
fix error: Relative file path does not match actual file
2023-03-07 10:00:43 +08:00
Gustavo Henrique Nihei
f500c64962
Include missing headers throughout the repository
...
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2023-03-07 09:58:13 +08:00
Gustavo Henrique Nihei
da7d9e3737
system/nsh: Include missing "unistd.h" header
...
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2023-03-06 18:52:31 +02:00
Gustavo Henrique Nihei
b61686b866
nshlib: Include missing "sched.h" header
...
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2023-03-06 18:52:31 +02:00
simbit18
02d293d4b7
qe.h: fix nxstyle
...
fix error: Relative file path does not match actual file
2023-03-06 05:19:02 -08:00
simbit18
baf15a1a89
apps/examples/qencoder/Makefile: Fix mistakes in comments
...
Fix mistakes in comments
2023-03-06 05:19:02 -08:00
chao an
4f11f38c38
interpreters/wamr: add compile role of WebAssembly
...
Add compilation rules to support WebAssembly(WASM/WAMR):
1. Compile Toolchain
1> Download WASI sdk and export the WASI_SDK_PATH path:
$ wget https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-19/wasi-sdk-19.0-linux.tar.gz
$ tar xf wasi-sdk-19.0-linux.tar.gz
Put wasi-sdk-19.0 to your host WASI_SDK_PATH environment variable, like:
$ export WASI_SDK_PATH=`pwd`/wasi-sdk-19.0
2> Download Wamr "wamrc" AOT compiler and export to the PATH:
$ mkdir wamrc
$ wget https://github.com/bytecodealliance/wasm-micro-runtime/releases/download/WAMR-1.1.2/wamrc-1.1.2-x86_64-ubuntu-20.04.tar.gz
$ tar xf wamrc-1.1.2-x86_64-ubuntu-20.04.tar.gz
$ export PATH=$PATH:$PWD
2. Configuring and running
1> Configuring sim/wamr and compile:
nuttx$ ./tools/configure.sh sim/wamr
nuttx$ make
...
Wamrc Generate AoT: /home/archer/code/nuttx/n5/apps/wasm/hello.aot
Wamrc Generate AoT: /home/archer/code/nuttx/n5/apps/wasm/coremark.aot
LD: nuttx
2> Copy the generated wasm file(Interpreter/AoT)
nuttx$ cp ../apps/wasm/hello.aot .
nuttx$ cp ../apps/wasm/hello.wasm .
nuttx$ cp ../apps/wasm/coremark.wasm .
3> Run iwasm
nuttx$ ./nuttx
NuttShell (NSH) NuttX-10.4.0
nsh> iwasm /data/hello.wasm
Hello, World!!
nsh> iwasm /data/hello.aot
Hello, World!!
nsh> iwasm /data/coremark.wasm
2K performance run parameters for coremark.
CoreMark Size : 666
Total ticks : 12000
Total time (secs): 12.000000
Iterations/Sec : 5.000000
Iterations : 60
Compiler version : Clang 15.0.7
Compiler flags : Using NuttX compilation options
Memory location : Defined by the NuttX configuration
seedcrc : 0xe9f5
[0]crclist : 0xe714
[0]crcmatrix : 0x1fd7
[0]crcstate : 0x8e3a
[0]crcfinal : 0xa14c
Correct operation validated. See README.md for run and reporting rules.
CoreMark 1.0 : 5.000000 / Clang 15.0.7 Using NuttX compilation options / Defined by the NuttX configuration
Co-Authored-By: Huang Qi <huangqi3@xiaomi.com>
Signed-off-by: chao an <anchao@xiaomi.com>
2023-03-06 13:23:44 +02:00
Huang Qi
12d31075eb
nsh: Fix a buffer overflow in help
...
Introduced by https://github.com/apache/nuttx-apps/pull/1610 ,
internal line buffer should have more bytes for tab before newline and '\0'.
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2023-03-05 11:18:59 +02:00
Huang Qi
509e90aadc
termcurses: Disable echo for serial driver
...
Since termcurse will control whole echo and vt100 command itself.
This fix the dupped character in VI's command mode and some display issue in editor mode, like:
```
~
~
~
~
:qq!!
```
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2023-03-05 14:37:45 +08:00
simbit18
b370f77851
Update batt_main.c
2023-03-04 13:50:22 +08:00
simbit18
d4e85ce384
apps/examples/battery/batt_main.c: Fix mistakes in comments
...
Fix mistakes in comments
2023-03-04 13:50:22 +08:00
simbit18
13d2cc1d88
apps/examples/battery/Make.defs: Fix mistakes in comments
...
Fix mistakes in comments
2023-03-04 13:50:22 +08:00
simbit18
e7a86f38d3
apps/examples/battery/Makefile:Fix mistakes in comments
...
Fix mistakes in comments
2023-03-04 13:50:22 +08:00
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