Commit Graph

1569 Commits

Author SHA1 Message Date
Xiang Xiao
8a63e58936 Change all 'Nuttx' to 'NuttX'
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-10-18 22:27:57 -07: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
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
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
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
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
saramonteiro
d2463021a9 fixed some coding styles issues 2020-09-27 18:18:13 -03:00
saramonteiro
32f193a7e2 Added timer device path as a CLI option 2020-09-27 18:18:13 -03:00
Gregory Nutt
ad233b5a97 apps/examples/nxterm: Remove duplicated fflush() call.
fflush(stdout) was called twice to back-to-back.
2020-09-22 10:28:54 -07:00
chao.an
0f524ca013 examples/fb: correct the munmap(2) parameter type
fb_main.c: In function 'fb_main':
fb_main.c:473:15: warning: passing argument 1 of 'munmap' makes pointer from integer without a cast [-Wint-conversion]
  473 |   munmap(state.fd, state.fbmem);
      |          ~~~~~^~~
      |               |
      |               int
In file included from fb_main.c:43:
/home/archer/code/upload/incubator-nuttx/include/sys/mman.h:177:22: note: expected 'void *' but argument is of type 'int'
  177 | int munmap(FAR void *start, size_t length);
      |                ~~~~~~^~~~~
fb_main.c:473:25: warning: passing argument 2 of 'munmap' makes integer from pointer without a cast [-Wint-conversion]
  473 |   munmap(state.fd, state.fbmem);
      |                    ~~~~~^~~~~~
      |                         |
      |                         void *
In file included from fb_main.c:43:
/home/archer/code/upload/incubator-nuttx/include/sys/mman.h:177:36: note: expected 'size_t' {aka 'unsigned int'} but argument is of type 'void *'
  177 | int munmap(FAR void *start, size_t length);
      |                             ~~~~~~~^~~~~~

Signed-off-by: chao.an <anchao@xiaomi.com>
2020-09-17 04:42:06 -07:00
Xiang Xiao
ecae66fe59 Replace all CONFIG_NFILE_STREAMS with CONFIG_FILE_STREAM
follow up the kernel side change

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: Ic27ad65d7cc2ea570921e0c17098dcb6bfe1893a
2020-09-11 17:57:58 +08:00
Xiang Xiao
9d80399bd5 nsh: Accept the command line arguments like sh
Usage: nsh [<script-path>|-c <command>]

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: Ifb76b27e7fd09d26b1f6e48c391fed0972018041
2020-08-19 14:32:53 -07:00
SPRESENSE
78e8090842 examples: wget: Fix nxstyle issues 2020-08-18 10:07:47 -05:00
SPRESENSE
10386cf5b5 examples/wget: wget example to work without NSH_NETINIT config
- Network initialization codes are not needed
  with NSH_NETINIT config.
- Suppport commandline argument to set the URL to get.
- Change stack size to independent
2020-08-18 10:07:47 -05:00
Huang Qi
08c5998472 graphics/lvgl: Specific LVGL version by kconfig
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2020-08-14 16:02:25 +01:00
Xiang Xiao
e6c5ff9208 Remove the unnecessary touch and clean from Makefile
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-08-11 19:10:19 +01:00
Xiang Xiao
4136d42596 Change FBIO_UPDATE argument from nxgl_rect_s to fb_area_s
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: Ibaf4b0180afecdcd3248693a3092c8a23e22a2fa
2020-08-10 10:45:37 +01:00
SPRESENSE
eaeceb516b apps/examples/usrsocktest: Fix nxstyle issue 2020-08-06 20:52:09 +09:00
SPRESENSE
f29c0dabd4 apps/examples/usrsocktest: Add test scenario of recv
Add test scenario of recv for MSG_PEEK flag.
2020-08-06 20:52:09 +09:00
SPRESENSE
4bd506b7f5 apps/examples/usrsocktest: Add MSG_PEEK flag support
Do not decrement the recv_avail_bytes if MSG_PEEK flag is specified.
2020-08-06 20:52:09 +09:00
SPRESENSE
63cd701958 Makefile: Unify ROOTDEPPATH into DEPPATH
DEPPATH is commonly used in nuttx repo, so it to be the same with them.
2020-07-29 15:22:20 +02:00
Masayuki Ishikawa
e0c27e1d21 examples: i2sloop: Replace license header with Apache License 2.0
Summary:
- This commit replaces license headers under examples/i2sloop.

Impact:
- No impact

Testing:
- Buid check only

Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-07-29 01:05:31 -05:00
Maciej Wójcik
21049ece6e Rewritten READMEs to Markdown 2020-07-25 01:01:51 -07:00
Maciej Wójcik
51e6645f71 Rename README and README.txt to README.md 2020-07-25 01:01:51 -07:00
Maciej Wójcik
d85cbea7f8 Don't copy header outside of LVGL, export LVGL, add README, fix example 2020-07-16 09:16:20 -05:00
Xiang Xiao
4758151b86 examples/nrf24l01_term: Fix the nxsytyle warning 2020-07-12 15:59:54 +01:00
Xiang Xiao
942f32e22a Fix nxsytle warning
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I36099dc6c07c7ada2f9fcb06fe0267b8d213a61a
2020-07-12 13:56:00 +01:00
Xiang Xiao
deaa6c5b7b build: Replace $(TOPDIR)/Make.defs with $(APPDIR)/Make.defs
and move NUTTXLIB defintion to the common place

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-07-09 15:17:37 -03:00
Beat Küng
6daab509ca gpio: fix code style (long lines) 2020-07-09 15:17:13 -03:00
Beat Küng
31d198f5b6 gpio: add new GPIO pin types
NuttX PR: https://github.com/apache/incubator-nuttx/pull/1374
2020-07-09 15:17:13 -03:00
Xiang Xiao
4e10b692f8 example/helloxx: Remove EXAMPLES_HELLOXX_NOSTACKCONST
since this config doesn't appear inside examples/helloxx/Kconfig anymore and
there is any c++ compiler can't construct the stack object as far as I know

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I0297d192df3beaa78ae7ee75f24ae51476bb30a9
2020-07-02 08:59:02 +02:00
Xiang Xiao
9df0272279 apps: Let c++ examples/testing depends on UCLIBCXX or LIBCXX
since the test should work with either uClibc++ or libcxx

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: Ie6d7b1706314cbe82d4e89eb2d5c47ed36118ea4
2020-07-02 08:47:40 +02:00
Xiang Xiao
b217de70e5 apps: Remove all stuff related to CONFIG_xxx_CXXINITIALIZE
since it is moved to the central place in nuttx side instead

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I544d6110f1ca6460f7c82f970870aa9b1e7ab3dd
2020-07-01 10:03:12 -06:00
Alin Jerpelea
f571af1b2b Examples: camera: add a simple camera snapshot example
The camera example will take the specified number of pictures (default 10)
then will exit

To enable the example add the following line in your defconfig
EXAMPLES_CAMERA

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2020-07-01 07:53:25 +09:00
chao.an
8750db6090 examples: fix nxstyle warning
Change-Id: I617d9033604a4a85ae065ed67b9aa6128218ae49
Signed-off-by: chao.an <anchao@xiaomi.com>
2020-06-29 21:07:04 -05:00
chao.an
24407f16f5 net/sockopt: change the socket option style from Linux to BSD
Linux Programmer's Manual
...
IP(7)
...
NOTES
...
    Using the SOL_IP socket options level isn't portable;
    BSD-based stacks use the IPPROTO_IP level.

Change-Id: I143477d8884dd44913c5685028ee62854e4c11ac
Signed-off-by: chao.an <anchao@xiaomi.com>
2020-06-29 21:07:04 -05:00
Huang Qi
32a2207e86 examples/lvgldemo: Change to latest official release 2020-06-17 12:13:36 -03:00
Huang Qi
7a85bc75dc graphics/lvgl: Bump lvgl version to 7.0.2 2020-06-17 12:13:36 -03:00
Matias Nitsche
db338bfbb2 pty: nxstyle fixes 2020-06-15 21:22:14 +01:00
Matias Nitsche
f88e4af8af pty: support waiting for underlying serial device to appear, useful for pty over USBDEV serial device 2020-06-15 21:22:14 +01:00
Matias Nitsche
b888f5f5e6 pty: pause() instead of sleep for long time 2020-06-15 21:22:14 +01:00
Matias Nitsche
49e2c5fe70 bmp180: enable use for BMP280 as well 2020-06-15 20:11:40 +01:00
YAMAMOTO Takashi
faba0249c1 Include malloc.h instead of stdlib.h for mallinfo()
Adapt to the change in the main repo.

mallinfo is meant to be API compatible with Linux,
where it's provided by malloc.h.

(I think the API actually originated with System V. I don't
remember how it was there though. Anyway, I guess the
compatibility with Linux is more important than System V
these days.)
2020-06-15 07:21:52 -06:00
Ouss4
6fd57ba071 examples/pca9635/pca9635_main.c: The brightness struct name was changed
in the OS driver, thus this example needs to follow suit.
2020-06-12 15:01:36 -06:00