YAMAMOTO Takashi
3690669242
examples/fboverlay/fboverlay_main.c: Fix a printf format warning
2020-11-15 19:43:36 -08:00
YAMAMOTO Takashi
c408462892
examples/romfs/romfs_main.c: Fix a printf format warning
2020-11-14 17:49:14 -08:00
YAMAMOTO Takashi
473fef4e58
examples/romfs/romfs_main.c: Appease nxstyle
2020-11-14 17:49:14 -08:00
YAMAMOTO Takashi
fa727e08f1
examples/fboverlay/fboverlay_main.c: Fix printf format warnings
2020-11-14 17:49:14 -08:00
YAMAMOTO Takashi
0d3fde2d6b
examples/media/media_main.c: Fix printf format warnings
2020-11-14 17:49:14 -08:00
YAMAMOTO Takashi
780891f8aa
examples/media/media_main.c: Appease nxstyle
2020-11-14 17:49:14 -08:00
Alan C. Assis
03284a07b9
Fix license headers on Make.defs and Makefile
2020-11-13 05:52:38 -08:00
Alan C. Assis
048c44cd61
Add ESP32 High Memory Application Example
2020-11-13 05:52:38 -08:00
YAMAMOTO Takashi
590e6432cb
examples/udp/udp_client.c: Fix a printf format warning
2020-11-13 05:51:23 -08:00
YAMAMOTO Takashi
4f99572f65
examples/chrono/chrono_main.c: Fix a few printf format warnings
2020-11-13 05:51:23 -08:00
YAMAMOTO Takashi
a0c7a719c4
examples/chrono/chrono_main.c: Appease nxstyle
2020-11-13 05:51:23 -08:00
YAMAMOTO Takashi
229d62eddb
examples/mount/mount_main.c: Fix printf format warnings
2020-11-13 05:51:23 -08:00
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
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