shizhenghui
ea64cefa33
nxcodec: improve Kconfig help
...
Signed-off-by: shizhenghui <shizhenghui@xiaomi.com>
2024-07-10 00:16:14 +08:00
shizhenghui
ae9f4e2231
nxcodec: update log information
...
Signed-off-by: shizhenghui <shizhenghui@xiaomi.com>
2024-07-09 16:32:21 +08:00
yangsen5
69a56e7260
system/nxcodec: modify print usage
...
Signed-off-by: yangsen5 <yangsen5@xiaomi.com>
2024-07-09 16:32:21 +08:00
yangsen5
b3a424613b
system/nxcodec: add CMakeLists.txt
...
Signed-off-by: yangsen5 <yangsen5@xiaomi.com>
2024-07-09 16:32:21 +08:00
yangsen5
9312a74004
add m2m decoder/encoder test
...
Signed-off-by: yangsen5 <yangsen5@xiaomi.com>
2024-07-09 16:32:21 +08:00
xuxin19
cbcf9ec168
cmake:add CMake build for libuv
...
Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
2024-06-30 21:40:25 +08:00
xuxin19
8e15514955
cmake:add zlib CMake build
...
Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
2024-06-30 21:40:25 +08:00
xuxin19
2e133feb09
cmake:support system apps CMake build
...
Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
2024-06-30 21:40:25 +08:00
SPRESENSE
97d399dcb8
system/spi: Add CMakeLists.txt
...
Add CMakeLists.txt to system SPI tool.
2024-06-28 20:17:04 +08:00
Yanfeng Liu
2a2c5a420e
system/telnetd: add CMake script
...
This adds CMake support for the `telnetd` command
Signed-off-by: Yanfeng Liu <yfliu2008@qq.com>
2024-06-24 22:03:43 +08:00
Zhe Weng
f620353507
system/iptables: Support ip6tables & filter table
...
Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
2024-06-21 10:16:01 +08:00
Zhe Weng
8ae06462eb
system/iptables: Support filter table
...
Add supports for filter table, usage is same as Linux's iptables, including:
- [!] -p/--protocol
- [!] -s/--source -d/--destination
- [!] -i/--in-interface -o/--out-interface
- [!] --sport/--source-port --dport/--destination-port
- [!] --icmp-type
Examples:
> iptables -P FORWARD DROP
> iptables -I INPUT -i eth0 ! -p icmp -j DROP
> iptables -t filter -A FORWARD -p tcp -s 10.0.1.2/24 -d 10.0.3.4/24 -i eth0 -o eth1 --sport 3000:3200 --dport 123:65535 -j ACCEPT
> iptables -t filter -I FORWARD 2 -p icmp ! -s 123.123.123.123 ! -i eth0 -o eth1 ! --icmp-type 255 -j REJECT
> iptables -L
Chain INPUT (policy ACCEPT)
target prot idev odev source destination
DROP !icmp eth0 any anywhere anywhere
Chain FORWARD (policy DROP)
target prot idev odev source destination
ACCEPT tcp eth0 eth1 10.0.1.2/24 10.0.3.4/24 tcp spts:3000:3200 dpts:123:65535
REJECT icmp !eth0 eth1 !123.123.123.123/32 anywhere icmp !type 255
Chain OUTPUT (policy ACCEPT)
target prot idev odev source destination
Note:
- We're dropping dependency of argtable3, since it is difficult to support command like '! -p tcp ! -i eth0'
Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
2024-06-21 10:16:01 +08:00
raiden00pl
72635a88ca
system: add sensor streaming tool based on nxscope
...
This tool allows you to send sensor data via the nxscope interface.
Useful when we test sensors or when we just need a tool to visualize
data from sensors.
Works only with the new sensor framework.
2024-05-23 11:50:08 +08:00
Tiago Medicci Serrano
a09521ed55
system/nxdiag: Remove unnecessary --depth
parameter
...
This commits removes the unnecesary `--depth` parameter: Espressif
common headers do not require it.
2024-05-23 11:49:08 +08:00
hujun5
a9bd4dbe01
Fix compiler errors
...
taskset.c: In function 'taskset_main':
Error: taskset.c:141:48: error: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'cpu_set_t' {aka 'long unsigned int'} [-Werror=format=]
141 | printf("pid %d's current affinity mask: %x\n", pid, cpuset);
| ~^ ~~~~~~
| | |
| | cpu_set_t {aka long unsigned int}
| unsigned int
| %lx
cc1: all warnings being treated as errors
make[2]: *** [/github/workspace/sources/apps/Application.mk:271: taskset.c.github.workspace.sources.apps.system.taskset.o] Error 1
make[2]: Target 'all' not remade because of errors.
make[1]: *** [Makefile:51: /github/workspace/sources/apps/system/taskset_all] Error 2
make[1]: Target 'all' not remade because of errors.
make: *** [tools/LibTargets.mk:232: /github/workspace/sources/apps/libapps.a] Error 2
make: Target 'all' not remade because of errors.
Signed-off-by: hujun5 <hujun5@xiaomi.com>
2024-05-22 19:09:22 +08:00
Xiang Xiao
ca310eb295
Fix Error: logcat_service.c:69:11: error: variable 'ret' set but not used
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2024-05-21 08:54:56 +08:00
Stuart Ianna
cb7dd37f78
system/spi: Set SPI delay characteristics to zero when enabled.
...
Previously, when delay control was enabled, spi_transfer would pass junk
values down to the underlying driver because these values where not
initialized.
Setting them to zero provides a predictable result considering they are
not controlled by this tool.
2024-05-17 19:01:20 +08:00
Xiang Xiao
af1071ba5f
Revert "system/adb: Ignore warnings for using variables"
...
This reverts commit d372099242
since the mainline already fix this problem
2024-05-16 10:48:45 -03:00
Xiang Xiao
b00041a9b0
system/adb: Always download the last microADB from github
...
to get the update automatically
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2024-05-16 10:48:45 -03:00
simbit18
a59797bbdd
fix nxstyle
...
fix Relative file path does not match actual file.
2024-05-11 01:20:08 +08:00
yinshengkai
d372099242
system/adb: Ignore warnings for using variables
...
Will cause compilation warning if NDEBUG is defined
We can't modify the code of the external library, so let's ignore it
microADB/hal/hal_uv_client_usb.c:90:13: warning: unused variable 'ret' [-Wunused-variable]
90 | int ret = uv_read_start((uv_stream_t*)&client->pipe,
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2024-05-11 01:19:42 +08:00
simbit18
dadbea7e3b
fix nxstyle
...
fix Relative file path does not match actual file.
Add missing Apache Foundation copyright header
2024-04-30 00:02:31 +08:00
Zhe Weng
43a8e862e0
apps/system: Add conntrack command
...
A simple tool like Linux's 'conntrack', only supports printing NAT connections now.
nuttx> conntrack -E
[NEW] icmp src=192.168.21.66 dst=1.2.3.4 type=8 code=0 id=26739 src=1.2.3.4 dst=192.168.11.1 type=0 code=0 id=26739
[NEW] tcp src=192.168.21.66 dst=1.2.3.4 sport=38446 dport=80 src=1.2.3.4 dst=192.168.11.1 sport=80 dport=38446
[DESTROY] icmp src=192.168.21.66 dst=1.2.3.4 type=8 code=0 id=26739 src=1.2.3.4 dst=192.168.11.1 type=0 code=0 id=26739
nuttx> conntrack -L
tcp src=192.168.21.66 dst=1.2.3.4 sport=38446 dport=80 src=1.2.3.4 dst=192.168.11.1 sport=80 dport=38446
icmp src=192.168.21.66 dst=1.2.3.4 type=8 code=0 id=26739 src=1.2.3.4 dst=192.168.11.1 type=0 code=0 id=26739
conntrack: 2 flow entries have been shown.
Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
2024-04-18 09:57:01 +08:00
simbit18
000a8bcdf1
Fix nuttx coding style
...
fix
error: Relative file path does not match actual file
error: Long line found
error: Operator/assignment must be preceded with whitespace
error: Missing blank line after comment
2024-04-18 09:56:48 +08:00
TimJTi
169beaeef7
Add Settings Utility and example app
2024-03-03 02:36:56 +08:00
Jorge Guzman
0cc42d6e45
sensor/lm75: fix C syntax error
...
Signed-off-by" Jorge Guzman jorge.gzm@gmail.com
2024-02-25 10:38:51 -05:00
Alan Carvalho de Assis
f1137b3b55
apps: Make /dev/temp0 as default to system/lm75
...
The stm32 common logic board uses /dev/temp0 as
default, but system/lm75/lm75.c is trying to
open /dev/temp instead
Signed-off-by: Alan C Assis <acassis@gmail.com>
2024-02-23 19:21:40 -08:00
Zhe Weng
9236d9a2f4
apps/tcpdump: Support capture RAW IP interfaces like TUN
...
Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
2024-02-22 21:22:00 -08:00
Xiang Xiao
e4e43a1ca0
adb: Don't declare variables in the middle of function
...
and unify the prefix from ADB to ADBD
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2024-01-15 19:29:57 +08:00
Xiang Xiao
db0e0b9bfe
adbd/logcat: Change alog_ prefix to logcat_
...
to unify the prefix usage in the code base
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2024-01-15 19:29:57 +08:00
Xiang Xiao
e55c0d9aa5
Remove @ tag from all comments
...
and format the multiple line comments
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2024-01-04 10:26:49 +01:00
anjiahao
ffbf920623
gdbstub:update gdb_process api
...
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2023-12-11 08:43:34 -08:00
anjiahao
1334306585
coredump:support coredump command restore coredump form block device
...
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2023-12-08 19:28:09 -08:00
Petteri Aimonen
fcd0729e21
ptpd: Fix reserved word 'class'
...
When ptpd.h is included in C++ code, the use of identifier 'class'
caused a compilation error. Changed to "clockclass".
2023-12-07 18:26:39 -08:00
liqinhui
91a697a3f4
renew6: Optimize the process of obtaining an IPv6 address.
...
If Managed Address Congfiguration flag in the Router Advertisement
Messsage is set, we would obtain the IPv6 address though the stateful
DHCPv6 procedure.
Signed-off-by: liqinhui <liqinhui@xiaomi.com>
2023-12-07 06:26:50 -08:00
Petteri Aimonen
6dd9adbb5b
ptpd: Code quality improvements
2023-12-04 00:30:26 -08:00
Petteri Aimonen
0adce22400
ptpd: Implement status & stop interfaces
2023-11-24 20:15:38 -08:00
raiden00pl
cdbd14eb5f
cmake: support for system/uorb
2023-11-17 03:32:54 -08:00
simbit18
6a35182033
Fix Kconfig style
...
Remove spaces from Kconfig files
Replace help => ---help---
Add TABs
Add comments
2023-11-16 20:31:08 -08:00
chao an
6754d42715
system/popen: popen should depends on pipe()
...
Signed-off-by: chao an <anchao@xiaomi.com>
2023-11-15 08:27:28 -08:00
raiden00pl
4acad717fe
remove system/xxx/README.md. Migrated to Documentation/applications/system
2023-10-30 10:00:01 +08:00
jinxiuxu
518b1aea61
system/nxrecorder: add amr offload record support
...
Signed-off-by: jinxiuxu <jinxiuxu@xiaomi.com>
2023-10-27 21:00:59 +08:00
chenrun1
09bb3b5853
apps:move test tools to testing.
...
1.memstress
2.ramtest
3.ramspeed
4.cachespeed
Signed-off-by: chenrun1 <chenrun1@xiaomi.com>
2023-10-26 13:17:28 +02:00
dongjiuzhu1
e61ff51e67
system/popen: remove O_CLOEXEC if mode exinclude 'e'
...
refs: https://man7.org/linux/man-pages/man3/popen.3.html
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2023-10-26 00:24:28 +08:00
dongjiuzhu1
cc66e34fbf
rexecd: avoid socket/pipe/socketpair dup to new task
...
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2023-10-26 00:24:28 +08:00
chenrun1
15ad46fff9
ramspeed:Fix the problem that the "-i" option doesn't work.
...
Signed-off-by: chenrun1 <chenrun1@xiaomi.com>
2023-10-24 09:36:36 +08:00
chenrun1
2d7bfa2390
memorystress:Enhanced debugging capabilities
...
Signed-off-by: chenrun1 <chenrun1@xiaomi.com>
2023-10-24 09:35:59 +08:00
Xiang Xiao
f2fcbe7ccf
testing: Swith up_perf_xxx to perf_xxx
...
follow up the the kernel change:
https://github.com/apache/nuttx/pull/10834
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Signed-off-by: TaiJu Wu <tjwu1217@gmail.com>
2023-10-23 11:52:07 -03:00
raiden00pl
2ac77e3e98
system/ntpc/Kconfig: cosmetcis
2023-10-23 22:26:13 +08:00
raiden00pl
67c58a3263
system/ptpd/Kconfig: cosmetics
2023-10-23 22:26:13 +08:00
chao an
929f1009c7
system/readline: correct the readline(3) prototype
...
Reference:
https://man.openbsd.org/readline.3
Signed-off-by: chao an <anchao@xiaomi.com>
2023-10-16 22:04:18 +08:00
liqinhui
79e8722743
dhcp6c: Add the renew6 command for dhcp6c.
...
Support Stateless and Stateful. The renew6 is used as follows:
- Stateless: renew6 eth0
- Stateful: renew6 eth0 1
Signed-off-by: liqinhui <liqinhui@xiaomi.com>
2023-10-12 10:15:55 +08:00
Michal Lenc
529c0f1fc9
system: use fileno to get stream file descriptor
...
There is a POSIX defined interface to get file descriptor from file_struct
stream. Applications should use it and not access the structure directly.
Signed-off-by: Michal Lenc <michallenc@seznam.cz>
2023-10-10 01:03:42 +08:00
xuxin19
77a5666cb7
Revert "fix progname do not match issue"
...
This reverts commit c230321cae
.
2023-10-10 01:02:50 +08:00
Petteri Aimonen
5a992d4e18
Add basic IEEE-1588 PTP server/client
...
What works:
- Basic server & client operation
- Transmission and reception of announce, sync and follow-up
Still missing:
- SO_TIMINGS for getting more precise packet timestamps
- Implementation of delay_req and delay_resp packets
- Status and stop interfaces for the daemon
2023-10-06 17:25:23 +08:00
anjiahao
ddaa1411a3
system/zlib:fix makefile rule
...
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2023-09-28 08:50:55 +02:00
anjiahao
a48810f4a5
zlib:add support for zlib
...
We can use zip & unzip commands in nuttx
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2023-09-26 02:28:46 +08:00
likun17
009c9ad13f
apps/system/uorb/test/unit_test.c: add orb_copy return judgment.
...
Signed-off-by: likun17 <likun17@xiaomi.com>
2023-09-23 13:18:52 +08:00
hujun5
5c5c6653fd
libuv: fix build error
...
If UV_ONCE_INIT is a struct, the following errors will occur:
libuv/src/unix/nuttx.c: In function 'uv__global_get':
/home/hujun5/downloads1/vela_sim/apps/system/libuv/libuv/include/uv/unix.h:136:22: error: expected expression before '{' token
136 | #define UV_ONCE_INIT PTHREAD_ONCE_INIT
| ^~~~~~~~~~~~~~~~~
libuv/src/unix/nuttx.c:287:26: note: in expansion of macro 'UV_ONCE_INIT'
287 | global->once = UV_ONCE_INIT;
| ^~~~~~~~~~~~
/home/hujun5/downloads1/vela_sim/apps/system/libuv/libuv/include/uv/unix.h:136:22: error: expected expression before '{' token
136 | #define UV_ONCE_INIT PTHREAD_ONCE_INIT
| ^~~~~~~~~~~~~~~~~
libuv/src/unix/nuttx.c:288:50: note: in expansion of macro 'UV_ONCE_INIT'
288 | global->uv__signal_global_init_guard = UV_ONCE_INIT;
Signed-off-by: hujun5 <hujun5@xiaomi.com>
2023-09-23 13:18:27 +08:00
Huang Qi
08a4b76a2f
libuv: Upgrade to v1.46.0
...
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2023-09-18 12:40:13 +08:00
Daniel Appiagyei
b37e84b05f
c++ compatibility: rename usages of reserved c++ keywords 'this' and 'public'
2023-09-16 19:45:52 +08:00
Xiang Xiao
8f58d34e06
system/adb: Download the latest package
...
to fix error: microADB/hal/hal_uv.c:32:38: error:
a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-09-13 21:08:23 +08:00
wangjianyu3
bf4d873985
system/fastboot: Fix command comparation
...
e.g. The command is "reboot-bootloader", but will match and break when
compared with "reboot"
Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
2023-09-12 16:26:09 +08:00
yangsen5
d2fd626780
nxcamera: Fix compilation warnings caused by format issues
...
nxcamera_main.c:160:26: warning: format '%d' expects argument of type 'int *', but argument 5 has type 'uint32_t *' {aka 'long unsigned int *'} [-Wformat=]
160 | sscanf(parg, "%hd %hd %d %4s", &width, &height, &framerate, cc);
| ~^ ~~~~~~~~~~
| | |
| int * uint32_t * {aka long unsigned int *}
| %ld
Signed-off-by: yangsen5 <yangsen5@xiaomi.com>
2023-09-12 10:08:58 +08:00
xuxin19
c230321cae
fix progname do not match issue
...
Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
2023-09-11 16:37:05 +08:00
guohao15
a8598aa8d2
app:ramspeed the result of repeat_cnt * step has been truncated
...
Signed-off-by: guohao15 <guohao15@xiaomi.com>
2023-09-07 13:52:09 +08:00
Xiang Xiao
a5ef6d57c1
system/cu: Remove the dependence on stdio FILE * function
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-09-06 14:29:34 +02:00
Xiang Xiao
5f9d9bb1c2
system/cu: Support the custom escape char
...
note: -f could be achieved with -E '' like https://linux.die.net/man/1/cu
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-09-06 14:29:34 +02:00
Xiang Xiao
b60cdf4927
system/cu: Skip the terminal related stuff if dev isn't a tty
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-09-06 14:29:34 +02:00
Xiang Xiao
3ff51d108b
system/cu: Merge infd and outfd into devfd
...
to avoid opening the same device twice since
some special device can't work in this case
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-09-06 14:29:34 +02:00
dinglongfei
5cced37a1b
system: support system fastbootd
...
Add the fastbootd program to support the flash, getvar, and reboot commands.
Signed-off-by: zhangyuan21 <zhangyuan21@xiaomi.com>
2023-09-06 17:27:26 +08:00
Tiago Medicci Serrano
9a68248f29
system/nxlooper: Initialize audio_caps_s
to 0
...
This avoids unspecified values to be passed to the lower interfaces
of the audio subsystem.
2023-09-01 23:20:51 +08:00
jianglianfang
201a57440c
system/nxcamera: add pan_display when it is not single buffer.
...
After optimizing the vync mechanism, it is necessary to use ioctl (display) to refresh the display in dual buffer mode.
run nxcamera.
Signed-off-by: jianglianfang <jianglianfang@xiaomi.com>
2023-08-30 20:51:58 +03:00
renzhiyuan1
fece67ee4b
Fix wrong parameter size
...
Type int expects 4 bytes for function write(). Type char expects 1 byte which matches the real usage of function write().
Signed-off-by: renzhiyuan1 <renzhiyuan1@xiaomi.com>
2023-08-30 19:42:57 +03:00
yinshengkai
5a0bc863dd
setlogmask: fix uncloseed handle
...
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2023-08-28 17:09:18 +03:00
liaoao
1243c0ba4d
libfdt: modify makefile
...
update LIBFDT to LIBC_FDT
move version_gen.h and place it under nuttx/libs/libc/fdt/
change include path to nuttx/libs/libc/fdt/dtc/
Signed-off-by: liaoao <liaoao@xiaomi.com>
2023-08-26 17:06:55 +08:00
xuxin19
a091b91d83
cmake:replace custom_patch_target with PATCH_COMMAND
...
Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
2023-08-24 17:49:12 +02:00
chao an
8aa3c1e4b9
system/libuv: export GCCVER to environment
...
Signed-off-by: chao an <anchao@xiaomi.com>
2023-08-24 20:49:22 +08:00
chao an
77e6c39cbd
system/libuv: strict GCC version check from GCC-12.2 to GCC-12
...
Toolchain related detection errors are still not resolved on GCC-12.3
Signed-off-by: chao an <anchao@xiaomi.com>
2023-08-23 23:51:14 +08:00
Petro Karashchenko
189d0c803f
net/ip: print ip addresses using ip4_addrN macro
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2023-08-22 01:36:42 +08:00
Xiang Xiao
054cf3b1cb
Change all sizeof(arr)/sizeof(arr[0]) to nitems
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-08-17 22:51:51 +03:00
huangkai8
323c16a5fb
Wrong start and end values would make dead cycle. Exchange the values when start value is bigger than end value.
2023-08-16 20:20:03 +03:00
fengxuesong
3f556c8df4
Fix the bug of i2c_dev
...
Signed-off-by: fengxuesong <fengxuesong@xiaomi.com>
2023-08-14 13:40:15 +08:00
fengxuesong
c6ee7baca7
Fix the bug of i2c_bus
...
Signed-off-by: fengxuesong <fengxuesong@xiaomi.com>
2023-08-14 13:40:15 +08:00
wanggang26
eb815c48d7
ofloader: startup ofloader directly
...
Signed-off-by: wanggang26 <wanggang26@xiaomi.com>
2023-08-14 13:39:42 +08:00
huxiandong
5a4e9e4389
nxrecorder: mode is required when oflags include O_CREAT or O_WRONLY
...
Refer -- fs_open.c:
/* If the file is opened for creation, then get the mode bits */
if ((oflags & (O_WRONLY | O_CREAT)) != 0)
{
mode = va_arg(ap, mode_t);
}
Signed-off-by: huxiandong <huxiandong@xiaomi.com>
2023-08-12 01:11:35 +08:00
yinshengkai
bdc522bad7
trace: move trace_dump to noteram
...
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2023-08-11 13:52:12 +08:00
yinshengkai
95b0515c30
trace: unify ftrace and atrace output formats
...
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2023-08-11 13:52:12 +08:00
fengxuesong
fad26cb3ae
Add function is missing FAR
...
Signed-off-by: fengxuesong <fengxuesong@xiaomi.com>
2023-08-11 13:50:38 +08:00
yangsen5
78792120cd
nxcamera: Solve compilation errors caused by type mismatch
...
CC: nxcamera.c nxcamera.c: In function 'show_image':
nxcamera.c:85:20: error: initialization of 'uint32_t *' {aka 'unsigned int *'} from incompatible pointer type 'uint8_t *' {aka 'unsigned char *'} [-Werror=incompatible-pointer-types]
85 | uint32_t *pbuf = pcam->bufs[buf->index];
| ^~~~
cc1: all warnings being treated as errors
Signed-off-by: yangsen5 <yangsen5@xiaomi.com>
2023-08-11 13:50:28 +08:00
liaoao
126faafb6e
fdttools: add fdt utility tools
...
Signed-off-by: liaoao <liaoao@xiaomi.com>
2023-08-10 20:39:11 +08:00
jinxudong
6bea926ef2
sensor: add force sensor
...
A sensor of this type measures the force on it, and additionally
compares the force with one or more specified thresholds. The sensor
can output the force value directly. Moreover, it's usually applied
as a press key. In that case, when it detects a force greater than
some given threshold, a corresponding event is reported.
Signed-off-by: jinxudong <jinxudong@xiaomi.com>
2023-08-10 03:33:22 +08:00
haopengxiang
bdedf648c5
uorb/topics: update delicated match of listener topics
...
bug: if user input obr_topic is sensor_gps_sate(wrong topic, which does not exist), the using of `strncmp` will assign idx=8 (as sesnor_gps) in the first.
However, there is no match in the `g_sensor_list`, hence idx=8 will give out value of `sensor_gps` as output(wrong).
Change: This update aims to match the whole value of sensor name in `g_sensor_list`, while keeping `sensor_name+number` match in this condition.
Signed-off-by: haopengxiang <haopengxiang@xiaomi.com>
2023-08-10 02:01:09 +08:00
haopengxiang
6b5038ef7a
uorb/sensor/gps: fix uorinfo_raw print error
...
[ 15.979300] [24] [ INFO] [ap] sensor_gps_satellite: timestamp: 15979200 (100 us ago)
[ 15.979400] [24] [ INFO] [ap] sensor_gps_satellite: number:0 svid: 13elevation: 54azimuth: 253 snr: 0
[ 15.979600] [24] [ INFO] [ap] sensor_gps_satellite: number:1 svid: 21elevation: 43azimuth: 77 snr: 0
[ 15.979700] [24] [ INFO] [ap] sensor_gps_satellite: number:2 svid: 22elevation: 9azimuth: 35 snr: 0
[ 15.979800] [24] [ INFO] [ap] sensor_gps_satellite: number:3 svid: 23elevation: 23azimuth: 268 snr: 0
Signed-off-by: haopengxiang <haopengxiang@xiaomi.com>
2023-08-10 02:01:09 +08:00
zhangyuan21
7dcb0c79c3
adb: add adb log level
...
Signed-off-by: zhangyuan21 <zhangyuan21@xiaomi.com>
2023-08-10 00:50:50 +08:00
chenxiaoyi
0c6016475b
system: dd: add standalone dd command
...
enabling SYSTEM_DD will disable nsh_dd by selecting NSH_DISABLE_DD
Signed-off-by: chenxiaoyi <chenxiaoyi@xiaomi.com>
2023-08-09 20:59:40 +08:00
yangsen5
4d2fb8a6cf
nxcamera: Add logic to convert to rgb565
...
Since the current fb display format of vela qemu is rgb565, it is necessary to convert the frame obtained by v4l2 to rgb565
Signed-off-by: yangsen5 <yangsen5@xiaomi.com>
2023-08-09 18:22:39 +08:00
chao an
3b2b73de88
coredump/priority: Increase the default priority of coredump to 254
...
Increase coredump priority to avoid unnecessary task switch during dump
Signed-off-by: chao an <anchao@xiaomi.com>
2023-08-09 15:00:45 +08:00
fengxuesong
2909e8d7a0
Add function missing FAR information
...
Signed-off-by: fengxuesong <fengxuesong@xiaomi.com>
2023-08-09 14:47:00 +08:00
shipei
5aaf4136bf
nxplayer:add sbc simple parser in nxplayer
...
Usage:
device /dev/audio/compress0p
play /data/test.sbc
This function requires the platform to support compress decoding and playback
Signed-off-by: shipei <shipei@xiaomi.com>
2023-08-08 21:41:15 +08:00