Alan Carvalho de Assis
2d635be05f
Update arch/xtensa/src/esp32s3/esp32s3_rng.c
...
Co-authored-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2023-01-27 13:16:35 +08:00
Alan Carvalho de Assis
f2b53d7234
Add board config example to test random number generator
2023-01-27 13:16:35 +08:00
Alan Carvalho de Assis
b27351828a
esp32s3: Add RNG driver
...
Fix multiplier noticed by Tiago
Co-author: Tiago Medicci <tiago.medicci@espressif.com>
2023-01-27 13:16:35 +08:00
Gustavo Henrique Nihei
80bbb0f24c
esp32c3: Fix IRQ initialization, it was crashing on DEBUG_ASSERTIONS
...
Co-author: Alan C. Assis <alan.carvalho@espressif.com>
2023-01-27 13:15:39 +08:00
qiaohaijiao1
adba1e5e19
arch/sim: ignore return value of snd_pcm_pause/resume
...
snd_pcm_pause, snd_pcm_resume failed with -5, -38 errno.
Signed-off-by: qiaohaijiao1 <qiaohaijiao1@xiaomi.com>
2023-01-27 01:10:15 +02:00
qiaohaijiao1
05a12ba69e
sim/sim_alsa: register pcm1p/pcm1c audio device.
...
use pcm1p/pcm1c to simulate offload playback/capture.
Signed-off-by: qiaohaijiao1 <qiaohaijiao1@xiaomi.com>
2023-01-27 01:10:15 +02:00
ligd
d17b6fa58b
sim/alsa: don't let siwtch out when open alsa
...
Signed-off-by: ligd <liguiding1@xiaomi.com>
2023-01-27 01:10:15 +02:00
chao an
931a4f6969
arch/EXTRA_LIBS: link all staging library
...
Signed-off-by: chao an <anchao@xiaomi.com>
2023-01-27 01:08:26 +02:00
chentao9
1e8d9466d6
ref: charge: add support for voltage infomation
...
Signed-off-by: chentao9 <chentao9@xiaomi.com>
2023-01-27 00:40:43 +02:00
丁欣童
63879598fa
sensors/fakesensor: fix timestamp is woring when batch.
...
Signed-off-by: 丁欣童 <dingxintong@xiaomi.com>
2023-01-27 00:39:15 +02:00
梁超众
7b8ef5dc1b
usrsock: only TCP data should be aggregrated for rpmsg case
...
non-streaming socket's rx data should not be aggregrated.
Signed-off-by: 梁超众 <liangchaozhong@xiaomi.com>
2023-01-27 00:38:32 +02:00
Jiuzhu Dong
5bd448825b
driver/sensor: sync set buffer number to remote proc
...
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2023-01-27 00:37:49 +02:00
Jiuzhu Dong
c9c5940382
driver/sensor: using recursive lock to fix deadlock beacuse rptun reentrancy
...
nxsem_wait
/home/neo/projects/monkey/nuttx/arch/arm/src/../../../sched/semaphore/sem_wait.c:155 (discriminator 2)
sem_wait
/home/neo/projects/monkey/nuttx/arch/arm/src/../../../sched/semaphore/sem_wait.c:273
nxmutex_lock
/home/neo/projects/monkey/nuttx/include/nuttx/mutex.h:161
nxrmutex_lock.isra.0
/home/neo/projects/monkey/nuttx/include/nuttx/mutex.h:348
sensor_rpmsg_unsub_handler
/home/neo/projects/monkey/nuttx/arch/arm/src/../../../drivers/sensors/sensor_rpmsg.c:1048
rpmsg_virtio_rx_callback
/home/neo/projects/monkey/nuttx/arch/arm/src/../../../openamp/open-amp/lib/rpmsg/rpmsg_virtio.c:334
virtqueue_notification
/home/neo/projects/monkey/nuttx/arch/arm/src/../../../openamp/open-amp/lib/virtio/virtqueue.c:623
up_block_task
/home/neo/projects/monkey/nuttx/arch/arm/src/common/arm_blocktask.c:82 (discriminator 2)
nxsem_tickwait
/home/neo/projects/monkey/nuttx/arch/arm/src/../../../sched/semaphore/sem_tickwait.c:116
rptun_wait_tx
/home/neo/projects/monkey/nuttx/arch/arm/src/../../../drivers/rptun/rptun.c:522
rpmsg_virtio_wait_tx_buffer
/home/neo/projects/monkey/nuttx/include/openamp/rpmsg_virtio.h:120
sensor_rpmsg_push_event_one
/home/neo/projects/monkey/nuttx/arch/arm/src/../../../drivers/sensors/sensor_rpmsg.c:778
sensor_rpmsg_alloc_stub
/home/neo/projects/monkey/nuttx/arch/arm/src/../../../drivers/sensors/sensor_rpmsg.c:547
sensor_rpmsg_sub_handler
/home/neo/projects/monkey/nuttx/arch/arm/src/../../../drivers/sensors/sensor_rpmsg.c:991
rpmsg_virtio_rx_callback
/home/neo/projects/monkey/nuttx/arch/arm/src/../../../openamp/open-amp/lib/rpmsg/rpmsg_virtio.c:334
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2023-01-27 00:37:49 +02:00
fangzhenwei
8a1489c291
driver/h4:increase h4 uart tx/rx buffer default size
...
tx buffer size 1024 to 2048
rx buffer size 1024 to 8096
Signed-off-by: fangzhenwei <fangzhenwei@xiaomi.com>
2023-01-27 00:27:02 +02:00
xinbingnan
7076de9e8a
sensors/bmi160.c: fix the problem Linux SPI doesn't working properly
...
CH341A chip only supports SPI MODE0, and BMI160 supports both MODE0 and MODE3. So, changing MODE3 to MODE0 makes all cases available.
Signed-off-by: xinbingnan <xinbingnan@xiaomi.com>
2023-01-27 00:26:13 +02:00
chao an
d031989e0e
arch/arm: make DSP arch extension configurable
...
Signed-off-by: chao an <anchao@xiaomi.com>
2023-01-26 22:39:30 +02:00
Lucas Saavedra Vaz
bd06945de2
boards/xtensa/esp32-lyrat: Set up touch pad interruptions
2023-01-26 14:33:08 -03:00
Lucas Saavedra Vaz
eee4396b06
arch/xtensa/esp32: Add support for touch pad interruptions
2023-01-26 14:33:08 -03:00
Lucas Saavedra Vaz
c4aa37ee2f
arch/xtensa: Fix 'interruption' typos
2023-01-26 14:33:08 -03:00
Lucas Saavedra Vaz
07fd4b564d
arch/xtensa/esp32: Fix SENS_TOUCH_XPD_WAIT definition
2023-01-26 14:33:08 -03:00
zhuyanlin
3c6b844fcd
arch:xtensa:toolchain: add -Wno-atmoic-alignment flags for xcc
...
see a bug here:
https://bugs.llvm.org/show_bug.cgi?id=43603
Signed-off-by: zhuyanlin <zhuyanlin1@xiaomi.com>
2023-01-26 17:11:54 +02:00
Xiang Xiao
f9836c94fb
epoll.h: Add u64 field like Linux
...
https://man7.org/linux/man-pages/man2/epoll_wait.2.html
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-01-26 17:11:37 +02:00
Xiang Xiao
267e80a9e7
boards: Update Administrator tea result to 8Tv+Hbmr3pLVb5HHZgd26D
...
continue the change: https://github.com/apache/nuttx/pull/6843
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-01-26 17:11:07 +02:00
Petro Karashchenko
af55d894f9
boards/spresense: remove BOARDIOC_SDCARD_SETNOTIFYCB ioctl
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2023-01-26 23:08:28 +08:00
Ville Juven
1c84fc9cd9
Revert "sched/release_tcb: Do not release stack for user processes here"
...
This reverts commit 1a67dc7c68
.
2023-01-26 21:15:25 +08:00
Ville Juven
29eaf95ced
Revert "sched/sched_releasetcb: Fix code style issue from prior patch"
...
This reverts commit 920956b20f
.
2023-01-26 21:15:25 +08:00
Ville Juven
686b990a85
arch/ARCH_KERNEL_STACK: Fix signal handling with kernel stack
...
There were two issues with signal handling:
- With a kernel stack the "info" parameter was passed from kernel memory.
This is fixed by making a stack frame to the user stack and copying it
there.
- If the signal handler uses a system call, the kernel stack was completely
and unconditionally destroyed, resulting in a crash in the user application
There is also no need to check ustkptr, it is always NULL. Why ? Because
signal delivery is deferred when a system call is being executed.
2023-01-26 20:41:42 +08:00
Xiang Xiao
37b8748f17
time.h: Add CLOCK_PROCESS_CPUTIME_ID and CLOCK_THREAD_CPUTIME_ID definition
...
see the spec here:
https://pubs.opengroup.org/onlinepubs/000095399/functions/clock_getres.html
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-01-26 13:00:23 +02:00
duduita
2fc1192019
Add initial support to Meadow F7Micro board
2023-01-26 18:05:21 +08:00
Xiang Xiao
819fbd22cc
sched: Implement tkill/tgkill
...
https://linux.die.net/man/2/tgkill
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-01-26 08:11:56 +02:00
Xiang Xiao
34ac8b2e07
signal.h: Don't include pthread.h to avoid the mutual reference
...
let's use pthread_attr_s directly
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-01-26 08:11:56 +02:00
Petro Karashchenko
2c972bd402
fs/shm: update pointer arithmetic logic
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2023-01-26 10:26:09 +08:00
Petro Karashchenko
d35d8b4a12
fs/shm: use ERROR instead of -1
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2023-01-26 10:26:09 +08:00
Petro Karashchenko
e5dbc3328c
sched/misc/assert: remove extra indentations
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2023-01-26 10:26:09 +08:00
Petro Karashchenko
a58e73add8
arch/arm/tiva: simplify TIVA_CAN option usage
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2023-01-26 10:26:09 +08:00
Petro Karashchenko
bd7cb522a1
nuttx: use TABs instead of spaces in Kconfig files
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2023-01-26 10:26:09 +08:00
Petro Karashchenko
c4cf1eeb2b
arch/xtensa/esp32s2: switch from semaphore to mutex for exclusive access
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2023-01-26 10:24:05 +08:00
Petro Karashchenko
c415ce518f
arch/xtensa/esp32: style fixes in SPI driver
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2023-01-26 10:24:05 +08:00
Petro Karashchenko
e3a8e1e3ef
drivers/mtd/mtd_config: switch from semaphore to mutex for exclusive access
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2023-01-26 10:24:05 +08:00
Petro Karashchenko
6e3cb04531
drivers/sensors/msa301: switch from semaphore to mutex for exclusive access
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2023-01-26 10:24:05 +08:00
Petro Karashchenko
a8f4d8447f
wireless/ieee802154: rename label pointed to exit with mutex held
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2023-01-26 10:24:05 +08:00
Petro Karashchenko
f952b8456c
assert: switch from ASSERT(0/false) to PANIC
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2023-01-26 10:15:34 +08:00
Xiang Xiao
1280a2a8f9
Launch the initial task through task_spawn instead of nxtask_create
...
to share the code with the code path of posix_spawn
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-01-25 23:34:52 +02:00
Xiang Xiao
926e296d48
boards/jupiter-nano: Remove sam_ostest.c
...
since fpu special handling is done in arch common code now
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-01-25 23:01:20 +02:00
Michael Jung
eaea60a575
armv8-m: Fix pthread_start syscall
...
The 'arg' parameter is in R3, not in R2.
Signed-off-by: Michael Jung <michael.jung@secore.ly>
2023-01-26 04:02:19 +08:00
Xiang Xiao
99e89809d7
board: Pass the assertion expression to board_crashdump too
...
continue the follow work:
commit 43e7b13697
Author: Xiang Xiao <xiaoxiang@xiaomi.com>
Date: Sun Jan 22 19:31:32 2023 +0800
assert: Log the assertion expression in case of fail
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-01-25 16:00:48 -03:00
Petro Karashchenko
be10056702
arch/arm/samv7: fix issue when AFEC1 driver failed to open second time
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2023-01-26 01:26:41 +08:00
Petro Karashchenko
5f55290e41
sched/pthread: restore C89 compliance in pthread_create
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2023-01-26 01:26:11 +08:00
Xiang Xiao
c05cdd6598
libc: Move on_exit and __cxa_atexit in lib_atexit.c
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-01-25 14:31:37 +02:00
Xiang Xiao
5333c30d45
libc: abort should always call exit not pthread_exit
...
since pthread_exit just exit the calling thread not the whole process
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-01-25 14:31:37 +02:00