chao an
d49db03e04
libs/misc/memoryregion: remove unused memory_region
...
memory region will no longer be used
Signed-off-by: chao an <anchao@lixiang.com>
2024-10-18 21:32:48 +08:00
Xiang Xiao
24cb8c25ab
bluetooth: Fix the incompatibility made by https://github.com/apache/nuttx/pull/14224
...
that pr requires chip turn on CONFIG_DRIVERS_BLUETOOTH to use bluetooth,
but not all defconig enable this option, so let's map bt_driver_register
to bt_netdev_register in header file in this case, and revert the unnessary
change in the related chip and board folders.
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2024-10-18 09:05:54 +08:00
yangguangcai
66e0e1bb7f
AVR:disable nosanitize_address.
...
Signed-off-by: yangguangcai <yangguangcai@xiaomi.com>
2024-10-17 22:52:42 +08:00
jihandong
d802912cba
nuttx ai driver update
...
Signed-off-by: jihandong <jihandong@xiaomi.com>
2024-10-17 22:35:40 +08:00
chengkai
772807c50f
bluetooth: add bt_driver_register interface
...
add bt_driver_register interface, which could handle
these cases:bth4 bth5 btbridge btslip and btuart_lowerhalf_s etc.
Signed-off-by: chengkai <chengkai@xiaomi.com>
2024-10-17 18:09:32 +08:00
chengkai
3144971704
bluetooth: extract btuart_register interface
...
add btuart_create interface, which would be more
flexible in complex cases. And extract btuart_register interface.
Signed-off-by: chengkai <chengkai@xiaomi.com>
2024-10-17 18:09:32 +08:00
chengkai
cc36c44824
bluetooth:add btslip driver
...
add btslip driver.
Signed-off-by: chengkai <chengkai@xiaomi.com>
2024-10-17 18:09:32 +08:00
chengkai
8e17e1657b
bluetooth: fix bt bridge would not filter vendor hci cmd
...
when downloading rtk firmware with vendor hci cmd sending to
bt bridge, which would not filter that hci cmd.
Signed-off-by: chengkai <chengkai@xiaomi.com>
2024-10-17 18:09:32 +08:00
Ville Juven
2195b47655
smp: Implement empty macro for obtaining logical CPU index
...
This implements empty hooks to the arch/chip layer, which can implement
an optional translation between logical<->physical CPU/core id.
The default mapping is 1:1 i.e. logical=physical.
2024-10-17 13:43:06 +08:00
Petro Karashchenko
2048715134
serial: remove 'TIOCSLINID'
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2024-10-17 09:08:58 +08:00
yangsong8
8c13b8df1d
syslog: convert \n to \r\n in syslog framework layer
...
Signed-off-by: yangsong8 <yangsong8@xiaomi.com>
2024-10-17 02:29:51 +08:00
anjiahao
a72e9e5621
modlib:if elf in romfs/tmpfs, try use xipbase
...
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2024-10-16 18:40:06 +08:00
anjiahao
112b6fd9a5
modlib:support modlib can load PIC elf
...
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2024-10-16 18:40:06 +08:00
gaohedong
cfc90ad1f3
nuttx/can: support to Send message priority sorting function.
...
Linked list-based priority sorting function for sending messages.
Signed-off-by: gaohedong <gaohedong@xiaomi.com>
2024-10-16 18:37:01 +08:00
dongjiuzhu1
2cf8c25292
drivers/power/battery: add charge/battery health interface support
...
Signed-off-by: liangdongdong<liangdongdong@xiaomi.com>
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2024-10-16 17:33:20 +08:00
zhaohaiyang1
9985b0551e
nuttx/can.h: support timestamp for can frame
...
and update "can.rst" file for add struct timeval ch_ts info.
Signed-off-by: zhaohaiyang1 <zhaohaiyang1@xiaomi.com>
2024-10-16 17:04:31 +08:00
wurui3
42e416d054
nuttx/audio: increase bits of samplerate in struct audio_info_s.
...
Current 8 bits of uint8_t cannot represent sample rate bigger than
255,change uint8_t to uint32_t to expand sample rate range.
Signed-off-by: wurui3 <wurui3@xiaomi.com>
2024-10-16 15:40:35 +08:00
wanggang26
848b596a12
coredump: measure the system's running time in milliseconds unit
...
Signed-off-by: wanggang26 <wanggang26@xiaomi.com>
2024-10-16 15:35:21 +08:00
wangxiaoxin
2a99490ed6
add a flag of lin internal sleep/wakeup state
...
Signed-off-by: wangxiaoxin <wangxiaoxin@xiaomi.com>
2024-10-16 14:33:59 +08:00
renzhiyuan1
91ce3de250
AI engine driver
...
Add AI engine driver for heterogeneous NPU backends.
Signed-off-by: renzhiyuan1 <renzhiyuan1@xiaomi.com>
2024-10-16 13:57:23 +08:00
Lingao Meng
c2b89540d2
include: queue.h: Make flink clear after sq_rem
...
In the previous design, this member may be cleared or not cleared,
which results in the API's side effects not being a clear property.
Signed-off-by: Lingao Meng <menglingao@xiaomi.com>
2024-10-16 13:56:49 +08:00
xumin6
1d5f0245ab
external/ffmpeg: add offloding audio recording with amr format.
...
Signed-off-by: xumin6 <xumin6@xiaomi.com>
2024-10-16 13:56:07 +08:00
zhangyuan29
080c22e944
atomic: include stddef.h in atomic.h
...
error info:
error: expected '=', ',', ';', 'asm' or '__attribute__' before 'atomic_wchar_t'
Signed-off-by: zhangyuan29 <zhangyuan29@xiaomi.com>
2024-10-16 12:24:18 +08:00
chenzhijia
d52074a9cb
libs/libc/unistd: add getspnam function
...
Add getspnam function to pass tlpi example:
https://man7.org/tlpi/code/online/dist/users_groups/check_password.c.html
Signed-off-by: chenzhijia <chenzhijia@xiaomi.com>
2024-10-16 11:15:25 +08:00
chenzhijia
2a328279ca
libs/libc/unistd: add crypt function
...
Add crypt function to pass tlpi example:
https://man7.org/tlpi/code/online/dist/users_groups/check_password.c.html
Signed-off-by: chenzhijia <chenzhijia@xiaomi.com>
2024-10-16 11:15:25 +08:00
chenzhijia
ad70ca33c8
libs/libc/unistd: add getpass function
...
Add getpass function to pass tlpi example:
https://man7.org/tlpi/code/online/dist/users_groups/check_password.c.html
Signed-off-by: chenzhijia <chenzhijia@xiaomi.com>
2024-10-16 11:15:25 +08:00
chenzhijia
c0039d6623
libs/libc/pwd: add new member to passwd struct
...
Add pw_passwd member to pass tlpi example:
https://man7.org/tlpi/code/online/dist/users_groups/check_password.c.html
Signed-off-by: chenzhijia <chenzhijia@xiaomi.com>
2024-10-16 11:15:25 +08:00
hanqiyuan
c7455e7e8e
audio: add offload underflow msg state
...
Signed-off-by: hanqiyuan <hanqiyuan@xiaomi.com>
2024-10-16 08:11:04 +08:00
anjiahao
0bd9c8d7ae
Kconfig:Add an option to disable compilation of floating point related files
...
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2024-10-16 07:58:00 +08:00
chenzhijia
65fbf4cf64
nuttx/include:Modify the CPU_SET series macro definition in sched.h
...
Modify the CPU_SET series macro definition to avoid an error when shifting 31 bits to the left.
Signed-off-by: chenzhijia <chenzhijia@xiaomi.com>
2024-10-15 21:05:36 +08:00
chenzhijia
aca7552d9c
nuttx/include:add #define CPU_SETSIZE in sched.h
...
add #define CPU_SETSIZE in sched.h to pass tlpi example: https://man7.org/tlpi/code/online/dist/procpri/t_sched_getaffinity.c.html
Signed-off-by: chenzhijia <chenzhijia@xiaomi.com>
2024-10-15 21:05:36 +08:00
wangxiaoxin
366ede9530
add lin status changes the format of the reported frame and add the macros that lin needs
...
Signed-off-by: wangxiaoxin <wangxiaoxin@xiaomi.com>
2024-10-15 19:45:38 +08:00
wanggang26
d22ad37cd7
elf:fix a ci error
...
Configuration/Tool: teensy-2.0/nsh
In file included from
/github/workspace/sources/nuttx/include/nuttx/coredump.h:35:0,
from
/github/workspace/sources/nuttx/sched/misc/coredump.h:28,
from ./init/nx_bringup.c:54:
/github/workspace/sources/nuttx/include/nuttx/elf.h:31:22: fatal error:
arch/elf.h: No such file or directory
Signed-off-by: wanggang26 <wanggang26@xiaomi.com>
2024-10-15 19:41:26 +08:00
hujun5
a567148888
sched: add up_this_task and up_change_task macro stub
...
reason:
We can utilize percpu storage to hold information about the
current running task. If we intend to implement this feature, we would
need to define two macros that help us manage this percpu information
effectively.
up_this_task: This macro is designed to read the contents of the percpu
register to retrieve information about the current
running task.This allows us to quickly access
task-specific data without having to disable interrupts,
access global variables and obtain the current cpu index.
up_update_task: This macro is responsible for updating the contents of
the percpu register.It is typically called during
initialization or when a context switch occurs to ensure
that the percpu register reflects the information of the
newly running task.
Configuring NuttX and compile:
$ ./tools/configure.sh -l qemu-armv8a:nsh_smp
$ make
Running with qemu
$ qemu-system-aarch64 -cpu cortex-a53 -smp 4 -nographic \
-machine virt,virtualization=on,gic-version=3 \
-net none -chardev stdio,id=con,mux=on -serial chardev:con \
-mon chardev=con,mode=readline -kernel ./nuttx
Signed-off-by: hujun5 <hujun5@xiaomi.com>
2024-10-15 15:25:55 +08:00
cuiziwei
8d7ee794f4
nuttx/elf.h: Fix build error with unknown type name 'bool'.
...
nuttx/include/nuttx/elf.h:118:1: error: unknown type name 'bool'
118 | bool up_checkarch(FAR const Elf_Ehdr *hdr);
| ^~~~
nuttx/include/nuttx/elf.h:30:1: note: 'bool' is defined in header '<stdbool.h>'; did you forget to '#include <stdbool.h>'?
29 | #include <arch/elf.h>
+++ |+#include <stdbool.h>
30 |
Signed-off-by: cuiziwei <cuiziwei@xiaomi.com>
2024-10-15 12:35:10 +08:00
wanggang26
7e5fb8450f
coredump: add architecture-specific registers dump, including NVIC and MPU
...
Signed-off-by: wanggang26 <wanggang26@xiaomi.com>
2024-10-15 11:40:05 +08:00
wanggang26
9b094e8f0d
mmcsd:add postsleep fields for mmc_ioc_cmd
...
Signed-off-by: wanggang26 <wanggang26@xiaomi.com>
2024-10-15 02:06:00 +08:00
ligd
7d218f93fa
libc: add nx_strdup() & nx_strndup() support
...
Signed-off-by: ligd <liguiding1@xiaomi.com>
2024-10-15 01:16:48 +08:00
chao an
2a65a34bee
Revert "pthread: We should not directly include arch/spinlock.h as it may cause compilation errors in C++."
...
This reverts commit 444a9fbcd6
.
2024-10-14 17:42:16 +08:00
chao an
ce42a9affc
Revert "sched/spinlock: remove nesting spinlock support"
...
This reverts commit 5aa13bc490
.
2024-10-14 17:42:16 +08:00
hujun5
b964eeee18
Reapply "sched/spinlock: remove nesting spinlock support"
...
This reverts commit 9e81f5efac
.
Signed-off-by: hujun5 <hujun5@xiaomi.com>
2024-10-13 18:31:35 +08:00
zhangwenjian
7a3c50b3db
noteram:support binary read mode
...
Signed-off-by: zhangwenjian <zhangwenjian@xiaomi.com>
2024-10-13 14:05:50 +08:00
wangmingrong
1b3f3d19e9
noteram: fix variable type
...
Signed-off-by: wangmingrong <wangmingrong@xiaomi.com>
2024-10-13 14:05:50 +08:00
zhangwenjian
149b1f186e
drivers/note:add the api of sched_note_add
...
Signed-off-by: zhangwenjian <zhangwenjian@xiaomi.com>
2024-10-13 14:05:50 +08:00
zhangwenjian
7aa1871664
note:support filter for each note channel
...
Signed-off-by: zhangwenjian <zhangwenjian@xiaomi.com>
2024-10-13 14:05:50 +08:00
yinshengkai
c018be66bd
note: merge nc_systime_nsec and sec
...
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2024-10-13 14:05:50 +08:00
yintao
d2fc3f21de
net/rpmsg: use hash to handle rp_name
...
expand the user's rpname size
hash when exceed RPMSG_SOCKET_NAME_LEN due to the limitation of eptname
Signed-off-by: yintao <yintao@xiaomi.com>
2024-10-13 11:33:04 +08:00
YanXiaowei
356ddee5b8
support trace_beginex and trace_endex
...
Signed-off-by: YanXiaowei <yanxiaowei@xiaomi.com>
2024-10-13 10:23:44 +08:00
chenrun1
9e81f5efac
Revert "sched/spinlock: remove nesting spinlock support"
...
This reverts commit 5aa13bc490
.
2024-10-13 09:41:59 +08:00
chenzhijia
505adfa277
nuttx:move "#define STRINGIFY(x)" to nuttx/macro.h
...
Franklin requirement, "#define STRINGIFY(x)" conflicts with https://github.com/mborgerding/kissfft define
Signed-off-by: chenzhijia <chenzhijia@xiaomi.com>
Signed-off-by: lipengfei28 <lipengfei28@xiaomi.com>
2024-10-13 03:16:25 +08:00