Commit Graph

5492 Commits

Author SHA1 Message Date
Juha Niskanen
b283289986 apps: fix miscellaneous typos
Signed-off-by: Juha Niskanen <juha.niskanen@haltian.com>
2021-08-26 11:39:28 -07:00
Gustavo Henrique Nihei
602092dc81 boot/mcuboot: Bump MCUboot version
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2021-08-20 13:23:38 -03:00
Gustavo Henrique Nihei
325a40b4d1 boot/mcuboot: Deactivate warnings to enable build of MCUboot library
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2021-08-20 13:23:38 -03:00
Gustavo Henrique Nihei
ea5eb0c1d0 boot/mcuboot: Default to Tinycrypt as crypto backend
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2021-08-20 06:44:15 -03:00
Gustavo Henrique Nihei
794cfd0c5c boot/mcuboot: Add support for MCUboot bootloader
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2021-08-20 06:44:15 -03:00
raiden00pl
e6b767f185 examples: add Hall effect sensor example 2021-08-19 08:32:24 -07:00
SPRESENSE
8e0892b2f2 nshlib: Fix write buffer position in nsh cp command
The iobuffer for write buffer position need to be update if write
API cannot write data at once.
2021-08-19 08:31:34 -07:00
Alin Jerpelea
1c3d08a738 canutils: libcanutils: add GPL build barrier
Exclude libcanutils from build unless the license is set to
allow GPL code in the build.

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-08-18 13:28:17 -03:00
YAMAMOTO Takashi
23e0325698 webclient: check content-length
While it's better to use a reliable transport like
TLS with working close notify, it isn't always possible.
2021-08-16 09:47:44 -07:00
Alin Jerpelea
c9bee94bd7 apps: canutils: libcanutils: move error.h from NuttX
This file is used by the libcanutils and can be isolated in apps

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-08-16 09:45:33 -07:00
Xiang Xiao
605c90aedc examples/userfs: Implement the dummy callback of fchstat and chstat
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-08-15 12:52:47 +02:00
YAMAMOTO Takashi
66650f223b netlib: Change the type of url_s:port to uint16_t
uint16_t is what's used in netlib and webclient in most of places.
There is a static analizer complaining on the type mismatch.
(It's actually harmless as far as I understand though.)
2021-08-12 04:33:44 -07:00
YAMAMOTO Takashi
f6c194944c netlib.h: Fix an nxstyle error 2021-08-12 04:33:44 -07:00
Juha Niskanen
c6436bfdbb fsutils/mksmartfs: fix confusing ioctl return value with errno value
Signed-off-by: Juha Niskanen <juha.niskanen@haltian.com>
2021-08-11 10:38:00 -03:00
YAMAMOTO Takashi
bdae564c22 webclient: Add _s suffix to internal structures
To follow our coding standard.

I left the structures which is a part of the API for now.
(E.g. struct webclient_context)
2021-08-11 03:11:14 -07:00
raiden00pl
4fa7248036 examples/qencoder: add an option to configure the encoder maximum position
Signed-off-by: raiden00pl <raiden00@railab.me>
2021-08-11 03:08:45 -07:00
YAMAMOTO Takashi
b8fd862965 webclient: Add some assertions on webclient_context state 2021-08-08 22:34:26 -07:00
YAMAMOTO Takashi
cb1f7c9dfe webclient.h: Document webclient_client lifetime 2021-08-08 22:34:26 -07:00
YAMAMOTO Takashi
0bae950b63 webclient: Implement non-blocking I/O
* webclient_perform
    * Add a new flag to use non-blocking mode (WEBCLIENT_FLAG_NON_BLOCKING)
    * Implement restarting

* Add a few associated API functions
    * webclient_get_poll_info: get the descriptor info for poll/select
    * webclient_abort: abort the operation (instead of restarting)
2021-08-08 22:34:26 -07:00
Xiang Xiao
d4d2f13f89 Rename CONFIG_LIB_BOARDCTL to CONFIG_BOARDCTL
since boardctl isn't a libc feature

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-08-06 11:04:35 +02:00
Xiang Xiao
967f526850 Rename LIB_ to LIBC_ for all libc Kconfig
follow other libc component naming convention

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-08-05 16:42:32 +02:00
Xiang Xiao
ad3f44bc77 Change match to fnmatch
follow the kernel side change

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-08-02 16:15:57 -03:00
Xiang Xiao
1120bc844a examples/media: Fix the compiler warning
format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'off_t' {aka 'long long int'}

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-08-02 15:52:11 +02:00
chao.an
72abd300e6 system/dumpstack: add dump stack tool support
Signed-off-by: chao.an <anchao@xiaomi.com>
2021-08-01 23:56:36 -07:00
Xiang Xiao
4109f0e8ba examples/media: Fix the compiler wanring after off_t type change
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-08-02 10:05:59 +08:00
Nakamura, Yuuichi (ITDD)
f6dfd1dbb2 system/trace: Fix trace output for the correct display in Trace Compass 2021-08-01 08:43:24 -07:00
anjianjun
54d94d21b8 testing/fstest:Support test fs with parameter
Signed-off-by: anjianjun <anjianjun@xiaomi.com>
2021-07-30 21:02:42 -07:00
SPRESENSE
6367449751 system/embedlog: Fix sed command usage for macOS
The `sed` command only with `-i` option has not been supported
on macOS platform, and so it causes build error on macOS.
Fix Makefile so that it passes on all platforms without using
`-i` option.
2021-07-29 10:07:22 +02:00
Abdelatif Guettouche
b1fb24d5b9 testing/ostest/barrier: Remove duplicate initialization of the barrier's
attributes.

Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2021-07-28 21:13:14 -07:00
Abdelatif Guettouche
025ce0e008 testing/ostest/barrier: Fix the message printed when
pthread_barrier_init fails.

Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2021-07-28 21:13:14 -07:00
Abdelatif Guettouche
eb228229d8 testing/smp/smp_main.c: Remove duplicate initialization of the barrier's
attributes.

Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2021-07-28 21:13:14 -07:00
Abdelatif Guettouche
e5667b1d3d testing/smp/smp_main.c: Fix the message printed when
pthread_barrier_init fails.

Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2021-07-28 21:13:14 -07:00
raiden00pl
e21330df53 examples: add CORDIC example 2021-07-28 14:25:17 -03:00
raiden00pl
a0fbd104fa industry/foc: add support for CORDIC 2021-07-28 14:24:08 -03:00
Gustavo Henrique Nihei
a1026c9f23 netutils/webclient: Notify HTTP header data via dedicated callback
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2021-07-23 11:28:26 -07:00
chao.an
496aa3ef4f netutils/dhcpd: bind socket to the interface
Change-Id: Icf7cf8147ceca5e27b7b923d520e2189741d9882
Signed-off-by: chao.an <anchao@xiaomi.com>
2021-07-23 08:25:36 -03:00
Xiang Xiao
8ba32a8c16 Fix the printf warning after blkcnt_t change
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-07-22 04:44:16 -07:00
songnannan
f4b84c0ba7 fix(sensortest): move set_interval and batch before activate.
modify coding style err.

Change-Id: Ib820b81a9a774070b5c4778d11ecb70f1f7cd846
Signed-off-by: songnannan <songnannan@xiaomi.com>
2021-07-22 13:05:20 +02:00
Oleg
51c778bc5c system/cu: fix setting termios with parity
clear only the bits in c_cflag that will be set by cu
2021-07-19 03:06:57 -07:00
Jiuzhu Dong
7d457b4d0b pipe: modify default stack size to fix stack overflow
Change-Id: I16910ff216db6b915d7c1cc4084c0b79228769a5
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2021-07-12 20:27:39 -07:00
ligd
b72b4e4bad Application.mk: correct depends file generated
wrong: file.c => file.dir.o
right: file.c => file.c.dir.o

Change-Id: I5dff2c05c88d4c5d7678acdcce15e87caa23bdaf
Signed-off-by: ligd <liguiding1@xiaomi.com>
2021-07-12 17:52:10 -03:00
Brennan Ashton
15731d795c Add support for libtomcrypt 2021-07-12 17:49:26 -03:00
Brennan Ashton
178745bba5 Add support for libtommath 2021-07-12 17:49:26 -03:00
Jiuzhu Dong
32e7a7fde0 nshlib: support c++ access nsh api
N/A

Change-Id: I90de4a4ce1f089a2db2e3b81f83f7b39434d6421
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2021-07-12 04:43:36 -07:00
Xiang Xiao
ca70e585b1 system/nxlooper: Fix the following compiler warning
nxlooper.c: In function 'nxlooper_opendevice':
Error: nxlooper.c:126:15: error: unused variable 'x' [-Werror=unused-variable]
  126 |       uint8_t x;
      |               ^
Error: nxlooper.c:125:15: error: unused variable 'supported' [-Werror=unused-variable]
  125 |       uint8_t supported = true;
      |               ^~~~~~~~~
In file included from nxlooper.c:40:
nxlooper.c: In function 'nxlooper_loopthread':
Error: nxlooper.c:482:15: error: format '%d' expects argument of type 'int', but argument 3 has type 'ssize_t' {aka 'long int'} [-Werror=format=]
  482 |       audinfo("message received size %d id%d\n", size, msg.msg_id);
      |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ~~~~
      |                                                  |
      |                                                  ssize_t {aka long int}
nxlooper.c:482:39: note: format string is defined here
  482 |       audinfo("message received size %d id%d\n", size, msg.msg_id);
      |                                      ~^
      |                                       |
      |                                       int
      |                                      %ld
cc1: all warnings being treated as errors
make[3]: *** [/github/workspace/sources/apps/Application.mk:133: nxlooper.c.github.workspace.sources.apps.system.nxlooper.o] Error 1
nxlooper_main.c: In function 'nxlooper_cmd_loopback':
Error: nxlooper_main.c:209:9: error: implicit declaration of function 'nxlooper_loopraw'; did you mean 'nxlooper_stop'? [-Werror=implicit-function-declaration]
  209 |   ret = nxlooper_loopraw(plooper, channels, bpsamp,
      |         ^~~~~~~~~~~~~~~~
      |         nxlooper_stop

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-07-10 07:45:42 -03:00
ligd
b831e1192e Application.mk: correct depends file generated
wrong: file.c => file.dir.o
right: file.c => file.c.dir.o

Change-Id: I5dff2c05c88d4c5d7678acdcce15e87caa23bdaf
Signed-off-by: ligd <liguiding1@xiaomi.com>
2021-07-06 07:03:03 -05:00
Xiang Xiao
9b7fe15bfb Generate c source code dependence with c compiler and flags
It's wrong to invoke the c++ compiler with c++ flags

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I2536daa764275221ca530fd5abfc7568af921570
2021-07-06 07:03:03 -05:00
SPRESENSE
931a873d04 examples/configdata: Fix some printf format warnings
Fix some printf format warnings by -Wformat.
2021-07-03 23:21:11 -05:00
SPRESENSE
4afa1f1514 examples/charger: Fix some printf format warnings
Fix some printf format warnings by -Wformat.
2021-07-03 23:21:11 -05:00
SPRESENSE
814f10544e examples/bmi160: Fix printf format warning
Fix printf format warning by -Wformat.
2021-07-03 23:21:11 -05:00