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
SPRESENSE
0dc9be9596
graphics/pdcurs34: Fix a compile warning
...
Fix a compile warning when CONFIG_PDCURSES_MULTITHREAD=n.
2021-07-03 23:20:31 -05:00
SPRESENSE
95aece012a
graphics/pdcurs34: Fix compile error
...
Fix a compile error when CONFIG_SYSTEM_TERMCURSES=y.
2021-07-03 23:20:31 -05:00
Atsunori Saito
7b074bcf66
netutils/ftpc: ftpc_connect: Fixed invalid socket close.
2021-07-03 03:07:45 -05:00
ligd
192cbd8717
system/critmon: add thread run time support
...
Change-Id: I272a38f29a9aad3267052ce94643bbd73c8753a9
Signed-off-by: ligd <liguiding1@xiaomi.com>
2021-07-03 01:51:29 -05:00
ligd
4f68f43cc2
apps/Application.mk: support compile same prefix file in one folder
...
example:
one folder has aa.s aa.c aa.cpp, then only compile one file.
fix:
add .s/S/c/cxx/cpp to $(SUFFIX)
Change-Id: I6dbc66dda2c10415a698513285313f59f7dda054
Signed-off-by: ligd <liguiding1@xiaomi.com>
2021-07-03 01:50:42 -05:00
ligd
faa243844d
apps: add variable to identify main shell
...
Change-Id: Ifecfbb58b3c2cdbeae900eb2eeb2b641155a7580
Signed-off-by: ligd <liguiding1@xiaomi.com>
2021-07-02 09:09:31 -07:00
YAMAMOTO Takashi
55f921841d
netutils/telnetd: use a larger buffer for a 64-bit pointer
2021-07-02 04:18:23 -05:00
liuhaitao
4b8e0fde62
nshlib: Add 'rm -r' recursive remove directory support
...
Change-Id: Iafecb0a25cc9d091a1aee8f381b217e67d6e3925
Signed-off-by: liuhaitao <liuhaitao@xiaomi.com>
2021-07-01 14:55:04 -07:00
ligd
2f2d3e5723
examples/watchdog: add depends on CONFIG_WATCHDOG
...
Change-Id: I266145bef5c6ba2912457163f7e909146d4732b4
Signed-off-by: ligd <liguiding1@xiaomi.com>
(cherry picked from commit 201d0bb19fa9577841021964511cfe5b129b7937)
2021-07-01 14:32:25 -07:00
Atsunori Saito
5b1a4a3832
netutils/ftpc: ftpc_getfile: Fixed permission check and resume offset.
2021-07-01 09:22:37 -05:00