Petro Karashchenko
539b7363d0
Revert "examples/timer_gpio: fix initialization of timer notification"
...
This reverts commit e431abe2ed
.
2022-10-23 08:29:01 +02:00
Petro Karashchenko
fe4b44e3ff
Revert "nshlib: fix possible out of bounds array access"
...
This reverts commit f6a86a578d
.
2022-10-23 08:29:01 +02:00
Petro Karashchenko
a7567ce7b6
Revert "system/spi: improve alignment in array initialization"
...
This reverts commit ef952aac96
.
2022-10-23 08:29:01 +02:00
Petro Karashchenko
f613d05496
Revert "system/libuv: minor style fixes in Makefile"
...
This reverts commit d7ce4226ef
.
2022-10-23 08:29:01 +02:00
Petro Karashchenko
8e1ee24f9e
Revert "include/canutils/lely: fix file path in comment header"
...
This reverts commit bc84e5eb3c
.
2022-10-23 08:29:01 +02:00
Xiang Xiao
ad48457183
Fix nxstyle wanring as much as we can
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-10-23 11:47:20 +08:00
Xiang Xiao
041cec1af8
Fix thttpd_alloc.h:64:32: error: 'free' called on pointer 'hc' with nonzero offset 286 [-Werror=free-nonheap-object]
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-10-23 11:47:20 +08:00
Petro Karashchenko
bc84e5eb3c
include/canutils/lely: fix file path in comment header
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2022-10-23 11:45:52 +08:00
Petro Karashchenko
d7ce4226ef
system/libuv: minor style fixes in Makefile
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2022-10-23 11:45:52 +08:00
Petro Karashchenko
ef952aac96
system/spi: improve alignment in array initialization
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2022-10-23 11:45:52 +08:00
Petro Karashchenko
f6a86a578d
nshlib: fix possible out of bounds array access
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2022-10-23 11:45:52 +08:00
Petro Karashchenko
e431abe2ed
examples/timer_gpio: fix initialization of timer notification
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2022-10-23 11:45:52 +08:00
Petro Karashchenko
eca51e267f
examples/foc: fix description in Kconfig
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2022-10-23 11:45:52 +08:00
Petro Karashchenko
c52f40770e
netutils/thttpd: remove MIN and MAX definitions from libhttpd.h
...
add newlines between MIN and MAX definitions for style consistency
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2022-10-23 11:45:52 +08:00
raiden00pl
003dbe1837
Lely CANopen port
2022-10-22 23:31:26 +08:00
nietingting
0a6539bfc5
ltp: fix build fail with "argument too long" issue on 20.04
...
Signed-off-by: nietingting <nietingting@xiaomi.com>
2022-10-22 22:14:44 +08:00
anjiahao
65668b33d9
ostest:add sem protocl to priority inheritance
...
ostest testcase use sem as lock
need set protocl
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2022-10-22 16:23:42 +09:00
zhanghongyu
f6ab04addb
dhcpc: codechecker issuse fix
...
presult->serverid.s_addr maybe is garbage or undefined
Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2022-10-21 16:31:13 +08:00
zhanghongyu
cfb64cffb1
netlib_getarptab: fix codechecker high level issue
...
197: paysize = RTA_PAYLOAD(&resp->attr);
198: if (paysize > maxsize)
199: {
200: paysize = maxsize;
201: }
202:
203: memcpy(arptab, resp->data, paysize);
Memory copy function accesses out-of-bound array element
Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2022-10-21 16:31:13 +08:00
Masayuki Ishikawa
6fb173e3d5
netutils: webserver: Fix directory handling
...
Summary:
- I noticed that the webserver can not handle a directory.
- This commit fixes this issue.
Impact:
- None
Testing:
- Tested with spresense:wifi_smp
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2022-10-21 16:29:37 +08:00
LiShuzhen
4eda9bda8f
netutils/mqttc: Add mbedtls configs.
...
MIIO-62724
Signed-off-by: LiShuzhen <lishuzhen@xiaomi.com>
2022-10-21 09:31:09 +02:00
Xiang Xiao
6f01a3b3d4
testing/ostest: Remove the code which reference CONFIG_SEM_NNESTPRIO
...
since CONFIG_SEM_NNESTPRIO is removed by:
https://github.com/apache/incubator-nuttx/pull/6318
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-10-21 09:18:26 +02:00
zhanghongyu
31ad585611
gs2200m: fix usrsock_bind error in gs2200m module
...
Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2022-10-21 08:33:50 +09:00
Masayuki Ishikawa
ee7b47ba4e
testing: ostest: Fix task_restart test
...
Summary:
- This commit fixes the task_restart test for the 2nd time execution
Impact:
- None
Testing:
- sim:ostest
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2022-10-21 01:34:15 +08:00
田昕
e69a032f20
dhcpc:fix xid error clear bug.
...
Signed-off-by: 田昕 <tianxin7@xiaomi.com>
2022-10-20 22:12:33 +08:00
anjiahao
fa6aeb3e12
mcuboot:move tinycrypt headfile path from make.defs to Makefile
...
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2022-10-20 14:53:38 +08:00
anjiahao
263f4ab8b9
crypto:add tinycrypt to apps/crypto
...
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2022-10-20 14:53:38 +08:00
YAMAMOTO Takashi
195ffe71e4
Add interpreters/toywasm
2022-10-20 01:06:00 +08:00
Alin Jerpelea
0b55209aff
system: add cwebsocket support
...
High performance websocket client/server
The goal of cwebsocket is to provide a portable,
high performance websocket client/server,
especially on low power embedded systems.
cwebsocket is currently in a development state. You may encounter bugs.
Report them for a timely fix.
Successful tests have been conducted on the following architectures:
x86
x86_64
ARM
cwebsocket is compliant with the following standards:
ANSI C
POSIX
RFC 6455
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2022-10-19 19:45:25 +08:00
pedrobertoleti
00bd5a2edf
Fixed unused variable and improved Kconfig for TCP IPC Client & Server
2022-10-19 15:51:04 +08:00
Xiang Xiao
0d2ef47192
nshlib: Rename CONFIG_SYSTEM_NSH_SYMTAB to CONFIG_NSH_SYMTAB
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-10-18 22:18:38 +02:00
Xiang Xiao
b659f0fbdf
Remove the unnecessary cast for main_t, NULL and argv
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-10-18 18:40:23 +02:00
Alin Jerpelea
d6f787afca
apps: system: add libjpeg
...
This package contains C software to implement JPEG image encoding, decoding,
and transcoding. JPEG is a standardized compression method for full-color
and grayscale images.
The distributed programs provide conversion between JPEG JFIF format and
image files in PBMPLUS PPM/PGM, GIF, BMP, and Targa file formats. The
core compression and decompression library can easily be reused in other
programs, such as image viewers. The package is highly portable C code;
we have tested it on many machines ranging from PCs to Crays.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2022-10-18 23:58:40 +08:00
Ville Juven
f844db5194
libapps.a: Add the static application library always to the target libraries
...
This error was made by me a long time ago, not understanding how the kernel
mode build is expected to work. So partially revert PR#946.
2022-10-18 22:58:13 +08:00
Ville Juven
bca94fce5a
CONFIG_BUILD_KERNEL/libapps.a: Allow creation of libapps.a separately
...
Add rule to create libapps.a for CONFIG_BUILD_KERNEL=y, there is no
reason to disallow this.
The behavior of make import remains the same, so no regression is expected.
2022-10-18 22:58:13 +08:00
Pedro Bertoleti
c908661414
Client & Server examples to use TCP/IP socket as an IPC Channel for LoRaWAN
2022-10-17 18:54:55 -03:00
Xiang Xiao
6944c5a0a1
nshlib: Fix warning reported by clang
...
nsh_telnetlogin.c:62:15: error: implicit conversion from 'int' to 'char' changes value from 255 to -1 [-Werror,-Wconstant-conversion]
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-10-17 15:14:20 +02:00
Xiang Xiao
75455d3788
nshlib: Reuse nsh_session logic in nsh_telnetmain
...
to avoid the code duplication
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-10-17 09:41:43 -03:00
Xiang Xiao
8e460e7e19
nshlib: Move symbol table initialization from nsh_main to nsh_initialize
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-10-16 15:39:10 -04:00
Xiang Xiao
0d210c3227
nshlib: Move commoin initialization from console_main to nsh_initialize
...
to avoid the code duplication
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-10-16 15:39:10 -04:00
Xiang Xiao
964747dd36
nshlib: Call nsh_telnetstart in nsh_initialize to avoid the dupliation
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-10-16 15:39:10 -04:00
Xiang Xiao
cf70d8f95b
nshlib: Call nsh_sysinitscript in usb or alt console like normal one
...
forget in the pull request:
https://github.com/apache/incubator-nuttx-apps/pull/1142
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-10-16 15:39:10 -04:00
Xiang Xiao
893387b2c5
Fix the minor style issue
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-10-16 19:07:16 +02:00
Xiang Xiao
4941182cc6
Make.defs: Change "ifeq ($(XXX),y)" to "ifneq ($(XXX),)
...
to support the tristate option correctly and unify the usage
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-10-16 14:59:08 +02:00
Masayuki Ishikawa
97440889ac
testing: ostest: Add ASSERT in case of errors
...
Summary:
- This commit adds ASSERT in case of errors to stop the
execution of ostest
- Also, add some 'ERROR' messages
Impact:
- None
Testing:
- Run ostest with several configs
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2022-10-16 13:24:50 +08:00
crafcat7
2ad6dc37d8
system/cachespeed:Average time to add
2022-10-15 03:15:30 +08:00
zhanghongyu
78541e9876
usrsocktest: Fix default config mismatch in recv_block & no_block_connect
...
Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2022-10-14 11:39:41 +09:00
zhanghongyu
6e8ea78d70
usrsock_server: combine response and events when socket setup case
...
Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2022-10-14 11:39:41 +09:00
zhanghongyu
8a2f29c9b5
usrsock_server: fix unblock socket connect error
...
Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2022-10-14 11:39:41 +09:00
Fotis Panagiotopoulos
bcbf3ae89d
Fixes in DHCPc.
2022-10-13 22:59:54 +02:00