Michal Lenc
0797b03c08
mmcsd: add nxsig_usleep delay after MMC_CMD1 command
...
MMC_CMD1 command is used to check whether card is MMC type (checked if
CONFIG_MMCSD_MMCSUPPORT is enabled). This commit inserts nxsig_usleep
wait if this check fails. This is to ensure the communication recovers
from invalid response as this may take some time on some platforms (
samv7 for example). Following command for SDHC check may fail if sleep
is not used.
Signed-off-by: Michal Lenc <michallenc@seznam.cz>
2023-03-13 22:22:54 +02:00
Huang Qi
061e98aa98
drivers/serial: Fix wrong ECHO flag
...
There is a rookie mistake introduced by https://github.com/apache/nuttx/pull/8691 ,
ECHO flag is a part of Local Mode (c_lflags) instead of c_iflags.
nuttx-apps should do the same change in nsh_login and termcurse_vt100.
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2023-03-13 16:29:36 -03:00
raiden00pl
74158db707
arch/nrf52/nrf52_adc.c: fix device shutdown
2023-03-13 16:25:47 -03:00
zhangyuan21
12bb4f04f1
arch: fixed error in the calculation of nwords caused an out of bounds
...
Signed-off-by: zhangyuan21 <zhangyuan21@xiaomi.com>
2023-03-13 16:12:11 +09:00
raiden00pl
a581b99266
nrf5340-dk: add sdc net core examples
2023-03-12 16:01:04 +02:00
zouboan
474bcedbd4
sensor/mpu60x0: Fix some error bit and width macro
2023-03-12 15:59:56 +02:00
raiden00pl
b9fd059914
drivers/bluetooth: bth4 depends on bluetooth definitions
2023-03-11 20:30:25 -03:00
Michal Lenc
c4d8bbd190
pwm.h: add comment regarding possible channel numbers
...
PWM drivers use channel numbers 0 and -1 to skip the channel and/or
all following channels. This situation is well established in the drivers
however it was not mentioned in pwm.h file. This commit adds a comment
mentioning it.
Signed-off-by: Michal Lenc <michallenc@seznam.cz>
2023-03-11 11:37:04 +01:00
Tiago Medicci Serrano
40319b9c4c
esp32s3/wifi: move Wi-Fi-related build recipe to a separate file
2023-03-10 10:59:14 +02:00
Tiago Medicci Serrano
8f2cdc4e60
esp32s3/wifi: add support for Wi-Fi (Station mode)
...
1) Wi-Fi driver libs from Espressif ESP-IDF release/v5.0;
2) Station mode only;
3) WPA2-PSK and WPA3-SAE enabled;
Not yet supported (WIP):
- SoftAP mode;
- 802.11k, 802.11v and 802.11R;
- Power Save mode;
- BLE Coexistance;
2023-03-10 10:59:14 +02:00
Tiago Medicci Serrano
1fc73087da
esp32s3: add reset/shutdown handler to run registered callbacks
2023-03-10 10:59:14 +02:00
dongjiuzhu1
f8b27d9fbe
fs/mmap: try rammap when filesystem mmap don't support
...
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2023-03-10 10:43:33 +02:00
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