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