Commit Graph

2108 Commits

Author SHA1 Message Date
Alan Carvalho de Assis
ed78d25934 webserver: Help users to easily identify missing configurations
Co-authored-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2022-10-04 20:22:33 +02:00
Tiago Medicci Serrano
66f957792f examples/i2schar: Fix compile error and warning
Fix compile error due to unnecessary endif.
Fix warning of long line.
2022-09-30 10:24:17 +08:00
Huang Qi
0d5804c527 examples/hello_zig: Fix unused return value
Zig don't allow unused return value, so let's discard it explicitly.

Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2022-09-10 11:09:22 +08:00
Fotis Panagiotopoulos
387eba2efd ftpd: server port made configurable. 2022-09-04 11:03:28 -04:00
chao an
3d0a49f33e examples/usrsocktest: read from the closed remote should return EOF
fix usrsock remote_disconnect fail:

nsh> usrsocktest
...
Testing group "remote_disconnect" =>
        [TEST ASSERT FAILED!]
                In function "receive":
                line 497: Assertion `(ssize_t)((ret)) == (ssize_t)((0))' failed.
                        got value: -1
                        should be: 0
        Group "remote_disconnect": [FAILED]
...

Reference:

RECV(2)

NAME
       recv, recvfrom, recvmsg - receive a message from a socket
...
RETURN VALUE
...
       When a stream socket peer has performed an orderly shutdown,
       the return value will be 0 (the traditional "end-of-file" return).

       Datagram sockets in various domains (e.g., the UNIX and Internet domains)
       permit zero-length datagrams.  When such a datagram is received, the return value is 0.

Signed-off-by: chao an <anchao@xiaomi.com>
2022-09-01 14:58:09 +08:00
chao an
6bc5196ff0 examples/usrsocktest: add some delay to wait the daemon task ready
Signed-off-by: chao an <anchao@xiaomi.com>
2022-09-01 14:58:09 +08:00
chao an
45a21aea8e examples/usrsocktest: add USRSOCK_REQUEST_IOCTL support
The test model of usrsock ioctl() has changed after file socket layer implemented from vfs,
usrsock must implement the ioctl() hook to pass this test

Signed-off-by: chao an <anchao@xiaomi.com>
2022-09-01 14:58:09 +08:00
chao an
046e83bec9 examples/usrsocktest: fix build break
usrsocktest_wake_with_signal.c: In function ‘do_wake_test’:
usrsocktest_wake_with_signal.c:553:16: error: ‘USEC_PER_MSEC’ undeclared (first use in this function)
  553 |   usleep(100 * USEC_PER_MSEC); /* Let worker thread proceed to blocking
      |                ^~~~~~~~~~~~~

Signed-off-by: chao an <anchao@xiaomi.com>
2022-09-01 14:58:09 +08:00
chao an
5b47bc24ae examples/usrsocktest: correct the check region of remote address
let us skip the sin_zero

Signed-off-by: chao an <anchao@xiaomi.com>
2022-09-01 14:58:09 +08:00
chao an
a8d2924c55 examples/usrsocktest: correct return value check of dup2()
DUP(2) Linux Programmer's Manual

NAME
       dup, dup2, dup3 - duplicate a file descriptor
...
RETURN VALUE
       On success, these system calls return the new file descriptor.
       On error, -1 is returned, and errno is set appropriately.

Signed-off-by: chao an <anchao@xiaomi.com>
2022-09-01 14:58:09 +08:00
Huang Qi
2e2630e838 Don't download tarballs if a local git repo found
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2022-08-28 17:20:47 +08:00
raiden00pl
35c31e35c1 examples/foc: add options to run only the sensor alignment routine or the motor identification routine 2022-08-28 13:24:51 +08:00
raiden00pl
7dbd02947e examples/foc: support for motor identification 2022-08-28 01:20:53 +08:00
raiden00pl
f987c6c02e examples/foc: make sure that the queue is empty before start the control thread 2022-08-27 23:50:58 +08:00
raiden00pl
429f5a166f examples/foc: terminate the control thread if no work to do 2022-08-27 23:50:58 +08:00
raiden00pl
420da4589e examples/foc: print default values in the help message 2022-08-27 23:50:58 +08:00
liyi
7035546422 fix use of addroute/delroute
Signed-off-by: liyi <liyi25@xiaomi.com>
2022-08-27 23:50:46 +08:00
Takayoshi Koizumi
4d86c69a22 examples/fmsynth: Add examples for FM synthesizer lib
Add examples to show how to use fmsynth library.

There are 2 samples.
One is a music keyboard, and the other is music player decording MML.
2022-08-25 20:29:55 +09:00
yintao
8e9462985a examples/rpmsgsocket: fix wrong typo
Signed-off-by: yintao <yintao@xiaomi.com>
2022-08-16 01:04:10 +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
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
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
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
Xiang Xiao
af2741317a examples/noteprintf: Change CONFIG_LIBC_LONG_LONG to CONFIG_HAVE_LONG_LONG
follow the kernel side change:
https://github.com/apache/incubator-nuttx/pull/6613

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-07-20 22:22:49 +03:00
Xiang Xiao
c252ec1481 Add printflike to all printf like functions
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-07-18 14:09:10 +03:00
curuvar
ca4ef69661 Added simple ws2812 example 2022-07-04 10:50:48 +08:00
zouboan
e7961a696e examples: add pwm input capture example
Co-authored-by: Alan Carvalho de Assis <alan.carvalho@espressif.com>
2022-06-28 23:52:21 +08:00
Adam Kaliszan
835f43524b serialblaster bugfix 2022-06-13 15:47:44 +08:00
Nimish Telang
1f0ba0db6e Update examples/elf/tests/helloxx/Makefile
Check for the right config variable

Co-authored-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2022-06-11 17:04:20 +08:00
Nimish Telang
550cb3a1ea Address #190
Should guard against these being included if exception support isn't there
2022-06-11 17:04:20 +08:00
Adam Kaliszan
e08fdca129 Fixed bug in drawing rectangle using 1 bit palette 2022-05-31 08:01:12 +03:00
Xiang Xiao
dcd481360f examples/README.md: Remove -nostartfiles and -nodefaultlibs
follow nuttx change:
commit b30e0a26efae828b3505059ffaa3a75df74236c0
Author: Xiang Xiao <xiaoxiang@xiaomi.com>
Date:   Sun May 15 12:32:04 2022 +0800

    Move "-nostartfiles -nodefaultlibs" from Make.defs to Toolchian.defs

    and replace "-nostartfiles -nodefaultlibs" with "-nostdlib"

    Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-05-22 18:12:27 +03:00
Xiang Xiao
02da51ddf5 examples/nrf24l01: Replace the hardcode value with enum const
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-05-15 16:19:46 +03:00
YAMAMOTO Takashi
59fc69c453 examples/thttpd: -fno-builtin for a file generated by mksymtab.sh 2022-05-12 23:12:39 +08:00
YAMAMOTO Takashi
4b383b397d examples/sotest: -fno-builtin for a file generated by mksymtab.sh 2022-05-12 23:12:39 +08:00
YAMAMOTO Takashi
dc9103a72d examples/nxflat: -fno-builtin for a file generated by mksymtab.sh 2022-05-12 23:12:39 +08:00
YAMAMOTO Takashi
b7f57a1952 examples/posix_spawn: -fno-builtin for a file generated by mksymtab.sh 2022-05-12 23:12:39 +08:00
YAMAMOTO Takashi
8e6081abe0 examples/module: -fno-builtin for a file generated by mksymtab.sh 2022-05-12 23:12:39 +08:00
YAMAMOTO Takashi
adf7ceedf4 examples/elf: -fno-builtin for a file generated by mksymtab.sh 2022-05-12 23:12:39 +08:00
Takayoshi Koizumi
5040719911 audioutils/mml_parser: Add mml_parser library
Add Music Macro Language parser library in audioutils.
audioutils is also created for several audio utilities
not only mml_parser.
2022-05-07 13:56:53 +08:00
Xiang Xiao
1acca2946e Update the call site of exec to accommodate the environment variables
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-04-22 10:40:38 +03:00
Xiang Xiao
3760ab5fc8 Remove the unneeded void cast
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-04-17 23:31:35 +03:00
SPRESENSE
f2e7faa478 examples/scd41: Add new example for scd41 CO2 sensor
Add new example for scd41 CO2 sensor application.
2022-04-11 20:54:48 +08:00
Jiuzhu Dong
2f2e4680d0 fs/epoll: fix compile break about change type of pollevent_t
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2022-04-07 12:13:22 +08:00
Petro Karashchenko
319203d5d8 apps: unify FAR attribute usage across apps
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2022-04-05 00:55:22 +08:00
chao.an
90484a33e9 sched/trace: correct the note print format
note print should with Instruction pointer.

e.g:

        trace_printk("hello NuttX");

trace dump:

        hello-6  [000] .... 23080.367994: 0xc044a005: hello NuttX

Signed-off-by: chao.an <anchao@xiaomi.com>
2022-04-03 18:04:28 +08:00
zhanghongyu
16c1fec99d usrsock: Move event field to usrsock_message_common_s
Zero the events field for all response message

Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2022-04-03 11:39:19 +09:00
Petro Karashchenko
214dbe51b4 open() options: pass file options 0 if only ioctl is used
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2022-04-01 12:22:07 -03:00
Petro Karashchenko
c1dfaf42ff netutils/ftpd: add option to login to FTPD using FSUTILS_PASSWD
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2022-03-28 23:30:45 +08:00
SunJ
f8811eab38 examples/watchdog: Fix watchdog command parameter error 2022-03-28 13:42:49 +08:00
Michael Mogenson
f1a74533f2 examples: add Lua module example 2022-03-21 13:49:42 +08:00
Gerson Fernando Budke
afefa1c308 boot/mcuboot: Move MCUboot samples to examples dir
The current examples belongs to 'examples/mcuboot' directory. This
moves related example code and Kconfig entries to their respective
project inside examples/mcuboot directory. It cleans all Kconfig
entries at 'boot/mcuboot', including Kconfig, Makefile and
README.md files.

This not perform any code modification.

Signed-off-by: Gerson Fernando Budke <gerson.budke@ossystems.com.br>
2022-03-19 16:09:44 +02:00
Petro Karashchenko
566be8c7b1 definitions: unify MAX and MIN macro definitions
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2022-03-16 23:20:17 +08:00
Petro Karashchenko
b207387d48 examples/timer: fix timer notification asignment
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2022-03-16 23:19:41 +08:00
Matheus Catarino França
cdb04f6172 Zig hello-example
rename example - fix

confusion-rename fixed

zigflags added

rm zigflag single-threaded

zig rules added
2022-03-16 12:18:01 +08:00
litong12
c14996aa93 examples/rpmsgsocket: Fix rpmsg example's bug
Signed-off-by: litong12 <litong12@xiaomi.com>
2022-03-15 11:26:04 +08:00
Alin Jerpelea
a0f9b7d33f apps: examples: ft80x: nxstyle fixes
fixes for errors reported by the nxstyle tool.

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2022-03-09 21:07:53 +08:00
Alin Jerpelea
bd1444300a examples: pdcurses: update licenses to Apache
Gregory Nutt is the copyright holder for those files and he has submitted the
SGA as a result we can migrate the licenses to Apache.

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2022-03-09 21:07:53 +08:00
Alin Jerpelea
6084fdb8ea examples: ft80x: update licenses to Apache
Gregory Nutt is the copyright holder for those files and he has submitted the
SGA as a result we can migrate the licenses to Apache.

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2022-03-09 21:07:53 +08:00
Alin Jerpelea
4f0a18c9bb apps: examples: lis3dsh_reader: fix nxstyle errors
fix errors reported by the nxstyle tool

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2022-03-09 21:07:53 +08:00
Petro Karashchenko
f9baa422c1 style: unify path to files in comment section
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2022-03-09 10:37:33 +08:00
Alin Jerpelea
3984796156 apps: examples: nxstyle fixes
Fix for errors reported by the nxstyle tool.

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2022-03-08 17:04:01 +02:00
Alin Jerpelea
abf34e5d5a apps: examples: update license to Apache
Gregory Nutt is the copyright holder for those files and he has submitted the
SGA as a result we can migrate the licenses to Apache.

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2022-03-08 17:04:01 +02:00
Alin Jerpelea
a02fe36343 apps: examples: audio: fix Nxstyle errors
Fix errors reported by the nxstyle tool

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2022-03-08 17:04:01 +02:00
Alin Jerpelea
d681eb16ee apps: examples: update licenses to Apache
Gregory Nutt has submitted the SGA
Sony has submitted the SGA

as a result we can migrate the licenses to Apache.

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2022-03-08 17:04:01 +02:00
Alin Jerpelea
0208f6469b apps: examples: Omni Hoverboards Inc. update licenses to Apache
Gregory Nutt has submitted the SGA
Omni Hoverboards Inc. has submitted the SGA

as a result we can migrate the licenses to Apache.

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2022-03-08 17:04:01 +02:00
Michal Lenc
81b9be5d2e examples/serialrx: implement option to print string characters
The option CONFIG_EXAMPLES_SERIALRX_PRINTSTR was available in the
configuration but was not implemented in the source code. This commit
implements the option.

Signed-off-by: Michal Lenc <michallenc@seznam.cz>
2022-03-08 09:25:26 +08:00
Alin Jerpelea
5b4c891b7b apps: examples: fboverlay: update licenses to Apache
Gregory Nutt has submitted the SGA
Marco Krahl has submitted the ICLA

as a result we can migrate the licenses to Apache.

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2022-03-08 01:44:49 +08:00
Alin Jerpelea
6ccf6db273 apps: examples: powermonitor: nxstyle fixes
fix for errors reported by the nxstyle tool

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2022-03-08 01:44:49 +08:00
Alin Jerpelea
db53ca66b6 apps: examples: powermonitor: update licenses to Apache
Giorgio Groß has submitted the ICLA

as a result we can migrate the licenses to Apache.

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2022-03-08 01:44:49 +08:00
Alin Jerpelea
cd79a79d00 Makefile: update licenses to Apache
Gregory Nutt is the copyright holder for those files and he has submitted the
SGA as a result we can migrate the licenses to Apache.

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2022-03-08 01:44:49 +08:00
Alin Jerpelea
e0499fea49 apps: testing: ostest: nxstyle fixes
fixes for errors reported by nxstyle

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2022-03-08 01:44:49 +08:00
Alin Jerpelea
7f0c835edf apps: examples: calib_udelay: nxstyle fixes
fixes for errors reported by nxstyle

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2022-03-08 01:44:49 +08:00
Alin Jerpelea
59a62a91ab apps: examples: usrsocktest: update licenses to Apache
Gregory Nutt has submitted the SGA
Haltian Ltd has submitted the SGA

as a result we can migrate the licenses to Apache.

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2022-03-08 01:44:49 +08:00
Alin Jerpelea
7dfbedf961 apps: examples: calib_udelay: update licenses to Apache
Gregory Nutt has submitted the SGA
Haltian Ltd has submitted the SGA

as a result we can migrate the licenses to Apache.

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2022-03-08 01:44:49 +08:00
Xiang Xiao
b5f14a2072 examples/chrono: Fix the compiler warning when -fno-builtin isn't set
Error: chrono_main.c:434:51: error: '%01ld' directive output may be truncated writing between 1 and 3 bytes into a region of size between 2 and 10 [-Werror=format-truncation=]
  434 |           snprintf(str, sizeof(str), "%02ld:%02ld:%01ld",
      |                                                   ^~~~~
chrono_main.c:434:38: note: directive argument in the range [-21, 21]
  434 |           snprintf(str, sizeof(str), "%02ld:%02ld:%01ld",
      |                                      ^~~~~~~~~~~~~~~~~~~
chrono_main.c:434:11: note: 'snprintf' output between 8 and 18 bytes into a destination of size 16
  434 |           snprintf(str, sizeof(str), "%02ld:%02ld:%01ld",
      |           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  435 |                    min, sec, (priv->ts_end.tv_nsec / 100000000));
      |                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-03-07 17:27:15 +02:00
Xiang Xiao
aac20c317c Fix compiler warning
chrono_main.c: In function 'chrono_main':
Error: chrono_main.c:396:11: error: 'strncpy' output truncated before terminating nul copying 7 bytes from a string of the same length [-Werror=stringop-truncation]
  396 |           strncpy(str, "00:00.0", 7);
      |           ^~~~~~~~~~~~~~~~~~~~~~~~~~
Error: chrono_main.c:434:25: error: '%02ld' directive writing between 2 and 9 bytes into a region of size 8 [-Werror=format-overflow=]
  434 |           sprintf(str, "%02ld:%02ld:%01ld", min, sec,
      |                         ^~~~~
chrono_main.c:434:24: note: directive argument in the range [-35791394, 35791394]
  434 |           sprintf(str, "%02ld:%02ld:%01ld", min, sec,
      |                        ^~~~~~~~~~~~~~~~~~~
chrono_main.c:434:24: note: directive argument in the range [-59, 59]
chrono_main.c:434:24: note: directive argument in the range [-21, 21]
chrono_main.c:434:11: note: 'sprintf' output between 8 and 18 bytes into a destination of size 8
  434 |           sprintf(str, "%02ld:%02ld:%01ld", min, sec,
      |           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  435 |                   (priv->ts_end.tv_nsec / 100000000));
      |                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

nsh_routecmds.c: In function 'cmd_delroute':
Error: nsh_routecmds.c:611:11: error: 'memset' forming offset [16, 27] is out of the bounds [0, 16] of object 'inaddr' with type 'union <anonymous>' [-Werror=array-bounds]
  611 |           memset(&inaddr.ipv6, 0, sizeof(struct sockaddr_in6));
      |           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
nsh_routecmds.c:491:5: note: 'inaddr' declared here
  491 |   } inaddr;
      |     ^~~~~~

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-03-07 13:34:28 +02:00
Piet
aa2c9e7c33 hello_rust: changes for target support 2022-02-25 23:22:24 +08:00
Alan C. Assis
0baf524def apps: Modify oneshot example to let users see it working 2022-02-25 11:55:10 +08:00
Xiang Xiao
4cc0c755bf Remove CONFIG_CLOCK_MONOTONIC special code
since this opion doesn't exist anymore

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-02-23 01:21:44 +08:00
Piet
c1757660a6 apps: hello_rust example program 2022-02-20 07:37:29 +08:00
raiden00pl
81f15936c1 examples/foc/foc_parseargs.c: fix help message 2022-02-17 10:30:41 +01:00
raiden00pl
95b1625a6d examples/foc/foc_motor: store the configured FOC run mode in a separate variable
The controller mode can change during example execution and depends on the thread state (IDENT [not yet upstream] / ALIGN / RUN)
2022-02-17 10:30:41 +01:00
raiden00pl
3b1967ec71 examples/foc: add an option to disable motor controller logic
This is useful feature for debug purposes.
2022-02-16 23:57:27 +08:00
raiden00pl
e6b6c14f53 examples/foc: make the FOC current controller configurable
For now only the FOC PI current controller is supported, but this can be easily extended to support other control methods
2022-02-16 23:49:46 +08:00
Petro Karashchenko
9a85c405f5 examples/buttons: fix strange code in buttons_main
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2022-02-16 23:48:24 +08:00
chao.an
c48a8fdf4e examples/tcpecho: fix typo
Signed-off-by: chao.an <anchao@xiaomi.com>
2022-02-08 20:57:55 +01:00
Gerson Fernando Budke
836cd05526 examples: Add mcuboot Swap Test example
This example demonstrate swap between two valid images. Instructions
are available at readme.md file inside project directory.

Signed-off-by: Gerson Fernando Budke <nandojve@gmail.com>
2022-02-02 17:38:29 +08:00
Petro Karashchenko
41c8342927 examples/lvgldemo: bugfix typos and enable GRAPHICS_LVGL
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2022-01-29 00:54:29 +08:00
Petro Karashchenko
480400c523 examples/pca9635: change O_RDONLY to O_WRONLY for driver open call
PCA9635 driver does not support neither need nor write operations.
The ioctl is supports PWMIOC_SETLED_BRIGHTNESS that is write like

Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2022-01-29 00:52:24 +08:00
Petro Karashchenko
2498be1f40 romfsimg: add attribute to set minimum 4 bytes aignment for romfs image data
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2022-01-28 00:02:45 +08:00
Petro Karashchenko
3c556384ea examples/chrono: fix typo in log message
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2022-01-25 23:09:12 +01:00
Xiang Xiao
c7e96dbe32 Fix the nxstyle warning
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-01-17 07:57:22 +01:00
Petro Karashchenko
9480c0ec12 include: fix double include pre-processor guards
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2022-01-16 17:36:21 +08:00
Fotis Panagiotopoulos
bc5d8034f1 Typo fixes. 2022-01-06 10:30:41 +08:00
Abdelatif Guettouche
33475cbff6 hts221_reader_main.c: Fix the start IOCTL.
SNIOC_START is not handled by the hts221 driver.

Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2022-01-02 10:45:02 +08:00
Norman Rasmussen
2e773bcdc6 Use macros from fixedmath.h for manipulating duty cycle
This avoids magic shift logic in code, and has no change to behavior.
2021-12-29 06:25:27 -06:00
Norman Rasmussen
28c133a503 Adjust channel and duty bounds to allow testing sentinel values
commit 7354ab187ed701ae041b45a0a6603878ab9b165d and commit
1e2f06718103e7028809012a69b7ac932e9ae537 added code to skip all
remaining channels when the channel number is -1. This adds support for
testing that using the example app. The BL602 driver's first channel is
channel 0, so this also allows the example app to select the first
channel.
2021-12-29 06:25:27 -06:00
Norman Rasmussen
75c1e43334 increase number of supported PWM channels from 4 to 6
commit d8199fe460 changed Kconfig, but it
looks like pwm_main.c should have been changed too. This adds support
for the 5th and 6th channels to the code, and adds an error if more than
6 channels are configured.
2021-12-29 06:25:27 -06:00
Norman Rasmussen
ec93611307 examples/mqttc: Fix handling of getaddrinfo errors
commit 36d4bfa774 set a hostname to work
around getaddrinfo failing. getaddrinfo returns a non-zero value on
error, and there should be an early return after the error message is
printed.
2021-12-29 02:45:47 -06:00
Petro Karashchenko
5ac15130db apps: remove space befone newline in logs
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2021-12-27 20:52:08 -06:00
Diego Herranz
0e8e08e2a0 Add example app for isl29023 driver
Created from the hdc1008_demo example.
2021-12-25 19:53:05 +08:00
Alan C. Assis
64a09770c8 apps/sht3x: Add simple application to test SHT3x sensor 2021-12-24 12:02:45 -06:00
zhanghu6
2bd3a1701c sched note: printf API example
test API:
void sched_note_string(FAR const char *buf);
void sched_note_dump(uint32_t module, uint8_t event,
                     FAR const void *buf, size_t len);
void sched_note_printf(FAR const char *fmt, ...) printflike(1, 2);
void sched_note_bprintf(uint32_t module, uint8_t event,
                        FAR const char *fmt, ...) printflike(3, 4);
https://github.com/apache/incubator-nuttx/pull/4963

suggestion:
1. add "&" after the command when running this example.
2. must enable SCHED_INSTRUMENTATION_DUMP, and that enable CONFIG_SYSTEM_TRACE can help you view log.
2021-12-19 20:29:52 -06:00
Fadil R. Berisha
2aadb22301 examples/wget: Saving a file downloaded with wget
wget [-o <local-path>] <url>
2021-12-19 20:28:56 -06:00
Diego Herranz
7ba6f7cdb3 examples/hdc1008_demo: fix formatting after decimal point
Modulo operation used to calculate digits after decimal point,
but if that result is <10, a leading zero wasn't added, giving a
wrong value.

Same as 34c7bec0dc
but on the example app.
2021-12-18 07:14:03 -06:00
Jari van Ewijk
21e0ff1153 timer_gpout example: rename to timer_gpio 2021-12-09 12:00:44 -06:00
Jari van Ewijk
128996fb5f timer_gpout example: use /dev/gpioN instead of /dev/gpoutN 2021-12-09 12:00:44 -06:00
Jari van Ewijk
71f5af47e4 GPIO example application: Add support for changing pintypes 2021-12-09 11:34:53 -06:00
raiden00pl
0577bd2c33 examples/foc: add a simple character based interface to interact with the app 2021-12-08 12:20:42 -06:00
raiden00pl
37aa562f03 examples/foc: move adc and button interfaces logic to a separate file 2021-12-07 07:51:12 -06:00
raiden00pl
ea27aacbd2 examples/foc: move threads related logic to a separate file 2021-12-07 07:51:12 -06:00
raiden00pl
3fda1294d7 examples/foc: move setpoint and vbus configuration from foc_adc.h to foc_cfg.h 2021-12-07 07:51:12 -06:00
raiden00pl
edeaacedb0 examples/foc/foc_cfg.h: fix typo 2021-12-07 07:51:12 -06:00
Xiang Xiao
9397e92fcd examples/thttpd: Don't touch task_tcb_s::argv field
since it move to task_info_s now

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-12-06 09:58:38 +01:00
futerigele
c26e5a0b44 examples/touchscreen: added timestamp printing in tc
added timestamp printing in tc

Signed-off-by: futerigele <futerigele@xiaomi.com>
2021-12-04 01:05:16 -06:00
liushuai25
02ff4a8a59 fix: fb: set overlay to 0
when CONFIG_FB_OVERLAY=y, need set overlay=0,
otherwise the lcd driver doesn't know which
layer to get.

Signed-off-by: liushuai25 <liushuai25@xiaomi.com>
2021-11-25 08:00:45 -06:00
Xiang Xiao
75c11d4480 examples/helloxx: add extern "C" to main implementation directly
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-11-23 17:23:05 -03:00
erhan cengiz
6b7fe2ac51 FOC Kconfig corrected 2021-11-08 07:40:09 -06:00
raiden00pl
629e5a8e62 examples/foc: add support for sensor index search 2021-11-07 03:46:17 -06:00
raiden00pl
15b66aa128 examples/foc: add Qenco support 2021-11-07 03:44:03 -06:00
raiden00pl
f38d7d2ed3 examples/foc: terminate main loop if FOC control loop terminated 2021-11-07 03:42:06 -06:00
raiden00pl
5ee9572531 examples/foc: add Hall sensor support 2021-11-04 13:50:57 -05:00
raiden00pl
c771942d8e examples/foc: add support for sensor alignment 2021-11-04 13:50:57 -05:00
raiden00pl
b30f3329f6 foc/examples: initial logic to support torque, velocity and position controller modes 2021-11-04 13:50:57 -05:00
raiden00pl
b0eeefd0a5 examples/foc: add logic for controller state machine 2021-11-04 13:50:57 -05:00
raiden00pl
f9cec1c770 examples/foc: move the motor controller code to separate files 2021-10-31 12:13:45 -05:00
raiden00pl
22ed7da99c examples/foc: move the common FOC dev logic from threads to one place 2021-10-31 12:13:45 -05:00
raiden00pl
e0ef3cecb9 examples/foc: move FOC device data to foc_device_s 2021-10-31 12:13:45 -05:00
raiden00pl
33b34f8852 examples/foc: open FOC device in FOC threads 2021-10-31 12:13:45 -05:00
raiden00pl
2d034ed09a examples/foc: separate motor control logic from motor state logic 2021-10-31 12:13:45 -05:00
raiden00pl
2fb79db8b4 examples/foc: replace the requested velocity input with a more general setpoint input.
This is the inital step to support torque/velocity/position control
2021-10-30 13:50:56 -05:00
raiden00pl
9c8e3cc46a examples/foc: add option to disable open-loop operations
Initial step towards sensored control
2021-10-30 10:00:38 -05:00
raiden00pl
cc4d817df4 examples/foc: use getopt to parse arguments 2021-10-30 07:59:02 -05:00
raiden00pl
013caaa334 examples/foc: move the parse args logic to a separate file 2021-10-30 07:59:02 -05:00
Xiang Xiao
8d3a536650 examples/charger: Update enum type usage per kernel change
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-09-30 15:37:05 +09:00
SPRESENSE
d8757a6bcf examples/camera: Fix some issues and update license
Fix some issues and update license to apache.
- Fails to open the video driver.
- Change format from YUV422 to RGB565,
  and add captured image output to LCD.
- An application cannot exit by infinite loop.
- In video-only mode without capturing still images,
  do not allocate capture memory for still images to
  reduce the memory usage.
2021-09-16 10:45:36 +02:00
Alin Jerpelea
7ffa080a2a examples: camera: add EXAMPLES_CAMERA_OUTPUT_LCD
until the camera patches are merged we must add the
EXAMPLES_CAMERA_OUTPUT_LCD option to Kconfig

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-09-15 14:47:45 +08:00
Vagner Guadagnin
b11dcc34c6 examples/wgetjson: fix concatenation len buffer json 2021-09-12 09:08:49 -03:00
Alexander Lunev
7a88209077 examples/ipforward: improved ipforward test to analyze the order of forwarded packets 2021-09-04 14:24:47 +08:00
Juha Niskanen
b283289986 apps: fix miscellaneous typos
Signed-off-by: Juha Niskanen <juha.niskanen@haltian.com>
2021-08-26 11:39:28 -07:00
raiden00pl
e6b767f185 examples: add Hall effect sensor example 2021-08-19 08:32:24 -07:00
Xiang Xiao
605c90aedc examples/userfs: Implement the dummy callback of fchstat and chstat
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-08-15 12:52:47 +02:00
raiden00pl
4fa7248036 examples/qencoder: add an option to configure the encoder maximum position
Signed-off-by: raiden00pl <raiden00@railab.me>
2021-08-11 03:08:45 -07:00
Xiang Xiao
d4d2f13f89 Rename CONFIG_LIB_BOARDCTL to CONFIG_BOARDCTL
since boardctl isn't a libc feature

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-08-06 11:04:35 +02:00
Xiang Xiao
967f526850 Rename LIB_ to LIBC_ for all libc Kconfig
follow other libc component naming convention

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-08-05 16:42:32 +02:00
Xiang Xiao
1120bc844a examples/media: Fix the compiler warning
format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'off_t' {aka 'long long int'}

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-08-02 15:52:11 +02:00
Xiang Xiao
4109f0e8ba examples/media: Fix the compiler wanring after off_t type change
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-08-02 10:05:59 +08:00
raiden00pl
e21330df53 examples: add CORDIC example 2021-07-28 14:25:17 -03:00
Jiuzhu Dong
7d457b4d0b pipe: modify default stack size to fix stack overflow
Change-Id: I16910ff216db6b915d7c1cc4084c0b79228769a5
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2021-07-12 20:27:39 -07:00
SPRESENSE
931a873d04 examples/configdata: Fix some printf format warnings
Fix some printf format warnings by -Wformat.
2021-07-03 23:21:11 -05:00
SPRESENSE
4afa1f1514 examples/charger: Fix some printf format warnings
Fix some printf format warnings by -Wformat.
2021-07-03 23:21:11 -05:00
SPRESENSE
814f10544e examples/bmi160: Fix printf format warning
Fix printf format warning by -Wformat.
2021-07-03 23:21:11 -05:00
ligd
2f2d3e5723 examples/watchdog: add depends on CONFIG_WATCHDOG
Change-Id: I266145bef5c6ba2912457163f7e909146d4732b4
Signed-off-by: ligd <liguiding1@xiaomi.com>
(cherry picked from commit 201d0bb19fa9577841021964511cfe5b129b7937)
2021-07-01 14:32:25 -07:00
Sara Souza
b15e78b9fa examples: Adds Timer gpout example 2021-06-18 16:52:00 -06:00
Abdelatif Guettouche
bde687bac0 examples/elf: Drop the 0x when printing pointers.
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2021-06-16 21:21:28 -05:00
Abdelatif Guettouche
ff48ece8fb Fix few typos in builtin/ and sotest_main example.
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2021-06-16 21:21:28 -05:00
Xiang Xiao
7847c1f974 example/posix_spawn: Ensure argv has filename and NULL terminator
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-06-16 12:07:11 -06:00
Alin Jerpelea
869535e470 examples: nxstyle fixes
fixes for nxstyle errors reported by CI

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-06-16 09:03:06 -05:00
Alin Jerpelea
2ac8589a25 examples: fix relative path CI error
error: Path relative to repository other than nuttx must begin with the root directory
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-06-16 09:03:06 -05:00
Alin Jerpelea
d9dad2a99e author: Bob Feretich: update licenses to Apache
Gregory Nutt has submitted the SGA

RAF Research has submitted the SGA

as a result we can migrate the licenses to Apache.

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-06-16 09:03:06 -05:00
Alin Jerpelea
e0d26edcd7 author: Sebastien Lorquet: update licenses to Apache
Gregory Nutt has submitted the SGA

Sebastien Lorquet has submitted the ICLA

as a result we can migrate the licenses to Apache.

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-06-16 09:03:06 -05:00
Alin Jerpelea
1671147a87 author: Max Holtzberg : update licenses to Apache
Gregory Nutt has submitted the SGA

Max Holtzberg has submitted the SGA

as a result we can migrate the licenses to Apache.

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-06-16 09:03:06 -05:00
Alin Jerpelea
1c24e87605 author: Abdelatif GUETTOUCHE: update licenses to Apache
Gregory Nutt is has submitted the SGA

Abdelatif GUETTOUCHE has submitted the ICLA

as a result we can migrate the licenses to Apache.

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-06-16 09:03:06 -05:00
Alin Jerpelea
efcc22ab6e author: Ken Pettit: update licenses to Apache
Ken Pettit has submitted the ICLA

Gregory Nutt is has submitted the SGA

as a result we can migrate the licenses to Apache.

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-06-16 09:03:06 -05:00
Alin Jerpelea
0e9d68046f author: Mateusz Szafoni: update licenses to Apache
Mateusz Szafoni has submitted the ICLA

Gregory Nutt is the copyright holder for those files and he has submitted the
SGA as a result we can migrate the licenses to Apache.

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-06-16 09:03:06 -05:00
Alin Jerpelea
20309ee58c author: Laurent Latil: update licenses to Apache
Gregory Nutt is has submitted the SGA

Laurent Latil has submitted the ICLA

as a result we can migrate the licenses to Apache.

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-06-16 09:03:06 -05:00
Michal Lenc
aa79958bea examples/qencoder: fix nxstyle warning and errors
Signed-off-by: Michal Lenc <michallenc@seznam.cz>
2021-06-16 08:39:59 -03:00
Alin Jerpelea
6bc7a448de examples: author: Gregory Nutt: update licenses to Apache
Gregory Nutt is has submitted the SGA

as a result we can migrate the licenses to Apache.

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-06-15 05:16:58 -05:00
Xiang Xiao
99e1674912 Call posix_spawn with filename as the first argv entry
pair with the kernel side change to follow the standard defintion:
https://pubs.opengroup.org/onlinepubs/009695399/functions/posix_spawn.html

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-06-14 07:12:54 -06:00
Michal Lenc
21562e8960 examples/dhtxx: added configuration option for dhtxx sensor devpath
Signed-off-by: Michal Lenc <michallenc@seznam.cz>
2021-06-14 06:13:39 -05:00
Alin Jerpelea
f73cc8cda7 Author: Michal Lyszczek: update licenses to Apache
Gregory Nutt is has submitted the SGA

Michal Lyszczek has submitted the ICLA

as a result we can migrate the licenses to Apache.

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-06-11 05:05:27 -05:00
Xiang Xiao
d9c1c5bbc8 Include assert.h in necessary place
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-06-08 13:04:34 -07:00
Alin Jerpelea
8cc5da627e examples: Alan Carvalho de Assis: update licenses to Apache
Gregory Nutt is has submitted the SGA

Alan Carvalho de Assis has submitted the ICLA

as a result we can migrate the licenses to Apache.

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-06-08 08:43:15 -05:00
Alin Jerpelea
e9f1ce7e32 Makefile: Laurent Latil: update licenses to Apache
Gregory Nutt is has submitted the SGA

Laurent Latil has submitted the ICLA

as a result we can migrate the licenses to Apache.

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-06-07 21:35:33 -05:00
Alin Jerpelea
1e88c73107 Makefile: Ken Pettit: update licenses to Apache
Gregory Nutt is has submitted the SGA

Ken Pettit has submitted the ICLA

as a result we can migrate the licenses to Apache.

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-06-07 21:35:33 -05:00
Alin Jerpelea
bde535b436 Makefile: Max Holtzberg: update licenses to Apache
Gregory Nutt is has submitted the SGA

Max Holtzberg has submitted the SGA

as a result we can migrate the licenses to Apache.

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-06-07 21:35:33 -05:00
Alin Jerpelea
ea1ced8ba3 Makefiles: Mateusz Szafoni: update licenses to Apache
Gregory Nutt is has submitted the SGA

Mateusz Szafoni has submitted the ICLA

as a result we can migrate the licenses to Apache.

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-06-07 21:35:33 -05:00
Alin Jerpelea
59c607c8dc Makefile: Sebastien Lorquet: update licenses to Apache
Gregory Nutt is has submitted the SGA

Sebastien Lorquet has submitted the ICLA

as a result we can migrate the licenses to Apache.

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-06-07 21:35:33 -05:00
Alin Jerpelea
34fd877f89 Makefile: Alan Carvalho de Assis: update licenses to Apache
Gregory Nutt is has submitted the SGA

Alan Carvalho de Assis has submitted the ICLA

as a result we can migrate the licenses to Apache.

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-06-07 21:35:33 -05:00
Alin Jerpelea
ec339bc49a Makefiles: Gregory Nutt: update licenses to Apache
Gregory Nutt is the copyright holder for those files and he has submitted the
SGA as a result we can migrate the licenses to Apache.

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-06-07 21:35:33 -05:00
Xiang Xiao
1140bebfc0 Fix nxstyle warning
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-06-03 13:56:27 +09:00
Xiang Xiao
602ff0cd76 Include assert.h in necessary place
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-06-03 13:56:27 +09:00
RoCorbera
61ddfeba17 add SIGTERM handling in leds example
following the idea of having a kill \<pid\> that will send SIGTERM default signal to the task,
this example of a "daemon leds" will handle SIGTERM in order to gracefully terminate itself.
It allows to restart this daemon after correctly terminating it.
2021-06-01 15:56:55 -03:00
Abdelatif Guettouche
99ec1bec61 examples/lvgl & graphics/lvgl: Use the usual Q variable for quiet instead of @.
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2021-06-01 09:07:31 -05:00
Abdelatif Guettouche
4a72b8d132 examples/lvgldemo: LVGL examples are now called lv_demos and not
lv_examples.

Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2021-06-01 09:07:31 -05:00
Xiang Xiao
d6d458c60b Include assert.h in necessary place
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-06-01 14:11:16 +09:00
raiden00pl
be14592e84 examples/pwm: fix printf format warnings 2021-05-31 08:32:06 -05:00
raiden00pl
10ab78b028 examples/foc/foc_float_thr.c: fix incorect variable type 2021-05-31 08:31:45 -05:00
Xiang Xiao
213e60232f Include assert.h in necessary place
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-05-31 08:51:22 +02:00
Sara Souza
b203d14c7b examples/termios: Adds option to disable HW flow control 2021-05-30 22:32:29 -05:00
Sara Souza
7a7ef0db59 examples/alarm: fix typo and coding style issues 2021-05-29 23:05:23 +01:00
Xiang Xiao
82ed7bf5b1 Include debug.h for xerr/xinfo/xwarn caller
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-05-24 19:52:54 +09:00
Xiang Xiao
1ee948e0c8 Include assert.h for DEBUGASSERT caller
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-05-24 12:34:37 +09:00
Sara Souza
b8817e2a6d examples/termios: Small fix on a print message 2021-05-23 12:21:12 -05:00
Alexander Lunev
5f05678e7d examples/nxflat: fixed an issue with the symbol table creation (#3737#issuecomment-844574935) 2021-05-22 14:04:16 -05:00
Tanushree Baindur
bff92219cd Check CONFIG_BOARDCTL_ROMDISK is set
CONFIG_BOARDCTL_ROMDISK must be set to enable boardctl(BOARDIOC_ROMDISK)
    in these 2 files:
    examples/nxflat/nxflat_main.c
    examples/thttpd/thttpd_main.c
2021-05-19 20:42:24 -05:00
Tanushree Baindur
ab41d23d7c Apps Issue #246:Replace romdisk_register() with boardctl(BOARDIOC_ROMDISK)
files changed: examples/nxflat/nxflat_main.c
               examples/thttpd/thttpd_main.c

examples/thttpd: Fix error: unused variable 'desc'
2021-05-17 07:13:51 -05:00
Diego Herranz
d74ac654a9 hdc1008_demo: set intial measurement mode
No mode was set before the first read by the app.
The first time the app was run, it worked properly, reading
temperature and humidity on the first read(). But subsequent reads
returned humidity only since that was last mode set up.
Also, the ioctl read was returning invalid results.
2021-05-16 11:31:31 -03:00
Michał Łyszczek
ccc8ddaf5d system/embedlog: update to v0.6.0
Changes from v0.4.0
- add thread safety code
- add option to print function info (name) in logs
- abi/api stabilization
- bug fixes + increased reliability

Signed-off-by: Michał Łyszczek <michal.lyszczek@bofc.pl>

---
v1 -> v2 [suggested by Brennan Ashton]
 - fix path to embedlog_main.c in header comment
 - change license from bsd3 to apache2.0
2021-05-16 11:30:29 -03:00
Xiang Xiao
e352bdca4f examples/module: Fix error: unused variable 'desc'
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-05-13 04:54:28 -05:00
Xiang Xiao
e25a303a73 examples/elf: Fix error: unused variable 'desc' [-Werror=unused-variable]
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-05-12 19:23:02 -07:00
Tanushree Baindur
f0c044adb1 Apps Issue #246: Replace romdisk_register() with boardctl(BOARDIOC_ROMDISK)
C file changes:
   examples/bastest/bastest_main.c
   examples/elf/elf_main.c
   examples/module/module_main.c
   examples/posix_spawn/spawn_main.c
   examples/romfs/romfs_main.c
   examples/sotest/sotest_main.c
   examples/unionfs/unionfs_main.c

Update examples/elf/elf_main.c

Co-authored-by: Xiang Xiao <xiaoxiang781216@gmail.com>

Update examples/unionfs/unionfs_main.c

Co-authored-by: Xiang Xiao <xiaoxiang781216@gmail.com>

Update examples/unionfs/unionfs_main.c

Co-authored-by: Xiang Xiao <xiaoxiang781216@gmail.com>

Update examples/posix_spawn/spawn_main.c

Co-authored-by: Xiang Xiao <xiaoxiang781216@gmail.com>

Update examples/elf/elf_main.c

Co-authored-by: Xiang Xiao <xiaoxiang781216@gmail.com>

Update examples/elf/elf_main.c

Co-authored-by: Xiang Xiao <xiaoxiang781216@gmail.com>
2021-05-12 04:41:51 -07:00
Diego Herranz
b52de67f6e examples/hdc1008_demo: fix header path
As recommended by the nxstyle CI check.
2021-05-08 23:09:30 -07:00
Diego Herranz
453d5f2866 examples/hdc1008_demo: fix wrong printf parameter
An extra "%d" that shouldn't be there
2021-05-08 23:09:30 -07:00
Alan C. Assis
0146e88001 examples/modbus: Add Reg Coil support and use it to control USERLEDs 2021-04-20 07:55:35 -05:00
Alan C. Assis
f7880bcca9 examples/modbus: Fix endianess, it was inverted 2021-04-20 07:55:35 -05:00
Sara Souza
acfd0a9b4e examples/mqttc: If connection() fails, then fd becomes invalid 2021-04-15 09:54:29 -03:00
Gustavo Henrique Nihei
dd38c7f920 examples/lvgldemo: Fix unused variable build warning 2021-04-12 22:28:18 -05:00
Gustavo Henrique Nihei
0b2fd06ab0 examples/lvgldemo: Check for more specific input subclass on ifdefs 2021-04-12 22:28:18 -05:00
Gustavo Henrique Nihei
852aa8a511 examples/lvgldemo: Make input options depend on enabled drivers 2021-04-11 12:08:09 -07:00
raiden00pl
864a61a431 Add FOC motor controller example
For now, only open-loop velocity control is supported.
2021-04-10 00:40:43 -05:00
Gustavo Henrique Nihei
a333a908a8 examples: Update missing DJOYSTICK macro to new INPUT template 2021-04-08 11:38:00 -03:00
Gustavo Henrique Nihei
62e0c2451b examples: Fit INPUT related configs to new naming template 2021-04-08 10:15:22 -03:00
Gustavo Henrique Nihei
e6df9f55f1 examples/lvgldemo: Add config to enable Slideshow mode for Widgets demo 2021-04-08 08:00:51 -03:00
Gustavo Henrique Nihei
cbce79ddb3 examples/lvgldemo: Add configuration for double buffering support 2021-04-08 07:59:03 -03:00
Gustavo Henrique Nihei
3e475e4a67 examples/lvgldemo: Add support for asynchronous flush 2021-04-06 10:47:45 -03:00
Alan C. Assis
f9e487ae1d modbus: Fix compilation issue and advice users about termios 2021-04-05 08:39:52 -05:00
Gustavo Henrique Nihei
478a7027d9 examples/lvgldemo: Enable build without input methods 2021-04-04 16:20:23 -03:00
Brennan Ashton
3638f1c3fa lvgldemo: Add support for lcddev
This provides an adaptor for using lvgl with the lcddev in
addition to the fbdev. As part of this it also fixes a compilation
error when fbdev was used with CONFIG_FB_UPDATE.  There is also
a monitoring callback enabled for monitoring the performance
of the demo.
2021-03-31 10:59:11 -03:00
Matias N
36d4bfa774 mqttc example: provide sane hostname default to avoid crash 2021-03-30 14:51:32 -05:00
raiden00pl
a4e170b7e9 remove examples/dsptest
This example doesn't make much sense, tests cases are incomplete, and it's nightmare to maintain with even the slightest changes in libdsp
2021-03-30 04:09:54 -05:00
Abdelatif Guettouche
6ae35ffc71 examples: Add an MQTT-C example.
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2021-03-29 08:52:14 -05:00
Sara Souza
bf71741452 examples/oneshot: fixed wrong constant and refactored 2021-03-24 12:08:36 -07:00
Xiang Xiao
d656982f7a build: Remove the null assignment
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-03-24 18:38:04 +01:00
Sara Souza
3bf2f31716 fixed coding style issue 2021-03-22 09:47:06 -07:00
Sara Souza
afad97d9f8 Apply 2 suggestion(s) to 2 file(s) 2021-03-22 09:47:06 -07:00
Sara Souza
577598d2df Apply 2 suggestion(s) to 1 file(s) 2021-03-22 09:47:06 -07:00
Sara Souza
8e3eca1836 apps/examples: Adds termios example 2021-03-22 09:47:06 -07:00
Nathan Hartman
017f5ed65c examples/qencoder/qe_main.c: Fix nxstyle errors 2021-03-21 20:52:43 -07:00
Nathan Hartman
331fd61115 examples/qencoder/qe_main.c: Fix printf() format specifier
examples/qencoder/qe_main.c:

    * main(): Call to printf() had "%d" but argument was
      int32_t, leading to compiler warning. Change format
      specifier to PRIi32 (suggested by Gregory Nutt).
2021-03-21 20:52:43 -07:00
YAMAMOTO Takashi
6cc1f189d2 examples/mtdpart: select CONFIG_BCH 2021-03-16 20:27:49 -07:00
YAMAMOTO Takashi
ea8cf7bad4 examples/mtdrwb: select CONFIG_BCH 2021-03-16 20:27:49 -07:00
Xiang Xiao
2f1ecbaf74 Change all .cpp suffix to .cxx suffix
follow the coding standard requirement

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-03-16 13:57:48 -07:00
Sara Souza
1673df81d1 apps/examples/watcher: Fixed an assert failure 2021-03-16 11:30:04 -07:00
Jiuzhu Dong
4c6ded2661 app: delete NFILE_DESCRIPTORS limits
Change-Id: I3ced2b2b7440a2c79a712cfc97b4cd15d2bddd4c
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2021-03-12 21:12:07 -08:00
ligd
d4259acc15 rpmsgsocket: add rpmsgsocket test case
Change-Id: Ia07b5915da2c9c96fa8137bcaecdf1b120c76853
Signed-off-by: ligd <liguiding1@xiaomi.com>
2021-03-05 07:51:51 -08:00
Gustavo Henrique Nihei
7ebd1309dd examples/watcher: Add missing dependencies on Kconfig 2021-02-18 17:30:17 +00:00
Gustavo Henrique Nihei
fe5732494b examples/watchdog: Fix printf format warnings 2021-02-15 20:04:07 -08:00
Brennan Ashton
22115cc011 hidkbd: Do not require CONFIG_USBHOST for the app 2021-02-15 00:02:37 -08:00
YAMAMOTO Takashi
6d1d6e76ea wget: print a message on an error
To give the user some clue on what's going.
2021-02-04 00:30:01 -08:00
Xiang Xiao
e4f76ac9eb examples/romfs: Add ldir(soft link) into check
since romfs can return the soft link with the kernel change:
commit 67ef70d460db4695b950208d861ff47d4a40bdb3
Author: Xiang Xiao <xiaoxiang@xiaomi.com>
Date:   Mon Jul 6 00:34:32 2020 +0800

    vfs/dirread: Should return the same file type as lstat

    by extend the possible value of d_type for the special file

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-01-21 11:12:40 -03:00
Juha Niskanen
b66002c364 examples/README.md: correct ftpc usage, other minor updates and typos 2021-01-19 19:51:33 +01:00
Xiang Xiao
95a06846bc examples/pty_test: Fix the hardcode uart device path
should be CONFIG_EXAMPLES_PTYTEST_SERIALDEV, regression in commit:
commit 6ddbffd200
Author: Xiang Xiao <xiaoxiang@xiaomi.com>
Date:   Sun Jan 3 23:50:50 2021 -0800

    examples/pty_test: Remove O_NONBLOCK from open

    to avoid the log storm:
    ERROR Failed to read from serial: 11
    ERROR Failed to read from serial: 11
    ERROR Failed to read from serial: 11
    ERROR Failed to read from serial: 11
    ERROR Failed to read from serial: 11
    ...

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-01-14 08:34:47 +01:00
Juha Niskanen
eceaeb926a netutils/ftpd, examples/ftpd: code cleanup and nxstyle
Signed-off-by: Juha Niskanen <juha.niskanen@haltian.com>
2021-01-13 20:22:55 -06:00
Xiang Xiao
6aca60133c nsh: Pass the correct command lines to nsh_consolemain
Change-Id: Ic6617cecb6949054e6bdce8757523e7a60d83eb0
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-01-13 16:40:18 +08:00