Xiang Xiao
9291d07a87
Fix the coding style issue
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-10-06 12:20:32 +02:00
Xiang Xiao
a86790c367
poll: Don't need monitor POLLERR or POLLHUP explicitly
...
since spec require the implementation always report POLLERR/POLLHUP:
https://pubs.opengroup.org/onlinepubs/9699919799/functions/poll.html
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-10-05 05:58:02 +02:00
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