Commit Graph

1672 Commits

Author SHA1 Message Date
YAMAMOTO Takashi
e2b94845b8 examples/can/can_main.c: Fix printf format warnings 2020-11-13 05:51:23 -08:00
YAMAMOTO Takashi
8532f0ee96 examples/ina219/ina219_main.c: Fix a printf format warning 2020-11-13 05:51:23 -08:00
YAMAMOTO Takashi
e4823bc62c examples/bmp180/bmp180_main.c: Fix a printf format warning 2020-11-13 05:51:23 -08:00
YAMAMOTO Takashi
1c30ff6fe4 examples/dac/dac_main.c: Fix a printf format warning 2020-11-13 05:51:23 -08:00
YAMAMOTO Takashi
31118b0a94 examples/dac/dac_main.c: Appease nxstyle 2020-11-13 05:51:23 -08:00
YAMAMOTO Takashi
b2299b4c8f examples/can/can_main.c: Fix printf format warnings 2020-11-13 05:51:23 -08:00
YAMAMOTO Takashi
ff130be078 examples/fboverlay/fboverlay_main.c: Fix printf format warnings 2020-11-13 05:51:23 -08:00
YAMAMOTO Takashi
20c7a06a84 examples/fboverlay/fboverlay_main.c: Appease nxstyle 2020-11-13 05:51:23 -08:00
YAMAMOTO Takashi
379c0c1fd4 examples/fb/fb_main.c: Fix printf format warnings 2020-11-13 05:51:23 -08:00
YAMAMOTO Takashi
69b6bb32a8 examples/nrf24l01_term/nrf24l01_term.c: Fix a printf format warning 2020-11-13 05:51:23 -08:00
YAMAMOTO Takashi
2ff55ac151 examples/nrf24l01_term/nrf24l01_term.c: Appease nxstyle
Still has a few errors because of include/nuttx/wireless/nrf24l01.h.

examples/nrf24l01_term/nrf24l01_term.c:125:33: error: Mixed case identifier found
examples/nrf24l01_term/nrf24l01_term.c:129:15: error: Mixed case identifier found
2020-11-13 05:51:23 -08:00
YAMAMOTO Takashi
0b792be90a examples/pwm/pwm_main.c: Fix printf format warnings 2020-11-13 05:51:23 -08:00
YAMAMOTO Takashi
acc750c8d6 examples/can/can_main.c: Fix printf format warnings 2020-11-13 05:51:23 -08:00
YAMAMOTO Takashi
a9e8b5c3b0 examples/can/can_main.c: Appease nxstyle 2020-11-13 05:51:23 -08:00
YAMAMOTO Takashi
4ff27f2a03 examples/serialrx/serialrx_main.c: Fix a printf format warning 2020-11-13 05:51:23 -08:00
YAMAMOTO Takashi
575063150d examples/serialrx/serialrx_main.c: Appease nxstyle 2020-11-13 05:51:23 -08:00
YAMAMOTO Takashi
6d2bba1004 examples/pwlines/pwlines_update.c: Fix a printf format warning 2020-11-13 05:51:23 -08:00
YAMAMOTO Takashi
2556c6f800 examples/pwlines/pwlines_update.c: Appease nxstyle 2020-11-13 05:51:23 -08:00
YAMAMOTO Takashi
20b7b28f55 examples/bridge/bridge_main.c: Fix printf format warnings 2020-11-13 05:51:23 -08:00
YAMAMOTO Takashi
c3e63c2a3b examples/bridge/bridge_main.c: Appease nxstyle 2020-11-13 05:51:23 -08:00
YAMAMOTO Takashi
5a766cd93b examples/elf/elf_main.c: Fix a printf format warning 2020-11-13 05:51:23 -08:00
YAMAMOTO Takashi
1723a68b0a examples/posix_spawn/spawn_main.c: Fix a type mismatch 2020-11-13 05:51:23 -08:00
YAMAMOTO Takashi
67f18f8f2c examples/touchscreen/tc_main.c: Fix a printf format warning 2020-11-13 05:51:23 -08:00
YAMAMOTO Takashi
c8f2f0f262 examples/touchscreen/tc_main.c: Appease nxstyle 2020-11-13 05:51:23 -08:00
YAMAMOTO Takashi
89a4d02fce examples/adc/adc_main.c: Fix a printf format warning 2020-11-13 05:51:23 -08:00
YAMAMOTO Takashi
5576c127fd examples/adc/adc_main.c: Appease nxstyle 2020-11-13 05:51:23 -08:00
YAMAMOTO Takashi
7fa6f69756 examples/sx127x_demo/sx127x_demo.c: Fix printf format warnings 2020-11-13 05:51:23 -08:00
YAMAMOTO Takashi
53f9f600d2 sx127x_demo.c: Appease nxstyle 2020-11-13 05:51:23 -08:00
YAMAMOTO Takashi
c5c327ab02 examples/gpio/gpio_main.c: Fix a printf format warning 2020-11-13 05:51:23 -08:00
YAMAMOTO Takashi
99884e40f1 examples/buttons/buttons_main.c: Fix a printf format warning 2020-11-13 05:51:23 -08:00
YAMAMOTO Takashi
700b10f2aa examples/buttons/buttons_main.c: Appease nxstyle 2020-11-13 05:51:23 -08:00
YAMAMOTO Takashi
54cb3ca933 examples/mtdrwb/mtdrwb_main.c: Fix a printf format warning 2020-11-13 05:51:23 -08:00
YAMAMOTO Takashi
3993e99471 examples/mtdrwb/mtdrwb_main.c: Appease nxstyle 2020-11-13 05:51:23 -08:00
YAMAMOTO Takashi
ffc32ad70d examples/mtdpart/mtdpart_main.c: Fix printf format warnings 2020-11-13 05:51:23 -08:00
YAMAMOTO Takashi
2aa2e0d897 examples/mtdpart/mtdpart_main.c: Appease nxstyle 2020-11-13 05:51:23 -08:00
YAMAMOTO Takashi
20b0ebfd08 examples/mount/mount_main.c: Fix fprintf format warnings 2020-11-13 05:51:23 -08:00
YAMAMOTO Takashi
175432f54b examples/pf_ieee802154/pf_client.c: Fix a printf format warning 2020-11-13 05:51:23 -08:00
YAMAMOTO Takashi
16f805cb22 examples/pf_ieee802154/pf_client.c: Appease nxstyle 2020-11-13 05:51:23 -08:00
YAMAMOTO Takashi
0d09a09f33 examples/module/module_main.c: Fix printf format warnings 2020-11-13 05:51:23 -08:00
YAMAMOTO Takashi
4736d33410 examples/ipforward/ipforward.c: Fix printf format warnings 2020-11-13 05:51:23 -08:00
YAMAMOTO Takashi
dcfebf1cea examples/ipforward/ipforward.c: Appease nxstyle 2020-11-13 05:51:23 -08:00
YAMAMOTO Takashi
5b1eeb5cae examples/nxlines/nxlines_bkgd.c: Fix printf format warnings 2020-11-13 05:51:23 -08:00
YAMAMOTO Takashi
5ee054186c examples/nxlines/nxlines_bkgd.c: Appease nxstyle 2020-11-13 05:51:23 -08:00
YAMAMOTO Takashi
862a9fcbda examples/pwm/pwm_main.c: Fix printf format warnings 2020-11-13 05:51:23 -08:00
YAMAMOTO Takashi
b04e19ffc7 examples/pwm/pwm_main.c: Appease nxstyle 2020-11-13 05:51:23 -08:00
saramonteiro
2e8f068a61 examples/watchdog/watchdog_main.c: Elapsed var is now being updated through clock 2020-11-07 23:36:14 -08:00
Subhra Sankha Sarkar
c431c25d14 Fix for sim:mount selftest failure 2020-11-05 18:44:15 -08:00
Matias N
0d7ef382c8 hello: update to Apache license 2020-10-31 09:27:23 -07:00
Matias N
5bcaeff541 lvgl: use malloc/free for memory handling and "tickless" tick interface
This makes LVGL use malloc/free to handle its memory (instead of
their own memory handling) and supports a tick interface by which
LVGL can ask NuttX the elapsed time, instead of having to periodically
"tick" LVGL internal time in a thread.
2020-10-29 22:26:32 -07:00
Xiang Xiao
e76ab9c868 Remove all fclose with stdin, stdout and stderr
since it is wrong to close the builtin stream and specially note
https://pubs.opengroup.org/onlinepubs/9699919799/functions/fclose.html:

Since after the call to fclose() any use of stream results in
undefined behavior, fclose() should not be used on stdin, stdout,
or stderr except immediately before process termination (see XBD
Process Termination), so as to avoid triggering undefined behavior
in other standard interfaces that rely on these streams. If there
are any atexit() handlers registered by the application, such a
call to fclose() should not occur until the last handler is
finishing. Once fclose() has been used to close stdin, stdout, or
stderr, there is no standard way to reopen any of these streams.

and it is also unnecessary because the stream always get flushed.

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-10-29 20:43:59 +09:00
saramonteiro
2279eeb0a7 Examples/WDT: Added argument to select devname 2020-10-27 14:10:35 -03: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
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