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
Brennan Ashton
c2057d77b2
crypto: Initial support for mbedtls
...
Signed-off-by: Brennan Ashton <bashton@brennanashton.com>
2021-11-04 15:20:14 -03:00
raiden00pl
f9cec1c770
examples/foc: move the motor controller code to separate files
2021-10-31 12:13:45 -05:00
raiden00pl
22ed7da99c
examples/foc: move the common FOC dev logic from threads to one place
2021-10-31 12:13:45 -05:00
raiden00pl
e0ef3cecb9
examples/foc: move FOC device data to foc_device_s
2021-10-31 12:13:45 -05:00
raiden00pl
33b34f8852
examples/foc: open FOC device in FOC threads
2021-10-31 12:13:45 -05:00
raiden00pl
2d034ed09a
examples/foc: separate motor control logic from motor state logic
2021-10-31 12:13:45 -05:00
Xiang Xiao
3ba18e5407
testing/ostest: Fix the compiler warning
...
aio.c: In function ‘check_done’:
aio.c:158:41: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘ssize_t’ {aka ‘volatile long int’} [-Wformat=]
158 | printf(" list[%d]. result = %d\n", i, aiocbp->aio_result);
| ~^ ~~~~~~~~~~~~~~~~~~
| | |
| int ssize_t {aka volatile long int}
| %ld
aio.c: In function ‘remove_done’:
aio.c:222:41: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘ssize_t’ {aka ‘volatile long int’} [-Wformat=]
222 | printf(" list[%d]. result = %d\n", i, aiocbp->aio_result);
| ~^ ~~~~~~~~~~~~~~~~~~
| | |
| int ssize_t {aka volatile long int}
| %ld
sporadic2.c: In function ‘sporadic2_test’:
sporadic2.c:313:10: warning: format ‘%i’ expects argument of type ‘int’, but argument 4 has type ‘long int’ [-Wformat=]
313 | printf("Sporadic 1: prio high %d, low %d, repl %" PRIi32 " ns\n",
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/xiaoxiang/backup/os/nuttx/nuttx/include/stdint.h:35,
from /home/xiaoxiang/backup/os/nuttx/nuttx/include/sys/types.h:32,
from /home/xiaoxiang/backup/os/nuttx/nuttx/include/stdio.h:30,
from sporadic2.c:27:
/home/xiaoxiang/backup/os/nuttx/nuttx/include/arch/inttypes.h:51:24: note: format string is defined here
51 | # define PRIi32 "i"
sporadic2.c:315:10: warning: format ‘%i’ expects argument of type ‘int’, but argument 4 has type ‘long int’ [-Wformat=]
315 | printf("Sporadic 2: prio high %d, low %d, repl %" PRIi32 " ns\n",
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-10-31 14:07:25 -03:00
raiden00pl
2fb79db8b4
examples/foc: replace the requested velocity input with a more general setpoint input.
...
This is the inital step to support torque/velocity/position control
2021-10-30 13:50:56 -05:00
raiden00pl
4001d27571
industry/foc: add support for Hall sensor
2021-10-30 10:17:07 -05:00
raiden00pl
5b52247625
industry/foc: add support for qenco
2021-10-30 10:17:07 -05:00
raiden00pl
df1638a3aa
industry/foc/*/foc_openloop.c: rename files to foc_ang_openloop.c
2021-10-30 10:17:07 -05:00
raiden00pl
ff839dcf3e
industry/foc/*/foc_openloop.c: adapt to previous changes
2021-10-30 10:17:07 -05:00
raiden00pl
515a25fbb8
industry/foc/*/foc_velocity.c: add methods to set the zero velocity and direction of the velocity
2021-10-30 10:17:07 -05:00
raiden00pl
6cafdae44a
industry/foc/*/foc_angle.c: add methods to set the zero angle and direction of the angle
2021-10-30 10:17:07 -05:00