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
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
Petro Karashchenko
421452690b
mcuboot/Kconfig: update hash commit to include fix for referenciation
...
error in memset call
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2021-11-24 17:51:26 -03: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
David Sidrane
4e9921c9b2
fsutils/mkfatfs:Allow for configurable buffer alignment
2021-11-22 20:54:21 -06:00
Xiang Xiao
fd2289a8a2
testing/sensortest: Fix printf format warning
...
sensortest.c: In function 'print_valu':
Error: sensortest.c:161:10: error: format '%u' expects argument of type 'unsigned int', but argument 4 has type 'uint32_t' {aka 'long unsigned int'} [-Werror=format=]
161 | printf("%s: timestamp:%" PRIu64 " value:%u\n",
| ^~~~~~~~~~~~~~~~~
162 | name, event->timestamp, event->ppg);
| ~~~~~~~~~~
| |
| uint32_t {aka long unsigned int}
sensortest.c:161:44: note: format string is defined here
161 | printf("%s: timestamp:%" PRIu64 " value:%u\n",
| ~^
| |
| unsigned int
| %lu
sensortest.c: In function 'print_gps':
Error: sensortest.c:169:10: error: format '%u' expects argument of type 'unsigned int', but argument 15 has type 'uint32_t' {aka 'long unsigned int'} [-Werror=format=]
169 | printf("%s: timestamp:%" PRIu64 " time_utc: %" PRIu64 " latitude: %f "
| ^~~~~~~~~~~~~~~~~
......
175 | event->ground_speed, event->course, event->satellites_used);
| ~~~~~~~~~~~~~~~~~~~~~~
| |
| uint32_t {aka long unsigned int}
sensortest.c:172:13: note: format string is defined here
172 | " %u\n", name, event->timestamp, event->time_utc, event->latitude,
| ~^
| |
| unsigned int
| %lu
sensortest.c: In function 'print_gps_satellite':
Error: sensortest.c:183:10: error: format '%u' expects argument of type 'unsigned int', but argument 4 has type 'uint32_t' {aka 'long unsigned int'} [-Werror=format=]
183 | printf("%s: timestamp: %" PRIu64 " count: %u satellites: %u", name,
| ^~~~~~~~~~~~~~~~~~
184 | event->timestamp, event->count, event->satellites);
| ~~~~~~~~~~~~
| |
| uint32_t {aka long unsigned int}
sensortest.c:183:46: note: format string is defined here
183 | printf("%s: timestamp: %" PRIu64 " count: %u satellites: %u", name,
| ~^
| |
| unsigned int
| %lu
Error: sensortest.c:183:10: error: format '%u' expects argument of type 'unsigned int', but argument 5 has type 'uint32_t' {aka 'long unsigned int'} [-Werror=format=]
183 | printf("%s: timestamp: %" PRIu64 " count: %u satellites: %u", name,
| ^~~~~~~~~~~~~~~~~~
184 | event->timestamp, event->count, event->satellites);
| ~~~~~~~~~~~~~~~~~
| |
| uint32_t {aka long unsigned int}
sensortest.c:183:61: note: format string is defined here
183 | printf("%s: timestamp: %" PRIu64 " count: %u satellites: %u", name,
| ~^
| |
| unsigned int
| %lu
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-11-19 00:14:59 +08:00
Xiang Xiao
ea91e25558
testing/sensortest: Fix printf format warning
...
sensortest.c: In function 'print_gps':
Error: sensortest.c:169:29: error: format '%llu' expects argument of type 'long long unsigned int', but argument 3 has type 'uint64_t' {aka 'long unsigned int'} [-Werror=format=]
169 | printf("%s: timestamp: %llu time_utc: %llu latitude: %f longitude: %f "
| ~~~^
| |
| long long unsigned int
| %lu
......
172 | " %u\n", name, event->timestamp, event->time_utc, event->latitude,
| ~~~~~~~~~~~~~~~~
| |
| uint64_t {aka long unsigned int}
Error: sensortest.c:169:44: error: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type 'uint64_t' {aka 'long unsigned int'} [-Werror=format=]
169 | printf("%s: timestamp: %llu time_utc: %llu latitude: %f longitude: %f "
| ~~~^
| |
| long long unsigned int
| %lu
......
172 | " %u\n", name, event->timestamp, event->time_utc, event->latitude,
| ~~~~~~~~~~~~~~~
| |
| uint64_t {aka long unsigned int}
sensortest.c: In function 'print_gps_satellite':
Error: sensortest.c:183:29: error: format '%llu' expects argument of type 'long long unsigned int', but argument 3 has type 'uint64_t' {aka 'long unsigned int'} [-Werror=format=]
183 | printf("%s: timestamp: %llu count: %u satellites: %u", name,
| ~~~^
| |
| long long unsigned int
| %lu
184 | event->timestamp, event->count, event->satellites);
| ~~~~~~~~~~~~~~~~
| |
| uint64_t {aka long unsigned int}
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-11-18 09:57:40 -03:00
丁欣童
0f58795f10
sensortest: support new gps struct and more sensor type.
...
Signed-off-by: buyuer <dingddding@163.com>
2021-11-17 08:59:43 -06:00
Abdelatif Guettouche
b345298232
system/sched_note/note_main.c: Fix the path of file in the header.
...
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2021-11-12 08:29:03 -06:00
Abdelatif Guettouche
610d3878af
system/sched_note/note_main.c: Some cosmetic changes to comments.
...
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2021-11-12 08:29:03 -06:00
Abdelatif Guettouche
e2975b5947
system/sched_note/note_main.c: Drop the ERROR string from the syslog
...
error messages as it's already prepended.
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2021-11-12 08:29:03 -06:00
Abdelatif Guettouche
49866a8fe4
system/sched_note/note_main.c: Change the priority of errors printed
...
through syslog.
Errors should have LOG_ERR instead of LOG_INFO.
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2021-11-12 08:29:03 -06:00
Abdelatif Guettouche
31ad83e018
system/sched_note/Makefile: Fix program name.
...
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2021-11-12 08:29:03 -06:00