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
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
liuhaitao
0b322c9784
examples/thttpd: update Makefile etc to fix build break
...
Signed-off-by: liuhaitao <liuhaitao@xiaomi.com>
2020-06-10 21:31:51 +08:00
Huang Qi
afaf013832
examples/lvgldemo: Make touch calibration optional
...
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2020-06-10 08:44:36 -03:00
liuhaitao
2c924f657f
examples/nxflat: update Makefile etc to fix build break
...
Signed-off-by: liuhaitao <liuhaitao@xiaomi.com>
2020-06-09 21:40:20 +08:00
Xiang Xiao
3f6343d3e7
examples/buttons: Switch dependence from ARCH_HAVE_BUTTONS to BUTTONS
...
application just use BUTTONS ioctl and shouldn't take care the implementation detail
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: Ia4d615700de1ac17302ab9b6379340fb81e69d86
2020-06-06 01:03:20 +01:00
Xiang Xiao
8e9e49a2f8
examples/leds: Switch dependence from ARCH_HAVE_LEDS && !ARCH_LEDS to USERLED
...
application just use USERLED ioctl and shouldn't take care the implementation detail
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I5b707d86db1bd96d85b6fed1d5a403584739f0d7
2020-06-06 01:03:20 +01:00
Xiang Xiao
8f18b23352
examples: Fix the wrong dependence about config.h
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: Iabedaa5da6439f4bfc34fb861382276446b4224f
2020-06-02 12:49:19 +02:00
Xiang Xiao
d03ff1bde6
build: Remove the duplicated mksymtab.sh
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-24 08:26:55 -06:00
Xiang Xiao
69f013e74e
build: Remve the unnecessary .gitignore
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-23 15:56:35 +01:00
Xiang Xiao
ea7437c2a8
Fix nxstyle issue
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-22 12:25:09 +01:00
Xiang Xiao
ea135b89c6
build: Replace all -I to INCDIR
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-21 17:43:42 +01:00
Xiang Xiao
ead498a788
build: Remove the workaround for the inexistence of .config/Make.defs
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-21 17:43:42 +01:00
Xiang Xiao
9be0be5d47
build: host executable should use HOSTEXEEXT not EXEEXT
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-19 08:58:10 -06:00
Xiang Xiao
6a26547dec
build: Move INCDIROPT to common place
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-18 15:37:24 -06:00
Xiang Xiao
d232823e63
build: Replace WINTOOL with CYGWIN_WINTOOL Kconfig
...
so the correct value can be determinated by Kconfig system automatically
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-18 15:37:24 -06:00
liuhaitao
79e544f032
exmaples: some nxstyle fixes for module/sotest/thttpd
...
Signed-off-by: liuhaitao <liuhaitao@xiaomi.com>
2020-05-15 13:36:05 +08:00
liuhaitao
0c60624276
Update make dependency for elf/module/nxflat/posix_spawn/sotest/thttpd
...
Update make dependency for elf/module/nxflat/posix_spawn/sotest/thttpd examples which make use of
mksymtab.sh. This could avoid them built twice in 'make depend' and 'make all' which would result
in file truncated build break. Now only build once by 'make all'.
Change-Id: I5d8f1ebbf73e3b12d7d2118f1f51b4233d0ed007
Signed-off-by: liuhaitao <liuhaitao@xiaomi.com>
2020-05-15 13:36:05 +08:00
Masayuki Ishikawa
ba3baa57a5
examples: ftpc: Fix style violations in ftpc_main.c
...
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-05-14 18:17:57 -06:00
Masayuki Ishikawa
9a90b65355
examples: ftpc: Fix a compile warning for IPv4 only configuration
...
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-05-14 18:17:57 -06:00
Xiang Xiao
9d78e5b4c2
Remove executable bit from source code
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-13 06:52:34 -06:00
chao.an
3aefe08cba
examples/dhcpd: reuse the router ip/mask from dhcpd lib
...
Change-Id: I6a9a783b9d9c8b9a4e56a885232a759f0adaeccb
Signed-off-by: chao.an <anchao@xiaomi.com>
2020-05-09 13:31:15 -06:00
chao.an
018c9420ac
netutils/dhcpd: cancelable dhcp daemon
...
Change-Id: Iea3c0b8f91b0d6d8ececcd3932d8756a9d021608
Signed-off-by: chao.an <anchao@xiaomi.com>
2020-05-09 13:31:15 -06:00
Gregory Nutt
baea789137
examples/thttpd/content/tasks/tasks.c: nxstyle check.
2020-05-09 14:55:38 -03:00
Gregory Nutt
3abdf30e8c
examples/thttpd/content/tasks/tasks.c: Update OS internal name
...
This logic uses the OS internal nxsched_foreach() function. This is a violation of the POSIX OS interface. But for now, we just update the name.
2020-05-09 14:55:38 -03:00
Pelle
0704bd2e49
Example application for the hdc1008 driver.
2020-05-07 03:09:27 +01:00
Xiang Xiao
7a99d62ca1
Fix nxstyle warning
...
Signed-off-by: Xiang Xiao <xiaox
iang@xiaomi.com>
2020-05-06 07:31:10 -06:00
Xiang Xiao
8a1f5ee34c
debug: Reduce CONFIG_CPP_HAVE_VARARGS usage
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-06 07:31:10 -06:00
Xiang Xiao
cfe030db40
examples: Replace all -luc with -lc
...
follow up the kernel side change
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-02 03:34:25 +01:00
liuhaitao
1fbfa8669c
Cleanup testdir dir in make distclean
...
Signed-off-by: liuhaitao <liuhaitao@xiaomi.com>
2020-05-01 13:48:39 +08:00
Xiang Xiao
42bde7fb27
examples: Remove the prefix of main from bmi160 and charger
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-04-30 08:50:20 -06:00
Xiang Xiao
547bad9e2a
Remove the unnecessary BUILD_FLAT dependence from Kconfig
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-04-29 11:46:53 -06:00
Xiang Xiao
dcc620e6b8
Kconfig: Change !BUILD_PROTECTED && !BUILD_KERNEL to BUILD_FLAT
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-04-29 07:23:51 -06:00
Xiang Xiao
7da4a34aac
examples: Remove all '#undef __KERNEL__' from source code
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-04-28 08:58:14 -06:00
liuhaitao
e8b5c47eb8
examples/unionfs: clean up the residual files after 'make distclean'
...
Signed-off-by: liuhaitao <liuhaitao@xiaomi.com>
2020-04-28 13:31:22 +08:00
Xiang Xiao
3bd2bc04b5
examples/unionfs: Remove [a|b]testdir.h in distclean
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-04-25 20:38:04 -06:00
Gregory Nutt
7b2e06b674
Fix errors from DEFAULT_TASK_SIZE change
...
There were several places where default sector and buffer sizes of 2048 were changed to DEFAULT_TASK_STACKSIZE. This is not correct. This was noted by Xiao Xiang.
2020-04-25 16:13:28 -03:00
Alin Jerpelea
c9eaf0beaa
examples: i2sloop: nxstyle fixes
...
nxstyle fixes for i2sloop exaple
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2020-04-21 16:41:51 -06:00
Alin Jerpelea
3cdb81077b
examples: i2schar: nxstyle fixes
...
nxstyle fixes for i2schar exaples
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2020-04-21 16:41:51 -06:00
Xiang Xiao
0c84e22aaf
example: Remove all APPNAME from Makefile
...
which doesn't use anymore
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-04-19 10:29:34 -06:00
Xiang Xiao
4431d770b4
.gitignore: Add more entries found during prcheck testing
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-04-19 10:29:34 -06:00
Xiang Xiao
b813944a7a
example/nettest: tcpclient and tcpserver to .gitignore
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-04-19 21:48:38 +08:00
YAMAMOTO Takashi
1b572ff169
Use MODULESTRIP where appropriate
2020-04-17 14:43:33 +08:00
Qi Huang
5018ee264c
graphics/littlevgl: Fix lvgl internal warning with patch
...
examples/lvgldemo: Fix build warning with specific config
Signed-off-by: Qi Huang <huangqi3@xiaomi.com>
2020-04-16 19:06:05 +08:00
liuhaitao
b8dc15f646
examples/thttpd: align to elf/posix_spawn exmaples to fix depend build warning
...
Build warning logs as below:
arm-none-eabi-gcc: warning: ./hello/Makefile: linker input file unused because linking not done
Signed-off-by: liuhaitao <liuhaitao@xiaomi.com>
2020-04-15 11:39:15 -03:00
Qi Huang
771811c1d7
examples/lvgldemo: Fix nxstyle
...
Signed-off-by: Qi Huang <huangqi3@xiaomi.com>
2020-04-15 11:38:24 -03:00
Qi Huang
2bb4cbf9ca
examples/littlevgl: Add missing btn event handler
...
Signed-off-by: Qi Huang <huangqi3@xiaomi.com>
Change-Id: I4048fbd4907e465fe8f3a1a57c8ff830730a5bc3
2020-04-15 11:38:24 -03:00
Qi Huang
94b8dbe7aa
examples/lvgldemo: Port all demos to LVGL V6.1.2
...
Signed-off-by: Qi Huang <huangqi3@xiaomi.com>
Change-Id: Ie139af71e88d887bffefcd9b97977124c5a9e1c3
2020-04-15 11:38:24 -03:00
Qi Huang
13606dc253
apps/examples/lvgldemo: Port new simple demo from LVGL V6.1.2
...
Signed-off-by: Qi Huang <huangqi3@xiaomi.com>
Change-Id: I1051edc15b6f66ce34d2f813964e0e8630ec351f
2020-04-15 11:38:24 -03:00
Qi Huang
b7e96b473d
apps/examples/lvgldemo: Update the lvgl init procedure
...
Signed-off-by: Qi Huang <huangqi3@xiaomi.com>
Change-Id: I36d250d7839a86d486dcb8f720fcf12f9b954327
2020-04-15 11:38:24 -03:00
Qi Huang
1fa30e59d3
apps/examples/lvgldemo: Port tp_cal.c for LVGL V6.1.2
...
Signed-off-by: Qi Huang <huangqi3@xiaomi.com>
Change-Id: I1fead13274822276e08d3f54016b079b174a1544
2020-04-15 11:38:24 -03:00
Qi Huang
25876e8222
apps/examples/lvgldemo: Update fb flush callback for LVGL V6.1.2
...
Signed-off-by: Qi Huang <huangqi3@xiaomi.com>
Change-Id: I72a6ff628f2ea2b0b505e444c84b266ba3a28d87
2020-04-15 11:38:24 -03:00
Qi Huang
20f3db7317
apps/examples/lvgldemo: Update touchpad read callback for LittleVGL V6.1
...
Signed-off-by: Qi Huang <huangqi3@xiaomi.com>
Change-Id: I8df8ff81832ce651a4c2678d534a6aeb85cff6a7
2020-04-15 11:38:24 -03:00
Gregory Nutt
58085e5983
Run nxstyle against files modified in previous commit.
2020-04-12 19:17:49 +01:00
Gregory Nutt
f95d753759
Fix warnings noted in PR build checks.
...
userfs_main.c:547:7: warning: variable 'ret' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized]
if (*relpath == '\0')
^~~~~~~~~~~~~~~~
userfs_main.c:564:10: note: uninitialized use occurs here
return ret;
^~~
userfs_main.c:547:3: note: remove the 'if' if its condition is always false
if (*relpath == '\0')
^~~~~~~~~~~~~~~~~~~~~
userfs_main.c:543:10: note: initialize the variable 'ret' to silence this warning
int ret;
^
= 0
test_motor.c:1068:14: warning: explicitly assigning value of variable of type 'float' to itself [-Wself-assign]
expected_e = expected_e;
~~~~~~~~~~ ^ ~~~~~~~~~~
2020-04-12 19:17:49 +01:00
Gregory Nutt
3e73991857
nxstyle fixes for PR 170
2020-04-11 20:32:53 +01:00
Gregory Nutt
05f2253a33
Remove CONFIG_CAN_PASS_STRUCT
...
This is the companion to PR #766 . It removes the CONFIG_CAN_PASS_STRUCT option as recommended by Issue #620
NuttX PR #766 depends on PR being in place but not vice versa. This PR should be merge-able without #766 and then PR #766 should also pass its checks.
2020-04-11 20:32:53 +01:00
Ouss4
d7df165c45
examples/udp: When a host PC is used, take its implementation of hton/ntoh functions.
2020-04-03 18:09:02 -06:00
raiden00pl
dd95e35787
examples/dsptest: fix nxstyle issues
2020-04-03 22:23:23 +01:00
YAMAMOTO Takashi
97b439f180
examples/udp: Avoid using non-standard s6_addr16
...
Also, fixes endian issues.
2020-04-02 11:39:59 +01:00
YAMAMOTO Takashi
d5ec9f91ae
examples/udp: Avoid common symbols
2020-04-02 11:39:59 +01:00
YAMAMOTO Takashi
d55401d3fc
examples/udp: Avoid conflicts with host OS definitions
2020-04-02 11:39:59 +01:00
YAMAMOTO Takashi
d79de16657
examples/udp: Appease nxstyle errors
2020-04-02 11:39:59 +01:00
Ouss4
5e245cf34b
examples/tcpblaster: When a host PC is used, take its implementation of hton/ntoh functions.
2020-03-31 14:35:57 +08:00
YAMAMOTO Takashi
326c80db72
tcpblaster: Appease nxstyle complaints
2020-03-30 02:12:02 -05:00
YAMAMOTO Takashi
7e6e19d80c
tcpblaster: Fix build on macOS
...
s6_addr is in standard. s6_addr16 is not.
See RFC 2553.
2020-03-30 02:12:02 -05:00
YAMAMOTO Takashi
5f91364d44
tcpblaster: Avoid conflicting with host OS definitions
2020-03-30 02:12:02 -05:00
YAMAMOTO Takashi
e8b0c903bc
examples/udpblaster: Fix some nxstyle errors
2020-03-28 11:56:44 -05:00
YAMAMOTO Takashi
60378318d3
udpblaster: Fix build on macOS
...
s6_addr is in standard. s6_addr16 is not.
See RFC 2553.
2020-03-28 11:56:44 -05:00
YAMAMOTO Takashi
4ac7744c2e
Appease nxstyle complaints
2020-03-28 10:21:48 -05:00
YAMAMOTO Takashi
cf30257f1c
examples/udpblaster: Avoid conflicts with host OS definitions
2020-03-28 10:21:48 -05:00
YAMAMOTO Takashi
c9c1d2bbc6
Change the default of stack size configs to DEFAULT_TASK_STACKSIZE
...
Where:
* Under examples and testing
* And the default value is less than 2048
Using a bit more memory for examples and tests should not
be a critical problem.
2020-03-27 02:43:11 -05:00