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