Commit Graph

5276 Commits

Author SHA1 Message Date
Gregory Nutt
844b193713 apps/netutils/dhcpc/Kconfig: Auto-select CONFIG_NET_UDP_BINDTODEVICE
DHCPC depends on CONFIG_NET_UDP_BINDTODEVICE in many cases.  Safest thing is to just auto-select it whenever DHCPC is selected.
2021-04-28 21:23:05 -05:00
Gustavo Henrique Nihei
5b26068635 system/spi: Fix NxStyle issues 2021-04-27 02:29:45 -05:00
Gustavo Henrique Nihei
63d59b0acf system/spi: Print sent data in the same way as received.
This eases the comparison for testing SPI with looped back MOSI and MISO
signals.
2021-04-27 02:29:45 -05:00
Anthony Merlino
267aba6467 addroute: inet_pton cannot accept slash notation. We must fixup the argument before calling. 2021-04-23 03:27:40 -05:00
Abdelatif Guettouche
80eba3aad1 netutils/iperf: Configs were using EXAMPLES_ instead of NETUTILS_. 2021-04-21 13:43:05 -05:00
chao.an
084cc55064 usrsock/server: replace the wakeup source to eventfd
Signed-off-by: chao.an <anchao@xiaomi.com>
2021-04-21 09:53:40 -05:00
chao.an
2214e51457 netutls/usrsock_rpmsg_server: add support for send reassemble
Signed-off-by: chao.an <anchao@xiaomi.com>
2021-04-21 09:53:40 -05: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
Alan C. Assis
496393a87b interpreters/ficl: Fix compilation issue
A NuttX user told that ficl wasn't working as suggested in the
README.txt, then I found that the root cause was the order of the
Make.srcs inclusion inside the Makefile. I think we can do better:
we could automate the process to download and configure ficl.
2021-04-15 08:09:48 -05:00
Sara Souza
acfd0a9b4e examples/mqttc: If connection() fails, then fd becomes invalid 2021-04-15 09:54:29 -03:00
Xiang Xiao
0ee6f0e5e0 netutils/rpmsg: Prepare poll fds only when error with EINTR
to improve the performance

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: Id88df8618473b56236821b9e0f6399dfef2c958d
2021-04-13 08:32:12 +01:00
Abdelatif Guettouche
fbf5290401 wireless/wapi/src/wapi.c: When executing a command return it's error code on failure.
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2021-04-12 22:29:01 -05: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
chenwen
39c5fa812d wireless/wapi: Fix issue of getting the operating frequency 2021-04-12 03:56:11 -05:00
Gustavo Henrique Nihei
852aa8a511 examples/lvgldemo: Make input options depend on enabled drivers 2021-04-11 12:08:09 -07:00
Brennan Ashton
e73d71c787 ltp: Resolve compile warnings 2021-04-11 03:43:51 -05:00
Anthony Merlino
98c1223746 i8sak: Fixes bug where daemon was being requested again when operation is finished, instead of being released. 2021-04-10 13:08:37 -05: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
raiden00pl
d75d6b7af0 Add FOC library
Supported features:
- float and fixed16 operations
- helper interface to interact with the kernel-side FOC device
- general interface for FOC controller
- PI current/voltage controller
- 3-phase space vector modulation
- general interface for FOC model
- PMSM model
- general interface for phase angle data
- open-loop handler
- general interface for phase velocity data
- general interface for ramp (eg. velocity ramp, torque ramp)
- (WIP) CORDIC interface for hardware acceleration
2021-04-10 00:39:09 -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
ad5fff4b0b graphics/lvgl: Add config to enable LVGL Performance Monitor 2021-04-08 07:59:23 -03:00
Gustavo Henrique Nihei
cbce79ddb3 examples/lvgldemo: Add configuration for double buffering support 2021-04-08 07:59:03 -03:00
YAMAMOTO Takashi
2d0a174cec webclient: 304 and 305 are not really redirects
Eg. The docker API sometimes returns 304 even for requests without etags.
https://docs.docker.com/engine/api/v1.40/#operation/ContainerStop
2021-04-07 06:44:16 -05:00
YAMAMOTO Takashi
15c65b23c7 netutils/webclient/webclient.c: Appease the latest nxstyle 2021-04-07 06:44:16 -05:00
Gustavo Henrique Nihei
3e475e4a67 examples/lvgldemo: Add support for asynchronous flush 2021-04-06 10:47:45 -03:00
Xiang Xiao
7e983490e8 build: Remove the redundant check from Applicaiton.mk
it's better to report error if user forget set PRIORITY or STACKSIZE

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-04-06 08:26:21 +01:00
Brennan Ashton
ddbef2b5a9 CI: Migrate ci tooling from testing repository to main os repo 2021-04-05 11:50:59 -05: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
Gregory Nutt
dd7c3bfa53 apps/testing/ostest: Add test for required argument format
The Linux man page requires that the getopt_long() and getopt_long_only() functions accept arguments to options in a form like:

    --option=argument

This PR adds a test that missing functionality that was recently added to NuttX.

This change also fixes an error in string comparison that was working before only because of the way that strings are stored by in linker ELF.  The address of the strings were being compared, not the value of the string.

This change effects only the getopt() tests of the OS test.

Tested on a simulator NSH configuration and used to verify the NuttX change.
2021-04-04 14:14:21 -05:00
Gregory Nutt
6a679043e6 testing/ostest: More improvements to getopt() testing/ostest
Fix optind range checking.  optind may index through argc (to the NULL argv entry) on the last option since optind is required to always point to the next command line argument.

Add two more test cases were the final thing on the command line is an invalid long option.

Fix a check that used an older, obsoleted hard-coded value that was not updated.

This should have no impact other than to the getopt() test cases of the OS test.

Tested on the simulator using a modified NSH configuration.
2021-04-04 11:45:24 -05:00
Gregory Nutt
02ef45980b OS Test: Minor improvement to the getopt() test
Add logic to assure that the getopt() functions parse exactly the correct number of parameters.  Previously if the test terminated early, the error would be undetected.  Also, prevents indexing past the end of the results array.

Fixes a coding error that was not causing a test failure.

Add some minimal level of testing for invalid options (this found a good bug in getopt_long()).

Affects only the getopt() test cases of the OS test.

Verified using an NSH simulator configuration set up to add apps/testing/ostest as a built-in command.
2021-04-04 07:15:35 -05:00
Xiang Xiao
4e90cf2747 build: Replace sim with sim01 and sim02
follow up nuttx-testing repo change:
commit 08d766faef84e43112b70a08f6f0c54654482024
Author: Xiang Xiao <xiaoxiang@xiaomi.com>
Date:   Sun Apr 4 04:21:57 2021 +0800

    Split sim.dat to sim00.dat and sim01.dat

    to speed up the macOS build

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

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-04-04 05:16:58 -05:00
Sungwoo Kim
6f4b133998 nshlib: Disable mb, mh, and mw by default
- Fix https://github.com/apache/incubator-nuttx/issues/3011

Co-authored-by: Gisu Yeo <wcharcode@gmail.com>
Co-authored-by: Taegyu Kim <tgkim@purdue.edu>
2021-04-03 09:40:18 -05:00
Matias N
003840a312 CI: adapt to testlist changes 2021-04-03 15:15:33 +01:00
Gregory Nutt
99138f6b39 testing/ostest: Add a test of the getopt() family of interfaces.
This new test was used to verify the new implementations of getopt_long() and getopt_long_only() and to verify that there are no regressions to the existing getopts().

Only the OS test is affect by this change.

Verified with the getopt() modifications on a modified version of the sim:nsh configuration.
2021-04-03 01:07:34 -05:00
Matias N
b9042a3666 CI: cancel redundant workflows 2021-03-31 21:25:11 -05:00
Xiang Xiao
0f7ee888d4 neutils/mqttc: Update to version 1.1.5
and remove the temp change

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-03-31 17:49:46 +01: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
d548803d38 httpd: expose http_send_headers to be used in CGI handlers 2021-03-30 22:27:49 -05: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
Dong Heng
d3c7508372 testing/fstest: Add hash checking of file's name to avoid creating same-name file 2021-03-30 00:59:16 -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
Abdelatif Guettouche
e35ea9486e mqtt: Add glue code to download MQTT-C.
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2021-03-29 08:52:14 -05:00
Xiang Xiao
52d853e642 system/nxplayer: Fix error: 'outstanding' undeclared
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-03-29 01:46:29 -07:00