Commit Graph

4917 Commits

Author SHA1 Message Date
Subhra Sankha Sarkar
36b1be0609 Fixed coding std issues 2020-10-29 04:20:17 -07:00
Xiang Xiao
bd0ad68da8 build.yml: Switch avr-mips-riscv-x86-xtensa.dat to other.dat
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-10-29 01:08:34 -07:00
Subhra Sankha Sarkar
76e58d9e55 Fixed coding std violations in nsh_fsutils.h 2020-10-28 06:43:43 -07:00
Subhra Sankha Sarkar
0d74608b2c Fixed build issues 2020-10-28 05:57:47 -07:00
Subhra Sankha Sarkar
23ec80fa30 Addressed review comments from @v01d and @xiaoxiang781216 2020-10-28 05:57:47 -07:00
ligd
0781dbf9e9 usrsock_rpmsg: fix can't wake ppoll when no ACTION
N/A

no matter open/close CONFIG_SIGUSR1_ACTION, usrsock always do,
unmask SIGUSR1, set action to NULL.

Change-Id: I39ba51db8e4c77b4923c97598b3cb73c12473a2c
Signed-off-by: ligd <liguiding1@xiaomi.com>
2020-10-27 10:16:55 -07:00
ligd
d791afff4c system/cu/cu_main.c: ctrlC will send SIGINT/SIGSTP
N/A

Change-Id: I67f02977d206875cf1bd9cae4973c49af1db4c1d
Signed-off-by: ligd <liguiding1@xiaomi.com>
2020-10-27 10:16:55 -07:00
saramonteiro
2279eeb0a7 Examples/WDT: Added argument to select devname 2020-10-27 14:10:35 -03:00
Masayuki Ishikawa
909eff540d wireless: gs2200m: Add support for ioctl(fd, SIOCGIFADDR, ...)
Summary:
- This commit adds support for ioctl(fd, SIOCGIFADDR, ...) to gs2200m_main.c

Impact:
- Only affects ioctl(fd, SIOCGIFADDR, ...) with gs2200m
- Need to update nuttx as well

Testing:
- Tested with spresense:wifi
- Tested with dhcpc

Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-10-26 12:42:03 +01:00
Masayuki Ishikawa
b71c5f8cb1 wireless: gs2200m: Implement getpeername_request()
Summary:
- This commit adds getperrname_request() to gs2200m_main.c

Impact:
- Affects gs2200m only
- Need to update nuttx as well

Testing:
- Tested with spresense:wifi
- Modify telnetd and add getpeername() to show a client address

Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-10-26 12:42:03 +01:00
Masayuki Ishikawa
0e9594e107 wireless: gs2200m: Fix to handle address info in accept()
Summary:
- This commit fixes to handle address info in accept()

Impact:
- All use cases which use accept() with gs2200m
- Need to update nuttx as well

Testing:
- Tested with spresene:wifi
- Tested with telnet daemon

Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-10-26 12:42:03 +01:00
Masayuki Ishikawa
196b1f06df wireless: gs2200m: Fix to handle UDP connect() with bind()
Summary:
- This commit fixes to handle UDP connect() with bind() to local port
- NOTE: GS2200M does not support TCP connect() with bind to local port

Impact:
- All UDP cases which use connect() with gs2200m
- Need to update nuttx as well

Testing:
- Tested with spresense:wifi
- Create a UDP socket and bind() to local port.
- Then connect() to remote address with port and send()

Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-10-26 12:42:03 +01:00
dongjiuzhu
60342ec862 testing/sensortest: add sensor driver test
Signed-off-by: dongjiuzhu <dongjiuzhu1@xiaomi.com>
2020-10-23 00:43:47 +08:00
Philippe Coval
9134ecff23 fxos8700cq: Remove unused var
Change-Id: I96821efd5f3ed78da5a51b39972596774f5645cf
Bug: https://github.com/apache/incubator-nuttx/pull/199
Signed-off-by: Philippe Coval <rzr@users.sf.net>
2020-10-22 00:13:14 +08:00
Philippe Coval
0a77cd35d8 fxos8700cq: Select SENSORS if used
SENSORS_FXOS8700CQ needs SENSORS for linking

Change-Id: Ie0f1ba57517f27fa7697b6c8cf7a1f6558107732
Bug: https://github.com/apache/incubator-nuttx/pull/1999
Forwarded: https://github.com/apache/incubator-nuttx/pulls/rzr
Signed-off-by: Philippe Coval <rzr@users.sf.net>
2020-10-21 18:05:25 +08:00
Nakamura, Yuuichi
954c90b4b5 Add SCHED_INSTRUMENTATION_HIRES support 2020-10-21 02:10:51 +08:00
Xiang Xiao
58aa886bad system/sched_note: Change DRIVER_NOTE to DRIVER_NOTERAM
follow up the kernel side change

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-10-20 17:54:45 +01:00
Nakamura, Yuuichi
ef2758c0c5 Add note_syscall args support 2020-10-21 00:42:53 +08:00
Juha Niskanen
2b88677895 system/cu: do not reset baud rate to zero when parity options are used
cfsetspeed() now stores baud rate to c_cflag member of
struct termios, so it must not be overridden later on.

Signed-off-by: Juha Niskanen <juha.niskanen@haltian.com>
2020-10-20 01:08:22 +08:00
Juha Niskanen
a20cf0980d system/cu: do not exit directly from getopt loop, bad in flat builds
Signed-off-by: Juha Niskanen <juha.niskanen@haltian.com>
2020-10-20 01:08:22 +08:00
Xiang Xiao
8375a2177e Fix nxstyle warning
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-10-18 22:27:57 -07:00
Xiang Xiao
8a63e58936 Change all 'Nuttx' to 'NuttX'
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-10-18 22:27:57 -07:00
Nakamura, Yuuichi
7588d458e5 Remove trace command description 2020-10-18 00:23:27 +08:00
Nakamura, Yuuichi
007033f295 Fix note_syscall_leave_s to avoid unaligned access 2020-10-17 23:53:30 +08:00
Philippe Coval
6ef47323a2 examples: Add fxos8700cq sensor test
It was tested on NXP FRDM-64F:

    nsh> fxos8700cq
    { accel: [2174, 555, -752], magn: [0, 0, 0] }
    { accel: [-300, 547, 1951], magn: [55, -188, 276] }

Change-Id: If5180ce69913cf096e04db7772f3f9dd63f853bd
Bug: https://github.com/apache/incubator-nuttx/issues/1988
Forwarded: https://github.com/apache/incubator-nuttx-apps/pull/428
Signed-off-by: Philippe Coval <rzr@users.sf.net>
2020-10-17 23:47:04 +08:00
David Sidrane
cb111c0ee8 netinit:Fix typo IPCFG_USE_DHCPC->IPCFG_USE_DHCP 2020-10-16 10:11:21 +08:00
David Sidrane
9f9fed3232 ipcfg_binary: Fix compiler warning 2020-10-16 10:11:21 +08:00
Nakamura, Yuuichi
71ce72a341 Add trace command for task trace 2020-10-15 16:49:11 +08:00
YAMAMOTO Takashi
46650ffc29 interpreters/wamr: This requires CLOCK_MONOTONIC to build 2020-10-13 08:09:36 +02:00
Masayuki Ishikawa
f4b0f9e290 wireless: gs2200m: Fix recvfrom_reques() in gs2200m_main.c
Summary:
- During Wi-Fi stress test, I noticed ASSERT happens in gs2200m_main.c
- Actually, req->max_buflen was 0 but the case was not handled correctly
- This commit fixes this issue

Impact:
- Affects read/recvfrom with len=0 cases

Testing:
- Tested with spresense:wifi_smp
- Run nxplayer for audio streaming
- Run ps/free/ifconfig commands via telnet
- Run smp command via telnet

Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-10-09 08:47:14 +02:00
Gregory Nutt
f65b16bb2e Incorporate IP configuration files into netinit.
Uses logic from apps/fsutils/ipcfg to obtain the IP address configuration from a file, if available.  This only effects the behavior of netinit if CONFIG_FSUTILS_IPCFG is selected and if an IP configuration file is available on a file system. Otherwise, it reverts to the preceding behavior.

Also adds definitions to apps/include/fsutils/ipcfg.h to formalize a bit encoding of the prototype which was already in use, but not documented.

Also fixes some bad assertions (duplication of PR #420) and makes use of variable names consistent in ipcfg.h comments and in ipcfg_text implementation.
2020-10-06 10:42:35 -07:00
David Sidrane
833d231031 ipcfg:Version the binary structure 2020-10-06 08:20:26 -06:00
Gregory Nutt
a627561c8f apps/fsutils/ipcfg: Add support for IPv6 2020-10-05 00:07:05 +08:00
Gregory Nutt
707e827ded ipcfg: Add hooks for future IPv6 support.
This commit adds structures, modifies function prototypes, and renames data to support the future addition of IPv6 support.  This commit does NOT add that IPv6, only the hooks for backward compatible future support.
2020-10-02 12:30:47 -07:00
YAMAMOTO Takashi
536660d062 examples/wgetjson: Adapt to the new webclient api
tested with:
    CONFIG_EXAMPLES_WGETJSON_URL="http://httpbin.org/get"
    CONFIG_EXAMPLES_WGETPOST_URL="http://httpbin.org/post"
    wgetjson -D
    wgetjson -P -D
    wgetjson -p -D
2020-10-01 15:32:25 +08:00
YAMAMOTO Takashi
b0e7b0011b examples/wget: Adapt to the new webclient api
tested as: "nsh> wget http://example.com/"
2020-10-01 15:32:25 +08:00
YAMAMOTO Takashi
aa0aa73250 nsh_netcmds.c: Adapt to the new webclient api
As a bonus, check and report errors from write().

tested as: "nsh> wget http://example.com/"
2020-10-01 15:32:25 +08:00
YAMAMOTO Takashi
a1db71fa43 webclient improvements
Highlights:

* TLS support (a hook to allow users to provide TLS implementation)
* ability to add extra request headers
* ability to use PUT method
* ability to report http status
* error handling improvements

Proposed on the ML while ago:
https://www.mail-archive.com/dev@nuttx.apache.org/msg03803.html

The original API is kept for now.
I plan to remove them after adapting the existing users.
(examples in this repo)
2020-10-01 15:32:25 +08:00
Bhindhiya
07f2318fae Add renesas precheck 2020-10-01 12:19:14 +08:00
David Sidrane
ff866b9527 fsutils:ipcfg Fix fd propagation as return value in bin mode
With CONFIG_IPCFG_BINARY lit. ipcfg_open needs to return
   the fd or an -errno. It was returning OK not the fd.
2020-09-30 14:09:18 -06:00
David Sidrane
17c34df3b9 fsutils:ipcfg Fix range checking for PRTOCOL in bin mode 2020-09-30 14:09:18 -06:00
David Sidrane
16dc85417b fsutils:ipcfg Add extern 'C' under cpp 2020-09-30 14:09:18 -06:00
YAMAMOTO Takashi
39a1950098 wgetjson: Fix a super confusing printf message 2020-09-30 08:22:16 +02:00
YAMAMOTO Takashi
b05a1f61e2 wgetjson_json_item_scan: fix a NULL dereference
I'm not sure if this is the correct fix.
wgetjson_json_item_callback seems to expect it to be formatted
as "(null)".
2020-09-30 08:22:16 +02:00
YAMAMOTO Takashi
b5d7004a8d examples/wgetjson/Kconfig: fix a typo 2020-09-30 08:22:16 +02:00
YAMAMOTO Takashi
b78370dbf2 webclient: move WGET_USE_URLENCODE definiton to the header
Because it's used by the header.

This fixes warnings while building wgetjson.
2020-09-30 08:22:16 +02:00
Gregory Nutt
5e1ba408b4 Add IPv4 Configuration File Access Helper
This commit adds support to access an IPv4 Configuration file similar to the Linux dhpc.client ipfcg file.  This version, tailored for deeply embedded systems supports several options to tailor the file and file access to different environments.  It supports:

- Writable as well as read-only configuration files.
- ASCII human readable files as well as smaller binary files.
- It supports using character driver access to constrained media (such as EEPROM).
- Add examples/ipcfg to exercise IPv4 Configuration File support
2020-09-29 12:24:07 -07:00
Huang Qi
1efc805b4e interpreters/wamr: Bump to latest release.
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2020-09-29 08:45:31 +01:00
YAMAMOTO Takashi
f9ae5608ef examples/wgetjson/wgetjson_main.c: nxstyle fixes
The rest of errors are about cJSON identifiers:

    wgetjson_main.c:181:2: error: Mixed case identifier found
    wgetjson_main.c:183:9: error: Mixed case identifier found
    wgetjson_main.c:186:37: error: Mixed case identifier found
    wgetjson_main.c:190:12: error: Mixed case identifier found
    wgetjson_main.c:191:6: error: Mixed case identifier found
    wgetjson_main.c:203:39: error: Mixed case identifier found
    wgetjson_main.c:256:36: error: Mixed case identifier found
    wgetjson_main.c:283:2: error: Mixed case identifier found
    wgetjson_main.c:286:9: error: Mixed case identifier found
    wgetjson_main.c:289:37: error: Mixed case identifier found
    wgetjson_main.c:295:6: error: Mixed case identifier found
2020-09-29 14:15:26 +08:00
saramonteiro
c4ed4445f4 fixed dev name size 2020-09-27 18:18:13 -03:00