Eero Nurkkala
2f44643704
canutils: odb_decodepid: fix two debug prints
...
Fix the following printfs, as reported by cppcheck:
canutils/libobd2/obd_decodepid.c:85:9: error: printf format string requires 1 parameter but only 0 are given. [wrongPrintfScanfArgNum]
printf("Supported PIDs: %08X\n");
^
canutils/libobd2/obd_decodepid.c:114:9: error: printf format string requires 2 parameters but only 1 is given. [wrongPrintfScanfArgNum]
printf("Throttle position = %d\% \n", (100 * dev->data[3])/255);
^
Signed-off-by: Eero Nurkkala <eero.nurkkala@offcode.fi>
2021-12-28 02:48:34 -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
Eero Nurkkala
ced74a064d
fsutils/ipcfg: fix debugassert
...
cppcheck reports the following error:
fsutils/ipcfg/ipcfg_binary.c:332:15: error: Uninitialized variable: fd [uninitvar]
DEBUGASSERT(fd >= 0 && ipv6cfg != NULL);
Update the DEBUGASSERT() to match that of ipcfg_read_binary_ipv4(). fd is
uninitilized and doesn't need to be checked here.
Signed-off-by: Eero Nurkkala <eero.nurkkala@offcode.fi>
2021-12-27 20:42:48 -06:00
chao.an
7c7841b53f
graphics/nxwidgets: Change CONFIG_USER_ENTRYPOINT to CONFIG_INIT_ENTRYPOINT
...
Signed-off-by: chao.an <anchao@xiaomi.com>
2021-12-25 07:28:29 -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
Alan Rosenthal
a1dbb472bc
Update gitignore to match new behavior in https://github.com/apache/incubator-nuttx/pull/5069
2021-12-23 21:52:57 -06:00
Gustavo Henrique Nihei
eb124a4357
ci: Bump github/super-linter version to V4
...
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2021-12-21 20:51:14 +01:00
Xiang Xiao
66dbaa4539
Replace self defined macros with NET_SOCK_[FAMILY|TYPE|PROTOCOL]
...
NET_SOCK_* is defined by nuttx/net/netconfig.h and then can be shared
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-12-20 16:04:29 -03:00
chao.an
fcd69d1cdf
system/lzf: correct the open mode
...
Signed-off-by: chao.an <anchao@xiaomi.com>
2021-12-20 09:12:52 -06:00
chao.an
419e6b012a
system/lzf: add support for host build
...
Signed-off-by: chao.an <anchao@xiaomi.com>
2021-12-20 09:12:52 -06:00
chao.an
5a61f9e0b0
system/lzf: fix nxstyle warning
...
Signed-off-by: chao.an <anchao@xiaomi.com>
2021-12-20 02:17:07 -06:00
chao.an
0f632f1d66
system/lzf: replace the semaphore to pthread to ensuring compatibility
...
Private SEM_INITIALIZER is incompatible with other OS
Signed-off-by: chao.an <anchao@xiaomi.com>
2021-12-20 02:17:07 -06:00
Xiang Xiao
ea9db635d6
industry/foc: Fix the wrong header file inclusion
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-12-20 09:13:21 +01: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
raiden00pl
2db90a8be5
wireless/bluetooth/nimble: make stacksize configurable
2021-12-18 20:24:02 -06:00
Gustavo Henrique Nihei
82646b9564
ci: Use GitHub Actions concurrency for cancelling duplicate jobs
...
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2021-12-18 07:14:25 -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
zhanghu6
1e28c3b9ea
trace dump: the note dump module of out keep string output
2021-12-14 11:16:54 -06:00
zhanghu6
a63aef8f02
warning: trace_dump_sched_switch unused because add SCHED_INSTRUMENTATION_SWITCH
...
https://github.com/apache/incubator-nuttx/pull/4998
note dump: add CONFIG_SCHED_INSTRUMENTATION_SWITCH #4998
2021-12-14 11:16:54 -06:00
zhanghu6
a2c8fa182a
trace dump: build error because add CONFIG_SCHED_INSTRUMENTATION_SWITCH in note driver
...
https://github.com/apache/incubator-nuttx/pull/4998
note dump: add CONFIG_SCHED_INSTRUMENTATION_SWITCH #4998
2021-12-14 11:16:54 -06:00
zhanghu6
cc8dd03b9c
trace dump: add string and binary
...
NOTE_DUMP_STRING
NOTE_DUMP_BINARY
And incubator-nuttx[trace: and sched note dump #4963 ] is together
2021-12-13 21:22:21 -06:00
Gustavo Henrique Nihei
8dd39b88c9
crypto/mbedtls: Fix occasional failures during Mbed TLS build
...
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2021-12-13 21:11:12 -06:00
Petro Karashchenko
afbd132b31
boot/mcuboot/Kconfig: extend configuration options
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2021-12-09 21:00:28 -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
Xiang Xiao
87d8494a6e
testing/ostest: Include nuttx/arch.h explicitly
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-12-08 16:32:47 +08: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
Xiang Xiao
14a52b1933
testing/ostest: Don't include arch/tls.h
...
since it doesn't exist any more
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-12-05 23:06:02 -03: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
Xiang Xiao
58586f86e3
system/cle: Make it work without CONFIG_FILE_STREAM
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-11-30 22:06:03 -06:00
Xiang Xiao
c8439368ac
system/readline: Make it work without CONFIG_FILE_STREAM
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-11-30 22:06:03 -06:00
Juha Niskanen
0c21a89a3f
testing/ostest: remove spurious redefinitions of NULL
...
Signed-off-by: Juha Niskanen <juha.niskanen@haltian.com>
2021-11-29 11:14:42 -06:00
songlinzhang
e0fc53b23c
netutils/dhcpc: add non-blocking interface
...
Signed-off-by: songlinzhang <songlinzhang@xiaomi.com>
2021-11-29 02:04:49 -06:00
Xiang Xiao
c9f736005a
testing/fstest: Zero g_nfailed too in fstest_delallfiles
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-11-27 10:07:01 -03:00
Xiang Xiao
f8ebeb8fd8
testing/fstest: Print the delta of memory info
...
to catch the memmory leak quickly
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-11-27 10:07:01 -03:00
Xiang Xiao
121a6e58ff
testing/fstest: Remove g_media_full since it isn't really used
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-11-27 10:07:01 -03:00
Xiang Xiao
7c4ddaeede
testing/fstest: Don't reuse the deleted name
...
to simplify the root cause analysis
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-11-27 10:07:01 -03:00
Xiang Xiao
1187351144
testing/fstest: Compare the file name directly
...
and remove crc of file name
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-11-27 10:07:01 -03:00
Xiang Xiao
3b64ad34c3
testing/fstest: Fix the typo error
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-11-27 10:07:01 -03:00
Abdelatif Guettouche
7b192f24fe
system/trace/trace.c: Condition the creation of "i" and "count"
...
varialbes with SYSCALL or IRQ instrumentation to avoid a warning.
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2021-11-27 05:48:13 -06:00
Abdelatif Guettouche
c26c4009d9
system/trace/trace_dump.c: Fix typo in a comment (NUL -> NULL).
...
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2021-11-27 05:48:13 -06:00
Petro Karashchenko
16accc17bf
mcuboot/Kconfig: update hash commit to include fix for compilation
...
warnings
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2021-11-25 15:59:19 -03:00