jturnsek
b13f70ca59
Nng library and pubsub example
2023-03-08 10:49:13 +08:00
simbit18
4a9752ed3d
Update pwm.h
...
Fix nxstyle
2023-03-07 10:00:43 +08:00
simbit18
5854208e55
apps/examples/dac/Make.defs: Fix mistakes in comments
...
Fix mistakes in comments
2023-03-07 10:00:43 +08:00
simbit18
943fda1aa8
apps/examples/audio_rttl/Makefile: Fix mistakes in comments
...
Fix mistakes in comments
2023-03-07 10:00:43 +08:00
simbit18
9fc5fea946
apps/examples/audio_rttl/Make.defs: Fix mistakes in comments
...
Fix mistakes in comments
2023-03-07 10:00:43 +08:00
simbit18
2bfa344cc0
apps/examples/relays/Makefile: Fix mistakes in comments
...
Fix mistakes in comments
2023-03-07 10:00:43 +08:00
simbit18
853e574800
apps/examples/etl/Make.defs: Fix mistakes in comments
...
Fix mistakes in comments
2023-03-07 10:00:43 +08:00
simbit18
15b24123f5
apps/examples/nxdemo/Make.defs: Fix mistakes in comments
...
Fix mistakes in comments
2023-03-07 10:00:43 +08:00
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
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
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
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
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
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
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
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
pengyiqiang
6f192bd1e0
lvgl/port: add libuv porting
...
Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com>
2023-02-22 15:33:53 +02: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
Nathan Hartman
8e77b79f78
Kconfig: Make indent consistent with TABS
2023-02-10 14:11:48 +08:00
chao an
42d34fcef3
build/Kconfig: fix warnings detected by kconfiglib
...
Signed-off-by: chao an <anchao@xiaomi.com>
2023-02-09 19:45:36 +08:00
raiden00pl
ee1e84a261
examples/nxscope: add a new option to wake up the samples thread with timer.
...
Now we can add samples with at a higher frequency than with usleep().
2023-02-08 02:54:56 +08:00
raiden00pl
1dd7d3dec3
examples/timer_gpio: fix compilation
2023-02-08 00:36:20 +08:00
chao an
8ad4ae5508
net: fix compiler warning
...
sixlowpan_assocresp.c: In function ‘sixlowpan_assoc_resp’:
sixlowpan_assocresp.c:48:3: warning: ‘strncpy’ specified bound 16 equals destination size [-Wstringop-truncation]
48 | strncpy(arg.ifr_name, ifname, IFNAMSIZ);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Signed-off-by: chao an <anchao@xiaomi.com>
2023-02-08 00:35:39 +08:00
raiden00pl
bcd721b627
examples/nxscope: add support for CDCACM dev
2023-02-08 00:34:33 +08:00
Lee Lup Yuen
c57e7a7b81
examples/lvglterm: Add LVGL Terminal for NSH
...
This PR adds an LVGL App that executes NSH Commands (entered with a Touchscreen Keyboard) and renders the NSH Output. The app follows the same design as the `lvgldemo` app and is explained here: ["NuttX RTOS for PinePhone: LVGL Terminal for NSH Shell"](https://lupyuen.github.io/articles/terminal )
`examples/README.md`: Added doc for `lvglterm` app
`examples/lvglterm/lvglterm.c`: LVGL Terminal App
`examples/lvglterm/Makefile`, `Make.defs`: Makefile for LVGL Terminal
`examples/lvglterm/Kconfig`: Added menuconfig option for "Application Configuration > Examples > LVGL Terminal"
2023-02-07 20:53:24 +08:00
Xiang Xiao
a29d9ea9da
fsutils/examples: Include unistd.h explicitly
...
to get the prototypes or macros are defined in it
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-02-05 08:46:59 +02:00
Gustavo Henrique Nihei
b0da60e498
apps: Use MIN/MAX definitions from "sys/param.h"
...
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2023-02-02 00:35:14 +02: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
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