Zhe Weng
7b0d80c94a
net/icmpv6: align structs to 2 bytes.
...
Fix following misaligned errors:
icmpv6/icmpv6_radvertise.c:145:21: runtime error: member access within misaligned address 0x573da9e6 for type 'struct icmpv6_router_advertise_s', which requires 4 byte alignment
0x573da9e6: note: pointer points here
00 00 00 01 85 00 d6 14 00 00 00 00 01 01 12 8c 25 08 9c f8 04 00 00 00 ff 02 00 00 00 00 00 00
^
icmpv6/icmpv6_radvertise.c:167:21: runtime error: member access within misaligned address 0x573da9fe for type 'struct icmpv6_mtu_s', which requires 4 byte alignment
0x573da9fe: note: pointer points here
af 78 ab 72 00 00 00 00 00 00 00 01 ff 00 00 01 04 00 00 00 ff 02 00 00 00 00 00 00 00 00 00 01
^
icmpv6/icmpv6_radvertise.c:176:23: runtime error: member access within misaligned address 0x573daa06 for type 'struct icmpv6_prefixinfo_s', which requires 4 byte alignment
0x573daa06: note: pointer points here
00 00 05 dc ff 00 00 01 04 00 00 00 ff 02 00 00 00 00 00 00 00 00 00 01 ff 08 9c f8 04 00 00 00
^
Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
2023-03-10 09:41:02 +01:00
Petro Karashchenko
61e996af33
drivers/usbmisc: remove redundant scope in switch/case
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2023-03-09 16:27:07 -03:00
Petro Karashchenko
ab196aebe4
include/nuttx/mm: remove FAR from non-pointer types
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2023-03-09 16:27:07 -03:00
Petro Karashchenko
9b72ad4f7d
arch/arm/sama5: switch from spaces to TABs in Kconfig
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2023-03-09 16:27:07 -03:00
Petro Karashchenko
4581a84064
nuttx: fix indentation issue
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2023-03-09 16:27:07 -03:00
Xiang Xiao
75ecbd4382
net/local: Return the unblock handle correctly in local_accept
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-03-09 09:17:19 +01:00
raiden00pl
12cc49df57
boards/nrf5340-dk: add support for rptun
2023-03-09 14:21:42 +08:00
raiden00pl
1a0aecb0ce
arch/nrf53: initial support for rptun
2023-03-09 14:21:42 +08:00
Zhihong Chen
8f74ce8ac4
boards:riscv:hpm6750evk2: revised README.txt to config toolchain
...
- use hpmicro GNU riscv32 toolchain
Signed-off-by: Zhihong Chen <zhihong.chen@hpmicro.com>
2023-03-09 07:56:00 +02:00
Zhihong Chen
698f5f3e80
arch/riscv/Toolchain: add riscv32-unknown-elf selection
...
- user can use menuconfig to select riscv64-unknown-elf or riscv32-unknown-elf
Signed-off-by: Zhihong Chen <zhihong.chen@hpmicro.com>
2023-03-09 07:56:00 +02:00
Zhe Weng
0e018308a3
net/pkt: Add readahead queue for pkt, call input for tx on sim
...
Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
2023-03-08 23:09:25 +02:00
Zhe Weng
cd1decf4a5
mm/iob: Support neg offset in iob_clone
...
Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
2023-03-08 23:09:25 +02:00
raiden00pl
fb861c0a29
arch/nrf53: add more register definitions (ported from nrf52) and some cosmetics for nrf52
2023-03-09 03:59:57 +08:00
Gonzalo Aterido
6cb649ecf6
Fix unwanted flush in the SPI slave driver
2023-03-09 03:53:35 +08:00
Gustavo Henrique Nihei
1f54c024da
espressif: Fix download of IDFboot binaries
...
It was broken after #8759 , which erroneously substituted with MCUboot
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2023-03-08 15:55:35 -03:00
Huang Qi
cfe6c4be8e
driver/serial: Only enable tx interrupt if tx buffer is not empty
...
Fix https://github.com/apache/nuttx/issues/8731
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2023-03-08 16:02:56 +02:00
Ville Juven
47ce89f757
Revert "signal/sig_dispatch: Signal action was not performed if TCB_FLAG_SYSCALL is set"
...
This reverts commit 0e44666828
.
2023-03-08 10:13:26 +01:00
Ville Juven
3f529b4882
Revert "signal/sig_dispatch: Fix case where signal action is sent twice"
...
This reverts commit be0cb4cbe3
.
2023-03-08 10:13:26 +01:00
Karel Kočí
62661600b2
treewide: add DOWNLOAD variable as unification of curl call
...
This is a followup to the commit
03b164f59c
.
2023-03-08 17:05:05 +08:00
yinshengkai
81a4f21f1b
libc/libvsprintf: use puts to replace the putc
...
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2023-03-08 16:56:17 +08:00
Huang Qi
64e611d71e
driver/uart_rpmsg: Passthrough data by default
...
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2023-03-08 16:39:17 +08:00
Lucas Saavedra Vaz
35f830b19a
boards: Add CoreMark config to ESP boards
2023-03-08 13:11:13 +08:00
Lucas Saavedra Vaz
e53200dde7
boards/sim/wamr: Remove LIBC_FLOATINGPOINT (now selected by the app)
2023-03-08 13:09:34 +08:00
Alin Jerpelea
bd470ea94d
AUTHORS: add Tomek CEDRO to the list
...
Tomek CEDRO has submitted the ICLA and should be added to the list
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2023-03-07 14:15:55 +01:00
Xiang Xiao
9f4a15110c
net: Finish FIONBIO default action if si_ioctl return OK
...
Continue the work: https://github.com/apache/nuttx/pull/6976
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-03-07 11:34:35 +02:00
chao an
815f40c8f1
armv8-m/cortex-m85: add support of PACBTI(Authentication and Branch Target Identification Extension)
...
Reference:
https://developer.arm.com/documentation/100748/0617/Security-features-supported-in-Arm-Compiler-for-Embedded/PACBTI-M-extension-mitigations-against-ROP-and-JOP-style-attacks
https://developer.arm.com/documentation/101754/0619/armclang-Reference/armclang-Command-line-Options/-mbranch-protection
Signed-off-by: chao an <anchao@xiaomi.com>
2023-03-07 07:34:05 +02:00
Xiang Xiao
3c3dea5d7a
net: Make si_poll callback optional
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-03-06 20:58:27 +02:00
Xiang Xiao
c39be172da
net: Make si_accept callback optional
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-03-06 20:58:27 +02:00
Xiang Xiao
5dd037c599
net: Make si_connect callback optional
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-03-06 20:58:27 +02:00
Xiang Xiao
a97e2523a4
net: Make si_listen callback optional
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-03-06 20:58:27 +02:00
Xiang Xiao
2553b7701c
net: Remove the empty si_getpeername implementation
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-03-06 20:58:27 +02:00
Xiang Xiao
9b3715050b
net: Make si_getsockname callback optional
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-03-06 20:58:27 +02:00
Xiang Xiao
b3c1c55805
net: Make si_bind callback optional
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-03-06 20:58:27 +02:00
Michal Lenc
f97d93903c
samv7: add support for dead time delay to PWM driver
...
This commit adds support for dead time delay to SAMv7 PWM driver. The
dead time can be used to delay an active PWM output at the begining
of the period. This can be used for H bridge control for example.
The values are to be set from the application level. It is required
to allow config option PWM_DEADTIME in order to support dead time delay.
Signed-off-by: Michal Lenc <michallenc@seznam.cz>
2023-03-07 01:30:01 +08:00
Michal Lenc
88f3d89920
pwm: add configuration option for dead time generators
...
PWM drivers usually supports dead time generators that automatically
insert output activation delay for complementary PWM outputs. This
is usefull for some control purposes as control of H bridge for example.
This commit adds an application to driver interface that can be used
to set up those delays (if supported by the selected architecture)
directly from the application. The set up remains the same as for duty
cycle value.
The whole addition is by default disabled. It can be enabled by config
option PWM_DEADTIME.
Signed-off-by: Michal Lenc <michallenc@seznam.cz>
2023-03-07 01:30:01 +08:00
chao an
b48f9d9b96
arch/arm: correct ARCH_HAVE_DSP to ARM_HAVE_DSP
...
Signed-off-by: chao an <anchao@xiaomi.com>
2023-03-07 01:27:28 +08:00
Karel Kočí
eab9e688d8
samv7: switch from printing numbers as signed to unsigned in QSPI
...
This switches from PRId32 to PRIu32. Those variables have unsigned type
and thus we should print them as such.
2023-03-06 18:51:50 +02:00
Michal Lenc
4084c749c8
Documentation: add initial documentation page for SAMv7 MCU
...
Initial documentation page for SAMv7 MCU is added. There are still
board pages to be added in the future.
Signed-off-by: Michal Lenc <michallenc@seznam.cz>
2023-03-06 23:37:57 +08:00
TimJTi
94f0283bdd
Correct DEBUGASSERT code error, _err format error, better C89 compatability
...
Update drivers/power/supply/act8945a.c
Co-authored-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2023-03-06 17:25:39 +02:00
jturnsek
4c2edece50
Adding support for LS027B7DH01A display and MEMLCD_EXTCOMIN_MODE_HW
2023-03-06 16:23:15 +02:00
chao an
34a032b486
arm/armv8-m: add missing zig flags
...
Signed-off-by: chao an <anchao@xiaomi.com>
2023-03-06 10:54:08 -03:00
Zhe Weng
7111d23ae4
net/arp: Only parse ioctl request for valid cmd.
...
Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
2023-03-06 10:51:12 -03:00
Huang Qi
aba0a25524
ubsan: Implement __ubsan_handle_invalid_builtin
...
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2023-03-06 13:43:08 +02:00
Xiang Xiao
9308a72419
vfs/poll: Remove the unused ptr field from pollfd
...
forget in the commit:
commit 0a95c7721b
Author: Xiang Xiao <xiaoxiang@xiaomi.com>
Date: Fri Nov 11 03:47:07 2022 +0800
vfs/poll: Remove POLLFILE and POLLSOCK NuttX specific extension
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-03-06 13:19:42 +02:00
Masayuki Ishikawa
1917870cca
boards: stm32f4discovery: Update kostest/defconfig to avoid crash
...
Summary:
- I noticed that recent mm_heap changes causes a crash with
stm32f4discovery:kostest
- This is a tentative solution to avoid the crash
Impact:
- None
Testing:
- Tested with stm32f4discovery board
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2023-03-06 11:28:36 +01:00
Huang Qi
bcf5700e8a
tools/arm: Add missing -mcpu param for zig
...
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2023-03-06 11:27:53 +01:00
wangbowen6
3e971d2e6d
mm_heap: double malloced memory default alignment (4 -> 8, 8 -> 16)
...
Base on the gnu libc standard:
https://www.gnu.org/software/libc/manual/html_node/Aligned-Memory-Blocks.html
Change the default memory aligment to 8 bytes for 32-bit system and
16 bytes for 64-bit system.
Signed-off-by: wangbowen6 <wangbowen6@xiaomi.com>
2023-03-06 11:27:43 +01:00
wangbowen6
70083168f1
mm: support custom the mm alignment and default to be 8
...
Signed-off-by: wangbowen6 <wangbowen6@xiaomi.com>
2023-03-06 11:10:36 +08:00
jturnsek
97b4900c59
Bug fixes and improved interrupt support for mcp23x17 driver
2023-03-06 08:40:33 +08:00
raiden00pl
468f2e3222
boards/nrf5340-dk: add sdc support
2023-03-05 19:31:07 -03:00