Commit Graph

2108 Commits

Author SHA1 Message Date
Norman Rasmussen
2e773bcdc6 Use macros from fixedmath.h for manipulating duty cycle
This avoids magic shift logic in code, and has no change to behavior.
2021-12-29 06:25:27 -06:00
Norman Rasmussen
28c133a503 Adjust channel and duty bounds to allow testing sentinel values
commit 7354ab187ed701ae041b45a0a6603878ab9b165d and commit
1e2f06718103e7028809012a69b7ac932e9ae537 added code to skip all
remaining channels when the channel number is -1. This adds support for
testing that using the example app. The BL602 driver's first channel is
channel 0, so this also allows the example app to select the first
channel.
2021-12-29 06:25:27 -06:00
Norman Rasmussen
75c1e43334 increase number of supported PWM channels from 4 to 6
commit d8199fe460 changed Kconfig, but it
looks like pwm_main.c should have been changed too. This adds support
for the 5th and 6th channels to the code, and adds an error if more than
6 channels are configured.
2021-12-29 06:25:27 -06:00
Norman Rasmussen
ec93611307 examples/mqttc: Fix handling of getaddrinfo errors
commit 36d4bfa774 set a hostname to work
around getaddrinfo failing. getaddrinfo returns a non-zero value on
error, and there should be an early return after the error message is
printed.
2021-12-29 02:45:47 -06:00
Petro Karashchenko
5ac15130db apps: remove space befone newline in logs
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2021-12-27 20:52:08 -06:00
Diego Herranz
0e8e08e2a0 Add example app for isl29023 driver
Created from the hdc1008_demo example.
2021-12-25 19:53:05 +08:00
Alan C. Assis
64a09770c8 apps/sht3x: Add simple application to test SHT3x sensor 2021-12-24 12:02:45 -06:00
zhanghu6
2bd3a1701c sched note: printf API example
test API:
void sched_note_string(FAR const char *buf);
void sched_note_dump(uint32_t module, uint8_t event,
                     FAR const void *buf, size_t len);
void sched_note_printf(FAR const char *fmt, ...) printflike(1, 2);
void sched_note_bprintf(uint32_t module, uint8_t event,
                        FAR const char *fmt, ...) printflike(3, 4);
https://github.com/apache/incubator-nuttx/pull/4963

suggestion:
1. add "&" after the command when running this example.
2. must enable SCHED_INSTRUMENTATION_DUMP, and that enable CONFIG_SYSTEM_TRACE can help you view log.
2021-12-19 20:29:52 -06:00
Fadil R. Berisha
2aadb22301 examples/wget: Saving a file downloaded with wget
wget [-o <local-path>] <url>
2021-12-19 20:28:56 -06:00
Diego Herranz
7ba6f7cdb3 examples/hdc1008_demo: fix formatting after decimal point
Modulo operation used to calculate digits after decimal point,
but if that result is <10, a leading zero wasn't added, giving a
wrong value.

Same as 34c7bec0dc
but on the example app.
2021-12-18 07:14:03 -06:00
Jari van Ewijk
21e0ff1153 timer_gpout example: rename to timer_gpio 2021-12-09 12:00:44 -06:00
Jari van Ewijk
128996fb5f timer_gpout example: use /dev/gpioN instead of /dev/gpoutN 2021-12-09 12:00:44 -06:00
Jari van Ewijk
71f5af47e4 GPIO example application: Add support for changing pintypes 2021-12-09 11:34:53 -06:00
raiden00pl
0577bd2c33 examples/foc: add a simple character based interface to interact with the app 2021-12-08 12:20:42 -06:00
raiden00pl
37aa562f03 examples/foc: move adc and button interfaces logic to a separate file 2021-12-07 07:51:12 -06:00
raiden00pl
ea27aacbd2 examples/foc: move threads related logic to a separate file 2021-12-07 07:51:12 -06:00
raiden00pl
3fda1294d7 examples/foc: move setpoint and vbus configuration from foc_adc.h to foc_cfg.h 2021-12-07 07:51:12 -06:00
raiden00pl
edeaacedb0 examples/foc/foc_cfg.h: fix typo 2021-12-07 07:51:12 -06:00
Xiang Xiao
9397e92fcd examples/thttpd: Don't touch task_tcb_s::argv field
since it move to task_info_s now

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-12-06 09:58:38 +01:00
futerigele
c26e5a0b44 examples/touchscreen: added timestamp printing in tc
added timestamp printing in tc

Signed-off-by: futerigele <futerigele@xiaomi.com>
2021-12-04 01:05:16 -06:00
liushuai25
02ff4a8a59 fix: fb: set overlay to 0
when CONFIG_FB_OVERLAY=y, need set overlay=0,
otherwise the lcd driver doesn't know which
layer to get.

Signed-off-by: liushuai25 <liushuai25@xiaomi.com>
2021-11-25 08:00:45 -06:00
Xiang Xiao
75c11d4480 examples/helloxx: add extern "C" to main implementation directly
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-11-23 17:23:05 -03:00
erhan cengiz
6b7fe2ac51 FOC Kconfig corrected 2021-11-08 07:40:09 -06:00
raiden00pl
629e5a8e62 examples/foc: add support for sensor index search 2021-11-07 03:46:17 -06:00
raiden00pl
15b66aa128 examples/foc: add Qenco support 2021-11-07 03:44:03 -06:00
raiden00pl
f38d7d2ed3 examples/foc: terminate main loop if FOC control loop terminated 2021-11-07 03:42:06 -06:00
raiden00pl
5ee9572531 examples/foc: add Hall sensor support 2021-11-04 13:50:57 -05:00
raiden00pl
c771942d8e examples/foc: add support for sensor alignment 2021-11-04 13:50:57 -05:00
raiden00pl
b30f3329f6 foc/examples: initial logic to support torque, velocity and position controller modes 2021-11-04 13:50:57 -05:00
raiden00pl
b0eeefd0a5 examples/foc: add logic for controller state machine 2021-11-04 13:50:57 -05:00
raiden00pl
f9cec1c770 examples/foc: move the motor controller code to separate files 2021-10-31 12:13:45 -05:00
raiden00pl
22ed7da99c examples/foc: move the common FOC dev logic from threads to one place 2021-10-31 12:13:45 -05:00
raiden00pl
e0ef3cecb9 examples/foc: move FOC device data to foc_device_s 2021-10-31 12:13:45 -05:00
raiden00pl
33b34f8852 examples/foc: open FOC device in FOC threads 2021-10-31 12:13:45 -05:00
raiden00pl
2d034ed09a examples/foc: separate motor control logic from motor state logic 2021-10-31 12:13:45 -05:00
raiden00pl
2fb79db8b4 examples/foc: replace the requested velocity input with a more general setpoint input.
This is the inital step to support torque/velocity/position control
2021-10-30 13:50:56 -05:00
raiden00pl
9c8e3cc46a examples/foc: add option to disable open-loop operations
Initial step towards sensored control
2021-10-30 10:00:38 -05:00
raiden00pl
cc4d817df4 examples/foc: use getopt to parse arguments 2021-10-30 07:59:02 -05:00
raiden00pl
013caaa334 examples/foc: move the parse args logic to a separate file 2021-10-30 07:59:02 -05:00
Xiang Xiao
8d3a536650 examples/charger: Update enum type usage per kernel change
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-09-30 15:37:05 +09:00
SPRESENSE
d8757a6bcf examples/camera: Fix some issues and update license
Fix some issues and update license to apache.
- Fails to open the video driver.
- Change format from YUV422 to RGB565,
  and add captured image output to LCD.
- An application cannot exit by infinite loop.
- In video-only mode without capturing still images,
  do not allocate capture memory for still images to
  reduce the memory usage.
2021-09-16 10:45:36 +02:00
Alin Jerpelea
7ffa080a2a examples: camera: add EXAMPLES_CAMERA_OUTPUT_LCD
until the camera patches are merged we must add the
EXAMPLES_CAMERA_OUTPUT_LCD option to Kconfig

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-09-15 14:47:45 +08:00
Vagner Guadagnin
b11dcc34c6 examples/wgetjson: fix concatenation len buffer json 2021-09-12 09:08:49 -03:00
Alexander Lunev
7a88209077 examples/ipforward: improved ipforward test to analyze the order of forwarded packets 2021-09-04 14:24:47 +08:00
Juha Niskanen
b283289986 apps: fix miscellaneous typos
Signed-off-by: Juha Niskanen <juha.niskanen@haltian.com>
2021-08-26 11:39:28 -07:00
raiden00pl
e6b767f185 examples: add Hall effect sensor example 2021-08-19 08:32:24 -07:00
Xiang Xiao
605c90aedc examples/userfs: Implement the dummy callback of fchstat and chstat
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-08-15 12:52:47 +02:00
raiden00pl
4fa7248036 examples/qencoder: add an option to configure the encoder maximum position
Signed-off-by: raiden00pl <raiden00@railab.me>
2021-08-11 03:08:45 -07:00
Xiang Xiao
d4d2f13f89 Rename CONFIG_LIB_BOARDCTL to CONFIG_BOARDCTL
since boardctl isn't a libc feature

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-08-06 11:04:35 +02:00
Xiang Xiao
967f526850 Rename LIB_ to LIBC_ for all libc Kconfig
follow other libc component naming convention

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-08-05 16:42:32 +02:00
Xiang Xiao
1120bc844a examples/media: Fix the compiler warning
format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'off_t' {aka 'long long int'}

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-08-02 15:52:11 +02:00
Xiang Xiao
4109f0e8ba examples/media: Fix the compiler wanring after off_t type change
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-08-02 10:05:59 +08:00
raiden00pl
e21330df53 examples: add CORDIC example 2021-07-28 14:25:17 -03:00
Jiuzhu Dong
7d457b4d0b pipe: modify default stack size to fix stack overflow
Change-Id: I16910ff216db6b915d7c1cc4084c0b79228769a5
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2021-07-12 20:27:39 -07:00
SPRESENSE
931a873d04 examples/configdata: Fix some printf format warnings
Fix some printf format warnings by -Wformat.
2021-07-03 23:21:11 -05:00
SPRESENSE
4afa1f1514 examples/charger: Fix some printf format warnings
Fix some printf format warnings by -Wformat.
2021-07-03 23:21:11 -05:00
SPRESENSE
814f10544e examples/bmi160: Fix printf format warning
Fix printf format warning by -Wformat.
2021-07-03 23:21:11 -05:00
ligd
2f2d3e5723 examples/watchdog: add depends on CONFIG_WATCHDOG
Change-Id: I266145bef5c6ba2912457163f7e909146d4732b4
Signed-off-by: ligd <liguiding1@xiaomi.com>
(cherry picked from commit 201d0bb19fa9577841021964511cfe5b129b7937)
2021-07-01 14:32:25 -07:00
Sara Souza
b15e78b9fa examples: Adds Timer gpout example 2021-06-18 16:52:00 -06:00
Abdelatif Guettouche
bde687bac0 examples/elf: Drop the 0x when printing pointers.
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2021-06-16 21:21:28 -05:00
Abdelatif Guettouche
ff48ece8fb Fix few typos in builtin/ and sotest_main example.
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2021-06-16 21:21:28 -05:00
Xiang Xiao
7847c1f974 example/posix_spawn: Ensure argv has filename and NULL terminator
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-06-16 12:07:11 -06:00
Alin Jerpelea
869535e470 examples: nxstyle fixes
fixes for nxstyle errors reported by CI

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-06-16 09:03:06 -05:00
Alin Jerpelea
2ac8589a25 examples: fix relative path CI error
error: Path relative to repository other than nuttx must begin with the root directory
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-06-16 09:03:06 -05:00
Alin Jerpelea
d9dad2a99e author: Bob Feretich: update licenses to Apache
Gregory Nutt has submitted the SGA

RAF Research has submitted the SGA

as a result we can migrate the licenses to Apache.

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-06-16 09:03:06 -05:00
Alin Jerpelea
e0d26edcd7 author: Sebastien Lorquet: update licenses to Apache
Gregory Nutt has submitted the SGA

Sebastien Lorquet has submitted the ICLA

as a result we can migrate the licenses to Apache.

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-06-16 09:03:06 -05:00
Alin Jerpelea
1671147a87 author: Max Holtzberg : update licenses to Apache
Gregory Nutt has submitted the SGA

Max Holtzberg has submitted the SGA

as a result we can migrate the licenses to Apache.

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-06-16 09:03:06 -05:00
Alin Jerpelea
1c24e87605 author: Abdelatif GUETTOUCHE: update licenses to Apache
Gregory Nutt is has submitted the SGA

Abdelatif GUETTOUCHE has submitted the ICLA

as a result we can migrate the licenses to Apache.

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-06-16 09:03:06 -05:00
Alin Jerpelea
efcc22ab6e author: Ken Pettit: update licenses to Apache
Ken Pettit has submitted the ICLA

Gregory Nutt is has submitted the SGA

as a result we can migrate the licenses to Apache.

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-06-16 09:03:06 -05:00
Alin Jerpelea
0e9d68046f author: Mateusz Szafoni: update licenses to Apache
Mateusz Szafoni has submitted the ICLA

Gregory Nutt is the copyright holder for those files and he has submitted the
SGA as a result we can migrate the licenses to Apache.

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-06-16 09:03:06 -05:00
Alin Jerpelea
20309ee58c author: Laurent Latil: update licenses to Apache
Gregory Nutt is has submitted the SGA

Laurent Latil has submitted the ICLA

as a result we can migrate the licenses to Apache.

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-06-16 09:03:06 -05:00
Michal Lenc
aa79958bea examples/qencoder: fix nxstyle warning and errors
Signed-off-by: Michal Lenc <michallenc@seznam.cz>
2021-06-16 08:39:59 -03:00
Alin Jerpelea
6bc7a448de examples: author: Gregory Nutt: update licenses to Apache
Gregory Nutt is has submitted the SGA

as a result we can migrate the licenses to Apache.

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-06-15 05:16:58 -05:00
Xiang Xiao
99e1674912 Call posix_spawn with filename as the first argv entry
pair with the kernel side change to follow the standard defintion:
https://pubs.opengroup.org/onlinepubs/009695399/functions/posix_spawn.html

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-06-14 07:12:54 -06:00
Michal Lenc
21562e8960 examples/dhtxx: added configuration option for dhtxx sensor devpath
Signed-off-by: Michal Lenc <michallenc@seznam.cz>
2021-06-14 06:13:39 -05:00
Alin Jerpelea
f73cc8cda7 Author: Michal Lyszczek: update licenses to Apache
Gregory Nutt is has submitted the SGA

Michal Lyszczek has submitted the ICLA

as a result we can migrate the licenses to Apache.

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-06-11 05:05:27 -05:00
Xiang Xiao
d9c1c5bbc8 Include assert.h in necessary place
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-06-08 13:04:34 -07:00
Alin Jerpelea
8cc5da627e examples: Alan Carvalho de Assis: update licenses to Apache
Gregory Nutt is has submitted the SGA

Alan Carvalho de Assis has submitted the ICLA

as a result we can migrate the licenses to Apache.

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-06-08 08:43:15 -05:00
Alin Jerpelea
e9f1ce7e32 Makefile: Laurent Latil: update licenses to Apache
Gregory Nutt is has submitted the SGA

Laurent Latil has submitted the ICLA

as a result we can migrate the licenses to Apache.

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-06-07 21:35:33 -05:00
Alin Jerpelea
1e88c73107 Makefile: Ken Pettit: update licenses to Apache
Gregory Nutt is has submitted the SGA

Ken Pettit has submitted the ICLA

as a result we can migrate the licenses to Apache.

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-06-07 21:35:33 -05:00
Alin Jerpelea
bde535b436 Makefile: Max Holtzberg: update licenses to Apache
Gregory Nutt is has submitted the SGA

Max Holtzberg has submitted the SGA

as a result we can migrate the licenses to Apache.

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-06-07 21:35:33 -05:00
Alin Jerpelea
ea1ced8ba3 Makefiles: Mateusz Szafoni: update licenses to Apache
Gregory Nutt is has submitted the SGA

Mateusz Szafoni has submitted the ICLA

as a result we can migrate the licenses to Apache.

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-06-07 21:35:33 -05:00
Alin Jerpelea
59c607c8dc Makefile: Sebastien Lorquet: update licenses to Apache
Gregory Nutt is has submitted the SGA

Sebastien Lorquet has submitted the ICLA

as a result we can migrate the licenses to Apache.

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-06-07 21:35:33 -05:00
Alin Jerpelea
34fd877f89 Makefile: Alan Carvalho de Assis: update licenses to Apache
Gregory Nutt is has submitted the SGA

Alan Carvalho de Assis has submitted the ICLA

as a result we can migrate the licenses to Apache.

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-06-07 21:35:33 -05:00
Alin Jerpelea
ec339bc49a Makefiles: Gregory Nutt: update licenses to Apache
Gregory Nutt is the copyright holder for those files and he has submitted the
SGA as a result we can migrate the licenses to Apache.

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-06-07 21:35:33 -05:00
Xiang Xiao
1140bebfc0 Fix nxstyle warning
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-06-03 13:56:27 +09:00
Xiang Xiao
602ff0cd76 Include assert.h in necessary place
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-06-03 13:56:27 +09:00
RoCorbera
61ddfeba17 add SIGTERM handling in leds example
following the idea of having a kill \<pid\> that will send SIGTERM default signal to the task,
this example of a "daemon leds" will handle SIGTERM in order to gracefully terminate itself.
It allows to restart this daemon after correctly terminating it.
2021-06-01 15:56:55 -03:00
Abdelatif Guettouche
99ec1bec61 examples/lvgl & graphics/lvgl: Use the usual Q variable for quiet instead of @.
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2021-06-01 09:07:31 -05:00
Abdelatif Guettouche
4a72b8d132 examples/lvgldemo: LVGL examples are now called lv_demos and not
lv_examples.

Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2021-06-01 09:07:31 -05:00
Xiang Xiao
d6d458c60b Include assert.h in necessary place
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-06-01 14:11:16 +09:00
raiden00pl
be14592e84 examples/pwm: fix printf format warnings 2021-05-31 08:32:06 -05:00
raiden00pl
10ab78b028 examples/foc/foc_float_thr.c: fix incorect variable type 2021-05-31 08:31:45 -05:00
Xiang Xiao
213e60232f Include assert.h in necessary place
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-05-31 08:51:22 +02:00
Sara Souza
b203d14c7b examples/termios: Adds option to disable HW flow control 2021-05-30 22:32:29 -05:00
Sara Souza
7a7ef0db59 examples/alarm: fix typo and coding style issues 2021-05-29 23:05:23 +01:00
Xiang Xiao
82ed7bf5b1 Include debug.h for xerr/xinfo/xwarn caller
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-05-24 19:52:54 +09:00
Xiang Xiao
1ee948e0c8 Include assert.h for DEBUGASSERT caller
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-05-24 12:34:37 +09:00
Sara Souza
b8817e2a6d examples/termios: Small fix on a print message 2021-05-23 12:21:12 -05:00
Alexander Lunev
5f05678e7d examples/nxflat: fixed an issue with the symbol table creation (#3737#issuecomment-844574935) 2021-05-22 14:04:16 -05:00
Tanushree Baindur
bff92219cd Check CONFIG_BOARDCTL_ROMDISK is set
CONFIG_BOARDCTL_ROMDISK must be set to enable boardctl(BOARDIOC_ROMDISK)
    in these 2 files:
    examples/nxflat/nxflat_main.c
    examples/thttpd/thttpd_main.c
2021-05-19 20:42:24 -05:00
Tanushree Baindur
ab41d23d7c Apps Issue #246:Replace romdisk_register() with boardctl(BOARDIOC_ROMDISK)
files changed: examples/nxflat/nxflat_main.c
               examples/thttpd/thttpd_main.c

examples/thttpd: Fix error: unused variable 'desc'
2021-05-17 07:13:51 -05:00
Diego Herranz
d74ac654a9 hdc1008_demo: set intial measurement mode
No mode was set before the first read by the app.
The first time the app was run, it worked properly, reading
temperature and humidity on the first read(). But subsequent reads
returned humidity only since that was last mode set up.
Also, the ioctl read was returning invalid results.
2021-05-16 11:31:31 -03:00
Michał Łyszczek
ccc8ddaf5d system/embedlog: update to v0.6.0
Changes from v0.4.0
- add thread safety code
- add option to print function info (name) in logs
- abi/api stabilization
- bug fixes + increased reliability

Signed-off-by: Michał Łyszczek <michal.lyszczek@bofc.pl>

---
v1 -> v2 [suggested by Brennan Ashton]
 - fix path to embedlog_main.c in header comment
 - change license from bsd3 to apache2.0
2021-05-16 11:30:29 -03:00
Xiang Xiao
e352bdca4f examples/module: Fix error: unused variable 'desc'
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-05-13 04:54:28 -05:00
Xiang Xiao
e25a303a73 examples/elf: Fix error: unused variable 'desc' [-Werror=unused-variable]
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-05-12 19:23:02 -07:00
Tanushree Baindur
f0c044adb1 Apps Issue #246: Replace romdisk_register() with boardctl(BOARDIOC_ROMDISK)
C file changes:
   examples/bastest/bastest_main.c
   examples/elf/elf_main.c
   examples/module/module_main.c
   examples/posix_spawn/spawn_main.c
   examples/romfs/romfs_main.c
   examples/sotest/sotest_main.c
   examples/unionfs/unionfs_main.c

Update examples/elf/elf_main.c

Co-authored-by: Xiang Xiao <xiaoxiang781216@gmail.com>

Update examples/unionfs/unionfs_main.c

Co-authored-by: Xiang Xiao <xiaoxiang781216@gmail.com>

Update examples/unionfs/unionfs_main.c

Co-authored-by: Xiang Xiao <xiaoxiang781216@gmail.com>

Update examples/posix_spawn/spawn_main.c

Co-authored-by: Xiang Xiao <xiaoxiang781216@gmail.com>

Update examples/elf/elf_main.c

Co-authored-by: Xiang Xiao <xiaoxiang781216@gmail.com>

Update examples/elf/elf_main.c

Co-authored-by: Xiang Xiao <xiaoxiang781216@gmail.com>
2021-05-12 04:41:51 -07:00
Diego Herranz
b52de67f6e examples/hdc1008_demo: fix header path
As recommended by the nxstyle CI check.
2021-05-08 23:09:30 -07:00
Diego Herranz
453d5f2866 examples/hdc1008_demo: fix wrong printf parameter
An extra "%d" that shouldn't be there
2021-05-08 23:09:30 -07:00
Alan C. Assis
0146e88001 examples/modbus: Add Reg Coil support and use it to control USERLEDs 2021-04-20 07:55:35 -05:00
Alan C. Assis
f7880bcca9 examples/modbus: Fix endianess, it was inverted 2021-04-20 07:55:35 -05:00
Sara Souza
acfd0a9b4e examples/mqttc: If connection() fails, then fd becomes invalid 2021-04-15 09:54:29 -03:00
Gustavo Henrique Nihei
dd38c7f920 examples/lvgldemo: Fix unused variable build warning 2021-04-12 22:28:18 -05:00
Gustavo Henrique Nihei
0b2fd06ab0 examples/lvgldemo: Check for more specific input subclass on ifdefs 2021-04-12 22:28:18 -05:00
Gustavo Henrique Nihei
852aa8a511 examples/lvgldemo: Make input options depend on enabled drivers 2021-04-11 12:08:09 -07:00
raiden00pl
864a61a431 Add FOC motor controller example
For now, only open-loop velocity control is supported.
2021-04-10 00:40:43 -05:00
Gustavo Henrique Nihei
a333a908a8 examples: Update missing DJOYSTICK macro to new INPUT template 2021-04-08 11:38:00 -03:00
Gustavo Henrique Nihei
62e0c2451b examples: Fit INPUT related configs to new naming template 2021-04-08 10:15:22 -03:00
Gustavo Henrique Nihei
e6df9f55f1 examples/lvgldemo: Add config to enable Slideshow mode for Widgets demo 2021-04-08 08:00:51 -03:00
Gustavo Henrique Nihei
cbce79ddb3 examples/lvgldemo: Add configuration for double buffering support 2021-04-08 07:59:03 -03:00
Gustavo Henrique Nihei
3e475e4a67 examples/lvgldemo: Add support for asynchronous flush 2021-04-06 10:47:45 -03:00
Alan C. Assis
f9e487ae1d modbus: Fix compilation issue and advice users about termios 2021-04-05 08:39:52 -05:00
Gustavo Henrique Nihei
478a7027d9 examples/lvgldemo: Enable build without input methods 2021-04-04 16:20:23 -03:00
Brennan Ashton
3638f1c3fa lvgldemo: Add support for lcddev
This provides an adaptor for using lvgl with the lcddev in
addition to the fbdev. As part of this it also fixes a compilation
error when fbdev was used with CONFIG_FB_UPDATE.  There is also
a monitoring callback enabled for monitoring the performance
of the demo.
2021-03-31 10:59:11 -03:00
Matias N
36d4bfa774 mqttc example: provide sane hostname default to avoid crash 2021-03-30 14:51:32 -05:00
raiden00pl
a4e170b7e9 remove examples/dsptest
This example doesn't make much sense, tests cases are incomplete, and it's nightmare to maintain with even the slightest changes in libdsp
2021-03-30 04:09:54 -05:00
Abdelatif Guettouche
6ae35ffc71 examples: Add an MQTT-C example.
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2021-03-29 08:52:14 -05:00
Sara Souza
bf71741452 examples/oneshot: fixed wrong constant and refactored 2021-03-24 12:08:36 -07:00
Xiang Xiao
d656982f7a build: Remove the null assignment
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-03-24 18:38:04 +01:00
Sara Souza
3bf2f31716 fixed coding style issue 2021-03-22 09:47:06 -07:00
Sara Souza
afad97d9f8 Apply 2 suggestion(s) to 2 file(s) 2021-03-22 09:47:06 -07:00
Sara Souza
577598d2df Apply 2 suggestion(s) to 1 file(s) 2021-03-22 09:47:06 -07:00
Sara Souza
8e3eca1836 apps/examples: Adds termios example 2021-03-22 09:47:06 -07:00
Nathan Hartman
017f5ed65c examples/qencoder/qe_main.c: Fix nxstyle errors 2021-03-21 20:52:43 -07:00
Nathan Hartman
331fd61115 examples/qencoder/qe_main.c: Fix printf() format specifier
examples/qencoder/qe_main.c:

    * main(): Call to printf() had "%d" but argument was
      int32_t, leading to compiler warning. Change format
      specifier to PRIi32 (suggested by Gregory Nutt).
2021-03-21 20:52:43 -07:00
YAMAMOTO Takashi
6cc1f189d2 examples/mtdpart: select CONFIG_BCH 2021-03-16 20:27:49 -07:00
YAMAMOTO Takashi
ea8cf7bad4 examples/mtdrwb: select CONFIG_BCH 2021-03-16 20:27:49 -07:00
Xiang Xiao
2f1ecbaf74 Change all .cpp suffix to .cxx suffix
follow the coding standard requirement

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-03-16 13:57:48 -07:00
Sara Souza
1673df81d1 apps/examples/watcher: Fixed an assert failure 2021-03-16 11:30:04 -07:00
Jiuzhu Dong
4c6ded2661 app: delete NFILE_DESCRIPTORS limits
Change-Id: I3ced2b2b7440a2c79a712cfc97b4cd15d2bddd4c
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2021-03-12 21:12:07 -08:00
ligd
d4259acc15 rpmsgsocket: add rpmsgsocket test case
Change-Id: Ia07b5915da2c9c96fa8137bcaecdf1b120c76853
Signed-off-by: ligd <liguiding1@xiaomi.com>
2021-03-05 07:51:51 -08:00
Gustavo Henrique Nihei
7ebd1309dd examples/watcher: Add missing dependencies on Kconfig 2021-02-18 17:30:17 +00:00
Gustavo Henrique Nihei
fe5732494b examples/watchdog: Fix printf format warnings 2021-02-15 20:04:07 -08:00
Brennan Ashton
22115cc011 hidkbd: Do not require CONFIG_USBHOST for the app 2021-02-15 00:02:37 -08:00
YAMAMOTO Takashi
6d1d6e76ea wget: print a message on an error
To give the user some clue on what's going.
2021-02-04 00:30:01 -08:00
Xiang Xiao
e4f76ac9eb examples/romfs: Add ldir(soft link) into check
since romfs can return the soft link with the kernel change:
commit 67ef70d460db4695b950208d861ff47d4a40bdb3
Author: Xiang Xiao <xiaoxiang@xiaomi.com>
Date:   Mon Jul 6 00:34:32 2020 +0800

    vfs/dirread: Should return the same file type as lstat

    by extend the possible value of d_type for the special file

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-01-21 11:12:40 -03:00
Juha Niskanen
b66002c364 examples/README.md: correct ftpc usage, other minor updates and typos 2021-01-19 19:51:33 +01:00
Xiang Xiao
95a06846bc examples/pty_test: Fix the hardcode uart device path
should be CONFIG_EXAMPLES_PTYTEST_SERIALDEV, regression in commit:
commit 6ddbffd200
Author: Xiang Xiao <xiaoxiang@xiaomi.com>
Date:   Sun Jan 3 23:50:50 2021 -0800

    examples/pty_test: Remove O_NONBLOCK from open

    to avoid the log storm:
    ERROR Failed to read from serial: 11
    ERROR Failed to read from serial: 11
    ERROR Failed to read from serial: 11
    ERROR Failed to read from serial: 11
    ERROR Failed to read from serial: 11
    ...

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-01-14 08:34:47 +01:00
Juha Niskanen
eceaeb926a netutils/ftpd, examples/ftpd: code cleanup and nxstyle
Signed-off-by: Juha Niskanen <juha.niskanen@haltian.com>
2021-01-13 20:22:55 -06:00
Xiang Xiao
6aca60133c nsh: Pass the correct command lines to nsh_consolemain
Change-Id: Ic6617cecb6949054e6bdce8757523e7a60d83eb0
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-01-13 16:40:18 +08:00
Xiang Xiao
6ddbffd200 examples/pty_test: Remove O_NONBLOCK from open
to avoid the log storm:
ERROR Failed to read from serial: 11
ERROR Failed to read from serial: 11
ERROR Failed to read from serial: 11
ERROR Failed to read from serial: 11
ERROR Failed to read from serial: 11
...

Change-Id: I821743411c33b5412165f1e9020b6c9ce6c24660
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-01-13 16:40:18 +08:00
Nathan Hartman
538c757340 apps/examples/webserver: nxstyle fixes
apps/examples/webserver/webserver_main.c:

    * Fix nxstyle errors.
2021-01-03 21:10:38 -06:00
Nathan Hartman
819454ee6e apps/examples/webserver: When NSH app, allow terminating
The examples/webserver app can be built in two modes:

    (1) in standalone mode, or
    (2) as a NSH built-in app.

When run in standalone mode, the webserver program is responsible for
bringing up the network (including DHCP if configured).  Also, the
webserver program must never exit, so if httpd fails (i.e., if
httpd_listen() returns), webserver_main() goes into an endless loop.

When run as a NSH built-in app, network bring-up is the responsibility
of other processes and the webserver program assumes the network is
already properly configured when it starts.  Also, if httpd_listen()
returns, the webserver program should terminate.

Prior to this change, the webserver program would *not* terminate,
even when running as a NSH built-in app.  For example:

    nsh> webserver &
    webserver [6:100]
    nsh> Starting webserver

    nsh> kill -9 6
    nsh> webserver_main: Still running
    nsh> webserver_main: Still running
    nsh> webserver_main: Still running
    nsh> webserver_main: Still running

The line "webserver_main: Still running" would be forever printed
every 3 seconds, however httpd_listen() is no longer running and the
webserver is not functional.

This change makes the webserver play nicely when running as a NSH
built-in app.  With this change applied:

    nsh> webserver &
    webserver [6:100]
    nsh> Starting webserver

    nsh> kill -9 6
    nsh> webserver_main: Exiting

apps/examples/webserver/webserver_main.c:

    * main(): Infer from CONFIG_NSH_BUILTIN_APPS if this is a
      standalone program or a NSH built-in app.  (See [1], where
      similar logic was added to decide whether to do network bring-up
      or not.)  If standalone, run forever as before.  If built-in
      app, exit when httpd terminates.

References:
[1] Commit 3a21b0b222
2021-01-03 21:10:38 -06:00
yjdwbj
92cfd092f7 added: Using nRF24L01+ as A Bluetooth Low Energy Broadcaster/Beacon 2020-12-29 21:13:17 -08:00
Huang Qi
3040c59ae9 Replace all wget with curl
wget is missing from some system (like macOS and Windows native),
it's better to use curl to simplify build environment.

Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2020-12-21 22:45:46 -06:00
Sara Souza
cb1a424bc1 examples/readme.txt: Added information about watcher example. 2020-12-18 09:10:33 -03:00
Sara Souza
c3494c310a examples: Added watcher and watched examples. 2020-12-18 09:10:33 -03:00
Juha Niskanen
5105474e77 examples/ftpc: proper dual-stack support, also fix getopt re-entrancy issues
Signed-off-by: Juha Niskanen <juha.niskanen@haltian.com>
2020-12-16 00:40:52 -06:00
John Bampton
db0b595b4b Remove unneeded semicolons and parentheses from Python files 2020-12-12 19:20:38 +01:00
YAMAMOTO Takashi
2bafb70ce1 examples/touchscreen/tc_main.c: Fix a syslog format 2020-12-04 00:04:35 +01:00
Matias N
02c3298fca LVGL: use NuttX's printf() 2020-11-30 22:28:29 -06:00
Diego Herranz
e066cd177c examples/pwm: fix style issue found in CI 2020-11-29 21:59:39 +01:00
Diego Herranz
37c8e5486c examples/pwm: fix help message
- Fix bug for multiple PWM outputs (CONFIG_PWM_MULTICHAN). Wrong define
was in use and only the information about the first channel was shown.
- Fix formatting (a few line breaks and spaces missing).
2020-11-29 21:59:39 +01:00
chao.an
fe915679b1 style/Document: remove unnecessary trailing whitespace
N/A

Signed-off-by: chao.an <anchao@xiaomi.com>
2020-11-28 12:20:10 +01:00
chao.an
b5692d8034 style/code: remove unnecessary trailing whitespace
N/A

Signed-off-by: chao.an <anchao@xiaomi.com>
2020-11-28 12:20:10 +01:00
Xiang Xiao
d64929d736 Fix nxstyle warning
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-11-28 12:19:39 +01:00
Xiang Xiao
12a5a5cce9 examples: Ignore the default action if app call sigwait
Because the configured signo may have the default action(e.g. SIGPIPE),
and then will generate the bad side effect before the caller wakeup.

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-11-28 12:19:39 +01:00
Xiang Xiao
0eac035245 examples/cctye: change std::isascii to isascii
since isascii isn't a standard defined function and then
may not exist in all cctype header file(e.g. libc++):
cctype_main.cxx: In function 'int cctype_main(int, char**)':
cctype_main.cxx:64:45: error: 'isascii' is not a member of 'std'; did you mean 'isascii'?
   64 |                       std::isspace(i), std::isascii(i), std::isprint(i), std::isgraph(i),
      |                                             ^~~~~~~

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I8c4fd5ccf120ae5a1566cd4d90695e47ffc30cad
2020-11-27 09:48:40 +09:00
Xiang Xiao
24b6f9199a examples/mld: Fix undefined reference to `mld_catfile'
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I0948b75fe3aea2351c3584cda9bcb7dd41cdd1f9
2020-11-24 19:33:57 +01:00
Xiang Xiao
a4ae159277 examples/i2schar: Fix the compile error
2schar_main.c: In function 'parse_args':
i2schar_main.c:199:20: error: 'struct i2schar_state_s' has no member named 'rxcount'
  199 |             i2schar->rxcount = (uint32_t)value;
      |                    ^~
i2schar_main.c:211:20: error: 'struct i2schar_state_s' has no member named 'txcount'
  211 |             i2schar->txcount = (uint32_t)value;
      |                    ^~
i2schar_main.c: In function 'i2schar_main':
i2schar_main.c:276:16: error: 'struct i2schar_state_s' has no member named 'rxcount'
  276 |       g_i2schar.rxcount = CONFIG_EXAMPLES_I2SCHAR_RXBUFFERS;
      |                ^

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: Ie85a9bc46516f44e4a286da3d40f1b02a2bbfde0
2020-11-24 04:07:55 -08:00
Xiang Xiao
736a21f0d5 examples/chrono: Rename button_daemon to chrono_daemon
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I1aaf0a6ec8466c35c96a35b30896def7917c8c03
2020-11-24 04:07:36 -08:00
Xiang Xiao
54d5def4d5 examples/chrono: Fix error: 'CONFIG_EXAMPLES_SLCD_DEVNAME' undeclared
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I04c09878ec55cbf910159ab84e0b402cc94dad9b
2020-11-24 04:07:36 -08:00
Philippe Coval
4e4c92fa98 fxos8700cq_test: Adjust rate and lint json output
Change-Id: Iab80381e4f451ac186515cd5593434d80e4c7421
Relate-to: https://github.com/rzr/aframe-smart-home/issues/3
Signed-off-by: Philippe Coval <rzr@users.sf.net>
2020-11-17 20:11:38 -08:00
YAMAMOTO Takashi
2d4d8aa643 examples/touchscreen/tc_main.c: Fix a printf format warning 2020-11-15 21:33:25 -08:00
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
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