Commit Graph

5692 Commits

Author SHA1 Message Date
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
ligd
a4dd508c9c nshlib/nsh_proccmds.c: update ps_callback when get Group
Cause of "Group:" always have in file "status"

Signed-off-by: ligd <liguiding1@xiaomi.com>
2021-11-11 11:13:04 -03:00
Xiang Xiao
850c036c58 nshlib/stdsession: Handle the command arguments in any order
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-11-09 13:39:10 -03:00
Xiang Xiao
ad09ca2a80 nshlib: sync nsh_stdsession.c with nsh_session.c
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-11-09 13:39:10 -03:00
Xiang Xiao
a0f773b318 nshlib/nsh_session: Handle the command arguments in any order
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-11-09 09:35:40 -03:00
Xiang Xiao
991e491c94 nsh: Remove the duplicated NSH_MMCSDMINOR
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-11-08 10:43:47 -03:00
Xiang Xiao
35e442d08c system/readline: Move READLINE_HAVE_EXTMATCH inside SYSTEM_READLINE section
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-11-08 10:43:47 -03:00
erhan cengiz
6b7fe2ac51 FOC Kconfig corrected 2021-11-08 07:40:09 -06:00
Xiang Xiao
8b447704d3 nshlib: Disable Individual commands when DEFAULT_SMALL equals y
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-11-07 13:17:52 +01:00
raiden00pl
629e5a8e62 examples/foc: add support for sensor index search 2021-11-07 03:46:17 -06:00
raiden00pl
54c0b9a9d8 industry/foc/foc_align: 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
171a3c41df industry/foc/qenco: add support for encoder index 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
Gustavo Henrique Nihei
19b9c2371c boot/mcuboot: Add support for using Mbed TLS as crypto backend
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2021-11-04 23:22:29 -05:00
Gustavo Henrique Nihei
6942378695 boot/mcuboot: Fix inclusion of more than one example app
Even though the options existed, the second application would override
the values, resulting in the missing first application on the final
binary.

Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2021-11-04 23:22:14 -05:00
Gustavo Henrique Nihei
fbdfb0ef96 crypto/mbedtls: Bump Mbed TLS to version 3.0.0
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2021-11-04 23:19:58 -05: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
5a9b3a70f7 industry/foc/fixed16/foc_ang_hall.c: fix warning 2021-11-04 13:50:57 -05:00
raiden00pl
9076c899d4 industry/foc/fixed16/foc_align.c: fix incorrect b16_t operations 2021-11-04 13:50:57 -05:00
Cocoacrumbs
a846e55a0e Fixes BAS list 'Error: Break at: end of program' error. 2021-11-04 13:48:57 -05:00
Gustavo Henrique Nihei
ea49e7edf6 README.md: Add export restriction notice for MbedTLS 2021-11-04 15:20:14 -03:00