Zhe Weng
9fd4d6b767
usrsock_server: Do not poll SOCK_CTRL.
...
It seems that we don't need to poll the SOCK_CTRL sockets, so skip them in usrsock server.
Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
2023-03-29 09:18:36 -03:00
Zhe Weng
61ff04b9e2
net/inet: Only setup poll for UDP when s_type == SOCK_DGRAM
...
Problem:
A SOCK_CTRL socket may be led to udp_pollsetup but never reaches
udp_pollteardown, it seems that we shouldn't call udp_pollsetup for
other socket types.
Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
2023-03-29 09:18:36 -03:00
zhanghongyu
0550082966
usrsock_server: add debug info for poll_setup
...
Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2023-03-29 09:18:36 -03:00
raiden00pl
bed53538e8
rndis: EP0 belongs to composite class if composite enabled
2023-03-28 19:43:56 -03:00
raiden00pl
8de2197773
rndis: exclude the logic that belongs to composite
2023-03-28 19:43:56 -03:00
raiden00pl
cb05700acf
rndis: interface association descriptor should depend on CONFIG_COMPOSITE_IAD
2023-03-28 19:43:56 -03:00
raiden00pl
10f1d3e76e
rndis: fix dev info init for composite
2023-03-28 19:43:56 -03:00
raiden00pl
9b70e010dc
rndis: refactor usbdev_rndis_get_composite_devdesc to make it more like in other composite drivers
2023-03-28 19:43:56 -03:00
raiden00pl
da47c468b8
boards/nrf5340-dk: add ostest_tickless configuration
2023-03-28 19:43:35 -03:00
raiden00pl
d23759d457
arch/nrf53: add tickless support
2023-03-28 19:43:35 -03:00
raiden00pl
f9f41bbd95
arch/nrf53: add RTC support
2023-03-28 19:43:35 -03:00
raiden00pl
6a2152aa44
boards/nrf5340-dk: add buttons example
2023-03-28 19:43:19 -03:00
raiden00pl
bcecf2023f
arch/nrf53: add GPIOTE support
2023-03-28 19:43:19 -03:00
raiden00pl
74b0e8c2c8
arch/nrf53: rename nrf53_gpioe.h to nrf53_gpiote.h
2023-03-28 19:43:19 -03:00
Gustavo Henrique Nihei
f462be5365
risc-v/espressif: Fix NULL-dereferencing in WDT interrupt handling
...
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2023-03-28 22:39:00 +03:00
Alan Carvalho de Assis
b87eb7c82f
esp32: Add Ai-Thinker ESP32 Audio Kit board
...
This commit adds support to Ai-Thinker ESP32 Audio Kit V2.2 A247
board.
There are two modules of this board. The old model uses AC101 audio
and is not supported currently (AFAIK there is no AC101 driver) and
the new version uses the ES8388 audio codec. This model is supported
by this commit.
Just read the documentation to test playing an audio file.
TODO: Test audio recording.
2023-03-28 20:58:36 +03:00
Alan Carvalho de Assis
c5145257fe
esp32: Add Ai-Thinker ESP32-A1S module
2023-03-28 20:58:36 +03:00
Fotis Panagiotopoulos
0b1ba70ac5
asprintf: Fixed possible memory leak if print fails.
2023-03-28 14:46:07 -03:00
Gustavo Henrique Nihei
6647f194db
risc-v/espressif: Update revision of esp-hal-3rdparty
...
Small cleanup, no added features.
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2023-03-28 14:43:40 -03:00
Petro Karashchenko
a8f4a89221
signal: add SIGSYS
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2023-03-28 11:24:35 -06:00
Lucas Saavedra Vaz
10f294c026
boards: Fix broken defconfigs
2023-03-28 11:11:46 -03:00
Huang Qi
c623a7b731
drivers/lcd/st7789: Support mirror X/Y
...
Support mirror display by X/Y axis, it's useful for
single portrait/landscape but need to mirror specific direction.
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2023-03-27 17:55:49 -03:00
Gregory Nutt
717bb04cb7
Increase the number of real time signals. Two is not enough.
...
Refer to issue #8867 for details and rational.
Convert sigset_t to an array type so that more than 32 signals can be supported.
Why not use a uin64_t?
- Using a uin32_t is more flexible if we decide to increase the number of signals beyound 64.
- 64-bit accesses are not atomic, at least not on 32-bit ARMv7-M and similar
- Keeping the base type as uint32_t does not introduce additional overhead due to padding to achieve 64-bit alignment of uin64_t
- Some architectures still supported by NuttX do not support uin64_t
types,
Increased the number of signals to 64. This matches Linux. This will support all xsignals defined by Linux and also 32 real time signals (also like Linux).
This is is a work in progress; a draft PR that you are encouraged to comment on.
2023-03-27 16:59:04 +03:00
Xiang Xiao
bc3e6c84e1
arch: Rename up_[early]serialinit to [arm64|riscv|x86_64][early]serialinit
...
The naming standard at:
https://cwiki.apache.org/confluence/display/NUTTX/Naming+of+Architecture%2C+MCU%2C+and+Board+Interfaces
requires that all MCU-private function begin with the name of the architecture, not up_.
follow the change from: https://github.com/apache/nuttx/pull/930
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-03-27 12:35:04 +03:00
Petro Karashchenko
6c6a54b0c9
ld: fix warning reported by GCC 12 linker
...
warning: nuttx has a LOAD segment with RWX permissions
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2023-03-27 12:38:28 +08:00
chao an
0eae218b49
arm/chip/sdio/muxbus: comment all undefined symbols
...
comment all undefined symbols to avoid build break if CONFIG_SDIO_MUXBUS enabled
Signed-off-by: chao an <anchao@xiaomi.com>
2023-03-26 13:04:48 -03:00
Lwazi Dube
21ffb4de72
boards/sama5d3-xplained: Make hot plugging more reliable.
2023-03-26 13:03:21 -03:00
Lucas Saavedra Vaz
6227cd4fd4
boards/xtensa/esp32s2-kaluga-1: Add touch pad support
2023-03-26 12:59:37 -03:00
Petro Karashchenko
4309c6693c
libc/modlib: fix indentation issue
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2023-03-26 09:23:50 -06:00
Petro Karashchenko
c7326717ca
sched/paging: add FAR in paging worker
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2023-03-26 09:23:50 -06:00
Xiang Xiao
80e3ecc074
boards/sim: Remove the unused SIM_NOTIFYSIGNO from Kconfig
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-03-26 08:31:36 -06:00
Xiang Xiao
9b4ea90f5c
boards: Remove signal number from README.txt
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-03-26 08:31:36 -06:00
Xiang Xiao
beb38917d1
signal: Replace NuttX special SIGWORK with SIGPAGING(SIGRTMIN)
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-03-26 08:31:36 -06:00
Xiang Xiao
5ce5d01d75
signal: Remove configurable assignment of signal numbers
...
please reference the issue here for more information:
https://github.com/apache/nuttx/issues/8898
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-03-26 08:31:36 -06:00
raiden00pl
2ddc96ff66
arch/stm32/stm32.h: do not include stm32_usbdev.h if not supported
2023-03-25 23:41:32 -07:00
raiden00pl
68f6fb2edd
{stm32,stm32l4,stm32f0l0g0}/otg: move STM32_NENDPOINTS definitions to header files
...
This value is useful for users when initializing a USB composite device in a board-specific logic
2023-03-25 23:41:32 -07:00
raiden00pl
2c97c76577
nrf53_clockconfig.c: add comment about oscillator configuration
2023-03-25 22:24:36 +02:00
raiden00pl
1d4d008564
nrf53: UART1 available only on the app core
2023-03-25 22:24:36 +02:00
raiden00pl
bca927e203
nrf52/nrf53/sdc: define BLE max connection if NET_BLUETOOTH=n
2023-03-25 22:24:36 +02:00
raiden00pl
620c6cfd58
nrf52/nrf53: lowputc: fix compilation if flow control enabled
2023-03-25 22:24:36 +02:00
raiden00pl
f48846676e
boards/nrf5340-dk: add ADC configuration
2023-03-25 18:37:51 +02:00
raiden00pl
3571ff3c54
arch/nrf53: add SAADC support
2023-03-25 18:37:51 +02:00
Lucas Saavedra Vaz
c702223fab
Documentation: Improve pages for ESP boards
2023-03-25 12:23:35 +02:00
Lucas Saavedra Vaz
c961edbe6c
Documentation: Fix compilation warnings
2023-03-25 12:23:35 +02:00
Lucas Saavedra Vaz
1b87c86619
boards: Update and fix configs for ESP boards
2023-03-25 12:23:35 +02:00
chenrun1
01cfb3b2db
fs/fs_initialize.c: Sync will only be executed when the add is in reboot state.
...
In the last change, the assert behavior test was not considered. Therefore, in this change, sync will be performed only when SYS_RESTART/SYS_DOWN situation occurs, avoiding unpredictable results caused by handling locks or semaphores in interrupts.
2023-03-25 11:43:37 +02:00
chenrun1
7485f1c81d
fs/fs_initialize.c:Sync fs in system restart callback
2023-03-25 11:43:37 +02:00
chenrun1
d60dee4a65
sched/clock_gettime:Remove output log
...
Calling syslog to print logs in clock_gettime will cause the system to have recursive output, i.e., clock_gettime->sinfo->syslog->clock_gettime, with the consequences of stack overflow or non-stop log output.
2023-03-25 01:43:01 +02:00
Xiang Xiao
c9b917bcee
assert.h: Replace NULL with 0 to avoid including stddef.h
...
Fix error: 'NULL' undeclared if user include assert.h only
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-03-24 13:13:43 -06:00
Stuart Ianna
6a357797cd
tools/export: Add LDELFFLAGS to mkexport.sh.
...
Some targets, such as qemu-rv support multiple architectures. The required flags need to passed to the linker when built "out-of-tree" in the application directory.
2023-03-24 15:02:59 -03:00