yaojingwei
a57e3f365a
video.c: modify set_buf call seqence in start_capture function.
...
To avoid losing the first frame, the set_buf needs to excute first. At the same time, imgdata->start_capture should excuted before the imgsensor->start_capture.
Signed-off-by: yaojingwei <yaojingwei@xiaomi.com>
2023-11-29 02:01:34 -08:00
qinshijing
e5eabbb411
arch/sim: sim support 16bbp
...
Signed-off-by: qinshijing <qinshijing@xiaomi.com>
2023-11-21 21:53:06 -08:00
anjiahao
749655d785
tcbinfo:remove total_num form tcbinfo.
...
total_num is not required
test:
make -f tools/Makefile.host
cp tools/jlink-nuttx /opt/SEGGER/JLink_V786a/libnuttxplugin.so
JLinkGDBServer -if SWD -speed 5000 -device STM32F429ZI -NoGui 1 -rtos libnuttxplugin
can run normally
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2023-11-21 21:52:24 -08:00
liqinhui
be32247e73
simwifi: Escapes the special characters of ssid in the scan results.
...
The ssid format refers to the format of ssid displayed on the mobile
phone.
Signed-off-by: liqinhui <liqinhui@xiaomi.com>
2023-11-21 17:05:32 -08:00
liqinhui
7c13116007
simwifi: Connect the wifi whose ssid contains the special charaters.
...
When setting the essid that contains the special characters (\"'),
we need to add an escape (\) for them.
Signed-off-by: liqinhui <liqinhui@xiaomi.com>
2023-11-21 08:00:13 -08:00
Xiang Xiao
20783635d4
arch/sim: Remove the wrong comment from up_allocate_heap
...
forget from https://github.com/apache/nuttx/pull/11043
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-11-19 20:23:30 +01:00
zhanghongyu
bdc934b817
usb_rawgadget: remove halt operation
...
The halt operation may be causes the raw epread data segment lost, and
usb ep_queue can handle when the usb buffer is full. so remove the
relevant operations.
Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2023-11-17 06:38:21 -08:00
Xu Xingliang
6e7115ca09
mm: free delay list when exceeding specified count
...
Signed-off-by: Xu Xingliang <xuxingliang@xiaomi.com>
2023-11-15 12:05:20 +01:00
Xiang Xiao
0d42f1b3cf
arch/sim: Replace [enter|leave]_critical_section with up_irq_[save|restore]
...
since it's enough to protect per cpu data with irq disabling
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-11-12 18:28:05 +01:00
dongjiuzhu1
b64dd8bed0
sim/raw_gadget: let's raw_epxhandle exit when unregister usbdev
...
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2023-11-11 21:09:59 +08:00
dongjiuzhu1
839eaacbcc
sim/usbdev: add clase disconnect when usbdev_unregister
...
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2023-11-11 21:09:59 +08:00
yinshengkai
bb5b5420ae
mm: record the maximum system memory usage
...
Add the usmblks field to mallinfo to record the maximum space allocated historically in the system
https://man7.org/linux/man-pages/man3/mallinfo.3.html#:~:text=mmap(2).-,usmblks,-This%20field%20is
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2023-11-09 09:08:49 +08:00
liqinhui
68a0621b39
simwifi: Fix a compile error.
...
sim/sim_wifidriver.c:569:31: warning: implicit declaration of function ‘hex2num’ [-Wimplicit-function-declaration]
569 | val = hex2num(*pos);
| ^~~~~~~
Signed-off-by: liqinhui <liqinhui@xiaomi.com>
2023-11-08 19:32:01 +08:00
zhanghongyu
7c322c250a
sim_netdriver: some sim defconfig have problems when using the network
...
if the configured SIM_NETDEV_BUFSIZE < host MTU, there will be issues with access out of bounds
Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2023-11-04 17:53:25 +08:00
liqinhui
2d27dc0ef0
simwifi: For scan results, parse and translate the Chinese ssid encoded by the wpa_cli.
...
Because there is no pre-encoding length of the ssid, the ssid including
the Chinese characters whose length is less than 32 after encoding
cann't be translated.
For example, the ssid name is `word人`. After encoding it is `world\xe4\xba\xba` and will not be decoded.
Signed-off-by: liqinhui <liqinhui@xiaomi.com>
2023-11-03 22:29:43 +08:00
liqinhui
22d11aafa2
simwifi: Transfer the special characters in ssid.
...
The SSID can be configured with special symbols suach as single
quotations, double quotations and backslashes, which need to be escaped.
Signed-off-by: liqinhui <liqinhui@xiaomi.com>
2023-11-01 16:14:34 +01:00
liqinhui
c7d0b32e4f
simwifi: Support that get the connected Chinese essid.
...
The Chinese essid obtained by wpa_cli is encoded. So, we directly use
the essid saved in wifidev.
Signed-off-by: liqinhui <liqinhui@xiaomi.com>
2023-11-01 09:28:51 +08:00
liqinhui
1560db9f9b
simwifi: Fix the error of the need length for scanning.
...
The error of estimating the buffer space may cause an out-of-bounds in filling scan results.
Signed-off-by: liqinhui <liqinhui@xiaomi.com>
2023-10-27 22:25:58 +08:00
liqinhui
5228d773d3
simwifi: Support that simwifi connects to the hiden ssid.
...
Signed-off-by: liqinhui <liqinhui@xiaomi.com>
2023-10-26 08:27:45 -03:00
liqinhui
66b11d8940
sim/wifidriver: Fix the scan error.
...
Using the uninitialized buffer causes the out of bounds.
Add a terminator for the rbuf.
Signed-off-by: liqinhui <liqinhui@xiaomi.com>
2023-10-26 16:22:28 +08:00
dongjiuzhu1
6efdd50d5a
arch/sim: Remove executable bit from the normal heap
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-10-26 01:53:38 +08:00
dongjiuzhu1
861220f649
arch/sim: Simplify the implementation of textheap by reuse the heap manager
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-10-26 01:53:38 +08:00
simbit18
2be45a3391
Update Fix more generic for platforms that do not have execinfo.h
...
Improve multiplatform code with __has_include.
2023-10-15 01:34:17 +08:00
TaiJuWu
1989749850
cpu_pause.c: fix typo
...
Signed-off-by: TaiJuWu <tjwu1217@gmail.com>
2023-10-14 00:26:31 -04:00
liqinhui
d27ca03b6c
wifi/simdriver: Support the sim wifi.
...
Add the Sim WiFi function, which can provide the wifi operating on nuttx sim emulator,
and support two modes that simulate wifi, HWSIM and RNC(real network card).
- In the HWSIM mode, we simulates two wlan interfaces. The wlan0 is STA and
the wlan1 is AP. The wlan0 can connect to the wlan1 in the nuttx simulator.
- In the RNC mode, we can use the same wlan interface name on the nuttx simulator
to control the connection behavior of the real wireless card.
Signed-off-by: liqinhui <liqinhui@xiaomi.com>
2023-10-12 17:08:25 +08:00
Xiang Xiao
dfa0283d83
spinlock: Rename spin_islocked to spin_is_locked
...
align with Linux naming style
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-10-06 20:03:19 -04:00
Xiang Xiao
cb11747f36
arch: add use_data to g_tcbinfo
...
to avoid compiler/linker remove it from the final image
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-09-29 08:00:18 +03:00
yinshengkai
4f25c287d2
arch/sim: add sim uart_ram support
...
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2023-09-23 15:22:42 +08:00
yintao
da7d6ef37b
sim_rptun: unlink shm when quit
...
if not unlink shm, the shared memory object still exists in host /dev/shm after quit
if nuttx is started with administrator privileges, or if it is restarted with user
privileges, there will be a problem with the permission to open this shm file
Signed-off-by: yintao <yintao@xiaomi.com>
2023-09-23 08:39:38 +02:00
yintao
f3c9a8643b
nuttx: change RPTUNIOC_START and RPTUNIOC_STOP to synchronous
...
Support quit remote when server poweroff
Signed-off-by: yintao <yintao@xiaomi.com>
2023-09-20 00:42:02 +08:00
Xiang Xiao
15e78470f8
arch/sim: Guard frame buffer related setting in SIM_X11FB
...
and remove SIM_VNCSERVER
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-09-19 10:33:52 +08:00
qiaohaijiao1
31da767cfc
sim/alsa: add AUDIO_FMT_PCM query handler
...
Signed-off-by: qiaohaijiao1 <qiaohaijiao1@xiaomi.com>
2023-09-19 09:39:44 +08:00
hujun5
02a3bbc73b
sim/posix: Add the host_system interface
...
Encapsulate the host system interface to host_system.
Signed-off-by: hujun5 <hujun5@xiaomi.com>
2023-09-18 11:41:24 -04:00
qiaohaijiao1
9334ae47c7
sim/sim_alsa: reset alsa pcm device when snd_pcm_avail < 0
...
Signed-off-by: qiaohaijiao1 <qiaohaijiao1@xiaomi.com>
2023-09-18 21:24:02 +08:00
Xiang Xiao
8dbe86084e
Remove FAR from source code under 32bit arch and board
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-09-16 19:12:13 +03:00
shipei
0beba027e7
audio:add 24K sample rate support
...
Signed-off-by: shipei <shipei@xiaomi.com>
2023-09-15 02:26:03 +08:00
jianglianfang
479bfd5414
sim_framebuffer: add double buffer for sim
...
support double framebuffer mode and adapter to the new vsync queue.
Signed-off-by: jianglianfang <jianglianfang@xiaomi.com>
2023-09-12 22:10:10 +08:00
pengyiqiang
6536ddcdcf
sim/framebuffer: remove duplicate poll notify
...
The framebuffer of the emulator is a single buffer mode, and the pan_display method is not implemented, so as long as the fb device is created and poll notify once, the fb can be kept in a writable state.
Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com>
2023-09-12 22:10:10 +08:00
Xiang Xiao
d4fd9f53cd
Fix error: arch/sim/src/sim/posix/sim_alsa.c:290:18: error: 'flags' undeclared
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-09-12 10:02:50 +08:00
yintao
9e43a4d31c
sim: To avoid system calls being interrupted when use host api
...
Signed-off-by: yintao <yintao@xiaomi.com>
2023-09-11 20:33:49 +08:00
shipei
f150699d7a
audio:add media session support for sim_alsa audio_ops_s interface
...
fix Compiler Warning:initialization of ‘int (*)(struct audio_lowerhalf_s *, void *)’
from incompatible pointer type ‘int (*)(struct audio_lowerhalf_s *)’ [-Wincompatible-pointer-types]
Signed-off-by: shipei <shipei@xiaomi.com>
2023-09-09 00:13:06 +08:00
yanxiaowei
5c780f6697
sim/framebuffer: fix memory leak
...
LeakSanitizer: detected memory leaks in XStringListToTextProperty
Signed-off-by: yanxiaowei <yanxiaowei@xiaomi.com>
2023-09-07 11:21:58 +03:00
cuiziwei
ba73272f67
nuttx/sim:add up_irq_enbale function.
...
Signed-off-by: cuiziwei <cuiziwei@xiaomi.com>
2023-09-06 21:42:42 +03:00
yintao
cb105192c7
nuttx/sim: Sim_rptun support configuring whether the master will automatically boot slave
...
Signed-off-by: yintao <yintao@xiaomi.com>
2023-09-06 17:05:55 +03:00
chao an
664927c86e
mm/alloc: remove all unnecessary cast for alloc
...
Fix the minor style issue and remove unnecessary cast
Signed-off-by: chao an <anchao@xiaomi.com>
2023-08-30 14:34:20 +08:00
chao an
518dcbdaad
sim/internal: add typedef pid_t to enhance sim compatibility
...
enhance sim compatibility on windows
Signed-off-by: chao an <anchao@xiaomi.com>
2023-08-28 17:12:45 +03:00
Xiang Xiao
47faeeb360
tls: Move task_tls_alloc and task_tls_destruct to libc
...
so task_tls_destruct can be called from usrspace, which is required by:
https://github.com/apache/nuttx/pull/10288
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-08-28 11:02:18 +03:00
chengkai
d867c46bbc
serial/uart/h5: add bt h5 uart serial driver
...
Signed-off-by: chengkai <chengkai@xiaomi.com>
2023-08-25 17:17:37 +08:00
liqinhui
0d39246b4e
sim/posix: Add the host_system interface used to execute the host command
...
Encapsulate the host system/popen interface to host_system.
Signed-off-by: liqinhui <liqinhui@xiaomi.com>
2023-08-21 17:40:40 +08:00
yintao
4b5910efc1
nuttx/sim: simlulator rptun powerdown
...
Signed-off-by: yintao <yintao@xiaomi.com>
2023-08-21 13:21:50 +08:00