Commit Graph

2222 Commits

Author SHA1 Message Date
SPRESENSE
8a82400929 examples/camera: Fix wrong device file path
In camera_main.c, the dev paths of capture_initialize() and open()
are different. So open could always failed.
2024-07-28 15:52:26 +08:00
Rodrigo Sim
4aea0dff38 examples/telnetd: Add support to reset command
Signed-off-by: Rodrigo Sim rcsim10@gmail.com
2024-07-16 09:06:16 +08:00
Alan Carvalho de Assis
e9f60d85b9 examples/telnetd: Make it clear the goal of this telned
Signed-of-by: Alan C. Assis <acassis@gmail.com>
2024-07-03 17:47:10 +08:00
Alan Carvalho de Assis
c7072b45bb examples/stepper: Fix typo inside for() loop 2024-06-30 13:29:01 +08:00
p-szafonimateusz
097ed5c27d oneshot/oneshot_main.c: fix printf warning
fix printf warning in examples/oneshot

Signed-off-by: p-szafonimateusz <p-szafonimateusz@xiaomi.com>
2024-06-29 11:08:14 -03:00
SPRESENSE
42b16e3004 examples: Remove unnecessary descriptions from Makefile
Remove unnecessary SDKDIR variable from some Makefiles.
And fix audio_rttl to pass cmake build.
2024-06-28 20:17:13 +08:00
Matheus Catarino
6db9d5e582 dlang-app added 2024-06-07 03:27:41 +08:00
Tiago Medicci Serrano
3086dcbcf0 Revert "Add loading of ET_DYN shared object test to sotest"
This reverts commit 72eaed8fdd.
2024-05-30 19:13:28 -03:00
Neale Ferguson
72eaed8fdd Add loading of ET_DYN shared object test to sotest
* examples/sotest/lib/Makefile
  - Add dynload directory to build

* examples/sotest/lib/dynload/Makefile
  - Build the dynload shared object test
  - Use SHMODULEFLAGS and not SHLDFLAGS

* examples/sotest/lib/dynload/dynload.c
  - Test case for loading of ET_DYN shared objects

* examples/sotest/lib/dynload/.gitignore
  - Exclude built object from git

* examples/sotest/sotest_main.c
  - Load and invoke the dynload test
2024-05-29 19:17:15 -03:00
Xiang Xiao
2d4233c825 examples/usrsocktest: Fix error: variable 'ret' set but not used
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2024-05-27 10:30:19 -03:00
Xiang Xiao
f228ee1e4f Fix Error: usrsocktest_basic_connect.c:112:7: error: variable 'ret' set but not used
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2024-05-23 11:53:26 +08:00
raiden00pl
e3110d3ea7 examples/nxscope: add static to private functions 2024-05-23 11:50:08 +08:00
simbit18
d0e030ff00 fix nxstyle
fix Relative file path does not match actual file.
2024-05-15 23:53:05 +08:00
meijian
8d1bb4cfe8 [app][netlink_route] fix get route netlink bugs
Signed-off-by: meijian <meijian@xiaomi.com>
2024-05-14 22:06:47 +08:00
simbit18
a59797bbdd fix nxstyle
fix Relative file path does not match actual file.
2024-05-11 01:20:08 +08:00
simbit18
2bff210cdf /examples/lp503x: Removed the execute permissions. 2024-05-09 23:47:14 +08:00
simbit18
dadbea7e3b fix nxstyle
fix Relative file path does not match actual file.
Add missing Apache Foundation copyright header
2024-04-30 00:02:31 +08:00
Xu Xingliang
8c7323cc8b examples/lvglterm: upgrade to lvgl v9
Signed-off-by: Xu Xingliang <xuxingliang@xiaomi.com>
2024-04-29 10:04:34 +08:00
Neo Xu
c53abc5fdb apps/lvgl: upgrade to lvgl version v9
Signed-off-by: Neo Xu <neo.xu1990@gmail.com>
2024-04-29 10:04:34 +08:00
Andreea Luca
fe12ad9444 examples/mqttc: Add QOS argument option
Add QOS argument option. Users can optionally
change QOS to 0/1/2.
2024-04-20 22:10:50 -03:00
simbit18
000a8bcdf1 Fix nuttx coding style
fix
error: Relative file path does not match actual file
error: Long line found
error: Operator/assignment must be preceded with whitespace
error: Missing blank line after comment
2024-04-18 09:56:48 +08:00
GC2020
f633d11b63 examples/pipe:removes useless data from test cases 2024-04-10 23:12:10 +08:00
simbit18
7e30c0e4c9 Fix Kconfig style
Remove spaces from Kconfig files
Add TABs
Add comments
2024-04-09 08:16:40 +02:00
rushabhvg
b311c46778 apps/examples/hello_rust/Makefile: Add -O flag 2024-03-21 22:45:33 +08:00
Huang Qi
c138651300 tools: New CMake based Wasm build system
Introduce a new CMake based build system for Wasm.
And target the Wasm ABI to wasm32-wasi, it should
be a more commnly used and standard ABI for Wasm.

Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2024-03-15 11:15:25 -03:00
shizhenghui
a00ba19eb4 camera_example: modify initialize interface after v4l2 refactor
Signed-off-by: shizhenghui <shizhenghui@xiaomi.com>
2024-03-13 09:50:58 +08:00
Michał Łyszczek
d17f554355 examples/embedlog: update example for embedlog-v0.7.0
Signed-off-by: Michał Łyszczek <michal.lyszczek@bofc.pl>
2024-03-03 12:03:54 +08:00
TimJTi
169beaeef7 Add Settings Utility and example app 2024-03-03 02:36:56 +08:00
Michał Łyszczek
8669861312 examples/hx711: add new program to test hx711 chip
Signed-off-by: Michał Łyszczek <michal.lyszczek@bofc.pl>
2024-03-02 12:34:39 +08:00
SPRESENSE
2b4a25c8d5 examples/fmsynth: Fix freaze when execute it in 2nd time
Fix a freaze BUG when the example is executed again after 1st execution.
2024-02-28 15:30:26 +08:00
Tomáš Pilný
9776786e0c examples/dac: Add test mode
Implements simple function generating triangular pattern / saw tooth.
2024-02-26 17:38:51 -03:00
Neo Xu
c1dfeae0b3 cmake: add lvgl cmake support
Signed-off-by: Neo Xu <neo.xu1990@gmail.com>
2024-02-22 21:22:41 -08:00
Jorge Guzman
49204e1389 modbus_master: fix modbus master example 2024-02-17 05:01:18 -08:00
Abhishek Akkabathula
da9903fe57 elf/tests/helloxx: fix build break with elf cpp exceptions example
fix the below build error by correcting the typo (tring -> string)

hello++5.cxx: In member function 'virtual void CThingSayer::ThrowMyThing(const char*)':
hello++5.cxx:157:21: error: 'tring' was not declared in this scope
  157 |   throw MyException(tring(czSayThis));
      |                     ^~~~~

Signed-off-by: Abhishek Akkabathula <a.akkabathul@samsung.com>
2024-02-15 08:31:51 +01:00
Tiago Medicci Serrano
9fd1251dcb examples/rmtchar: Increase initial duration time
With higher RMT source clocks, small durations are hard to be
detected. Increasing it makes it easier to enable automated tests.
2024-02-14 10:53:40 -05:00
Yanfeng Liu
14d4059159 Zig: revise apps build support
This requires nuttx/pull/11548 to work.

- Zig apps can use normal entrance "main()" now as we
- added RENAMEMAIN for none BUILD_MODULE case.
- enabled Zig program building in BUILD_MODULE case.

Note the Zig main source need to have "fn main(" pattern as
renaming is implemented via `sed`.

Signed-off-by: Yanfeng Liu <yfliu2008@qq.com>
2024-01-21 06:21:18 -08:00
wangyongrong
5f1de35936 rpsock_client.c: fix printf format warning
rpsock_client.c:203:30: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 5 has type ‘long unsigned int’ [-Wformat=]
  203 |                       printf("client check fail total %d, \
      |                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  204 |                               i %d, %08" PRIx32 ", %08x\n",
      |                               ~~~~~~~~~~
  205 |                               ALIGN_UP(total), i, intp[i],
  206 |                               (ALIGN_UP(total) / sizeof(uint32_t) + i));
      |                               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                                   |
      |                                                                   long unsigned int

Signed-off-by: wangyongrong <wangyongrong@xiaomi.com>
2024-01-12 01:22:23 -08:00
Xiang Xiao
e55c0d9aa5 Remove @ tag from all comments
and format the multiple line comments

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2024-01-04 10:26:49 +01:00
Lee Lup Yuen
16bca8b568 examples/hello_nim: Fix nimcache location
The Nim Example App fails to build because the `.nimcache` is located 2 folders up. This PR fixes the location of `.nimcache` in the `Makefile` of the Nim Example App.

`.nimcache` is explained in this article: https://lupyuen.github.io/articles/nim#inside-nim-on-nuttx
2024-01-02 09:52:54 -08:00
Tiago Medicci Serrano
11f2d5e5e4 examples/rmtchar: Implement RX and/or TX using the RMT char driver
The RMT (remote control) character driver is used to send and/or
receive data packets. Eventually, this app can be used to perform
a loopback test to validate the RMT driver implementation.
2023-12-19 03:34:28 -08:00
Alan Carvalho de Assis
454426547c examples/modbus: Fix modbus example to keep running 2023-12-04 06:52:14 -08:00
Xiang Xiao
083eb5e993 Fix the wrong comment banner
"Private Type"->"Private Types"
"Public Data Type"->"Public Types"

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-12-03 14:27:14 -03:00
raiden00pl
6a8344bf37 examples/nxscope: change the vector data sent by nxscope to be a 3-phase sin waveform
A changing waveform is nicer to visualize than a static vector.
2023-12-02 20:11:21 -08:00
raiden00pl
e7bb97cb5f examples/nxscope: make channel 19 configurable
Channel 19 uses an additional thread to send a text message.
This commit makes this behaviour configurable.
2023-12-02 20:11:21 -08:00
raiden00pl
5cfcd769bf examples/nxscope: make main interval configurable 2023-12-02 20:11:21 -08:00
Marco Casaroli
ba43911a77 libtest: add PRIVATE to CMakeLists.txt
It looks like this word is needed for this build to work with cmake
2023-11-21 08:05:02 -08:00
raiden00pl
27588be53e examples/foc: replace CONFIG_INDUSTRY_FOC_* with CONFIG_EXAMPLES_FOC_*
Decouple the FOC example configuration from the FOC lib configuration.
Purely cosmetic change, without affecting functionality.
2023-11-18 08:40:16 -08:00
raiden00pl
144bf0bd1f examples/foc: remove obsolete CONFIG_EXAMPLES_FOC_IPHASE_ADC option 2023-11-15 18:49:42 +01:00
raiden00pl
fa19b71ba4 examples/foc: get iphase scale from the FOC device interface 2023-11-15 03:48:53 -08:00
raiden00pl
9eb5bd4091 examples/foc: pass from velocity controller to torque controller 2023-11-14 09:46:07 -08:00