dongjiuzhu1
c983aee38a
driver/serial: fix race condition about calling rxflowcontrol in mutli thread
...
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2023-08-30 14:33:00 +08:00
dongjiuzhu1
ec4f6ecce2
driver/serial: fix error echo about VT100 escape sequence
...
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2023-08-30 14:26:11 +08:00
Michal Lenc
f9d4a47889
pcf8575: fix compilation warnings
...
Just few compile warning fixes in case CONFIG_IOEXPANDER_MULTIPIN is
selected.
Signed-off-by: Michal Lenc <michallenc@seznam.cz>
2023-08-29 20:34:12 +08:00
Michal Lenc
b005f844f5
ioexpander: add support for ISO1I813T expander
...
This commit adds basic support for electrically isolated 8 bit expander.
The expander communicates with the MCU via SPI interface. Both single
and multiple pin read are supported.
Signed-off-by: Michal Lenc <michallenc@seznam.cz>
2023-08-29 17:35:59 +08:00
chao an
b60f01a55b
inode/i_private: remove all unnecessary cast for i_private
...
Signed-off-by: chao an <anchao@xiaomi.com>
2023-08-29 08:58:07 +02:00
SPRESENSE
f556cb106a
drivers/video: Fix an issue isx019 may freeze
...
isx019 driver freezes by I2C access in the interrupt context.
This I2C access is intended to stop data output from FPGA.
Delete this I2C access for the following reasons.
- Data output from FPGA does not affect power consumption
- There are no problems in capture restart without data output stop
since restart is done by image data block first.
2023-08-29 13:37:01 +08:00
Michal Lenc
fa63ef69c9
ioexpander: add support for ISO1H812G expander
...
This commit adds support for galvanic isolated ISO1H812G SPI expander.
Both single pin and multiple pin writes are supported.
Signed-off-by: Michal Lenc <michallenc@seznam.cz>
2023-08-29 10:31:40 +08:00
chao an
7aa45305b7
fs/inode: remove all unnecessary check for filep/inode
...
Since VFS layer already contains sanity checks, so remove unnecessary lower half checks
Signed-off-by: chao an <anchao@xiaomi.com>
2023-08-29 09:47:11 +08:00
dulibo1
127bd81674
regulator:check id conflict when register
...
Signed-off-by: dulibo1 <dulibo1@xiaomi.com>
2023-08-29 02:59:59 +08:00
Alan Carvalho de Assis
7f62e315c6
bh1750fvi: Fix compilation error
...
Error: sensors/bh1750fvi.c:73:16: error: unused function 'bh1750fvi_open' [-Werror,-Wunused-function]
static int bh1750fvi_open(FAR struct file *filep);
^
Error: sensors/bh1750fvi.c:74:16: error: unused function 'bh1750fvi_close' [-Werror,-Wunused-function]
static int bh1750fvi_close(FAR struct file *filep);
2023-08-28 21:03:19 +03:00
yinshengkai
02d0762c6e
driver/note: fix trace dump: dump failed
...
Exceeding the length limit may cause an error when using sched_note_printf
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2023-08-29 00:09:10 +08:00
raiden00pl
8665acaffa
lsm9ds1.c: fix printf warnings
2023-08-27 10:05:05 +08:00
raiden00pl
7109fd6121
sensors/Kconfig: fix wrong depends on SN_XXX
2023-08-26 20:00:12 +08:00
SPRESENSE
f7400a857d
drivers/audio/cxd56: Move cxd56 sources into arch/cxd56xx
...
CXD56 audio functions are inside of the CXD56.
So implementation of it should be under arch directory.
2023-08-26 01:20:32 +08:00
ligd
b743d62703
syslog: remove unsed check
...
To simplify the code
Signed-off-by: ligd <liguiding1@xiaomi.com>
2023-08-25 17:31:31 +08:00
Jiuzhu Dong
904ca21a00
syslog & ramlog: add BOARDIOC_RESET_CAUSE for syslog & ramlog
...
cold boot should clear syslog & ramlog buffer
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
Signed-off-by: ligd <liguiding1@xiaomi.com>
2023-08-25 17:31:31 +08: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
Michal Lenc
00128ff2fe
pwm: fix incorrect documentation for PWMIOC_SETCHARACTERISTICS IOCTL
...
Documentation for PWMIOC_SETCHARACTERISTICS ioctl command mentioned
that this command will neither start nor stop the pulsed output. This
however is incorrect as PWMIOC_SETCHARACTERISTICS command leads to
pwm_start() function which starts the pulsed output.
While this might not be the correct behaviour (I would probably welcome
the option to set PWM characteristics without starting the pulsed output)
it is the way the PWM driver is coded for many architectures. Future
enhancement might be to add function pwm_setchar() for example to just
set characteristics without starting the PWM output.
Signed-off-by: Michal Lenc <michallenc@seznam.cz>
2023-08-24 01:37:40 +08:00
raiden00pl
a72b8e2fd4
cmake: drivers/segger support
2023-08-22 23:37:08 +08:00
guohao15
d4cebd5d77
mtd:add dhara compatiblity layer
...
to support dhara ftl for fatfs
Signed-off-by: guohao15 <guohao15@xiaomi.com>
2023-08-22 23:16:14 +08:00
xiajizhong
1c860f38e7
cordic API add scale parameter
...
Signed-off-by: xiajizhong <xiajizhong@xiaomi.com>
2023-08-22 12:51:36 +02:00
Zhe Weng
5597b8a9e2
drivers/virtio-net: Add support to offload small IOBs
...
TCP receive tested with different IOB_BUFSIZE:
| | 256B vs 1534B | 512B vs 1534B | 768B vs 1534B |
| :---------: | :-----------: | :-----------: | :-----------: |
| Non-SMP | ~85% | ~93% | ~96% |
| armv8a-SMP | ~66% | ~84% | ~92% |
| rv32/64-SMP | ~52% | ~72% | ~83% |
It seems we still get performance penalty on smaller IOBs, and may be
affected more under SMP mode. It may be caused by critical sections in
IOB operations.
Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
2023-08-22 16:34:21 +09:00
Zhe Weng
318d136320
netdev/upper: Add netpkt_to_iov() interface
...
Some driver like virtio-net can offload fragmented IOBs, so an interface
to support this feature is needed.
Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
2023-08-22 16:34:21 +09:00
Zhe Weng
d44e19d115
mm/iob: Add support for increasing length in iob_update_pktlen
...
Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
2023-08-22 16:34:21 +09:00
Zhe Weng
2fa68fbddd
drivers/virtio-net: Support different LL_GUARDSIZE
...
Previously, the CONFIG_NET_LL_GUARDSIZE is fixed to 32 (64-Bit) or
28 (32-Bit), it's a little bit tricky.
Now add support to any value greater than minimal size.
Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
2023-08-22 16:34:21 +09:00
zhangyuan21
9bccd94fee
rndis: Fixing erroneous macros
...
Signed-off-by: zhangyuan21 <zhangyuan21@xiaomi.com>
2023-08-22 01:31:19 +08:00
dongjiuzhu1
38c001a914
drivers/pipes: fix busyloop issue when circbuf is full
...
pipecommon_poll always reutrn POLLOUT when the circbuf is full.
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2023-08-22 01:30:17 +08:00
Xiang Xiao
90f8315432
arch: Remove up_netinitialize
...
since this api change to xxx_netinitialize
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-08-20 14:33:17 +03:00
Petro Karashchenko
075738cf14
net/ip: print ip addresses using ip4_addrN macro
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2023-08-19 13:28:21 -03:00
yinshengkai
8fa4f2d61d
add the startup process tracepoint
...
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2023-08-19 21:50:08 +08:00
yinshengkai
1e164b7f75
note: add noteram crash dump
...
Dump all content when a crash occurs
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2023-08-19 21:48:56 +08:00
guohao15
2740f377eb
ftl: fix ftl_flush will read/erase beyond the end of the partition
...
Signed-off-by: guohao15 <guohao15@xiaomi.com>
2023-08-19 21:47:14 +08:00
rongyichang
917634446e
drivers/lcd : add ioctl passthrough for LCD driver
...
Some LCD vendors support unit test commands, we should passthrough the ioctl
commands to drivers.
Signed-off-by: rongyichang <rongyichang@xiaomi.com>
2023-08-19 01:50:41 +08:00
dongjiuzhu1
29ddfd44a0
driver/note: dump irq handler address to trace
...
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2023-08-19 01:42:17 +08:00
ligd
45c04e9125
syslog_rpmsg: update check method when do flush()
...
Signed-off-by: ligd <liguiding1@xiaomi.com>
2023-08-19 01:35:19 +08:00
zhanghongyu
7b11162b24
rpmsgdev: add tun device ioctl support
...
In a multi-core heterogeneous architecture, tun device nodes of protocol
stack core can be accessed by other cores through ioctl
Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2023-08-19 01:33:17 +08:00
simbit18
70ab01a20b
Fix Kconfig style
...
Replace help => ---help---
Remove spaces from Kconfig
Add comments
2023-08-18 16:36:04 +03:00
xucheng5
417207678e
driver/capture : add capture debug, fixed compile warning
...
Signed-off-by: xucheng5 <xucheng5@xiaomi.com>
2023-08-18 09:21:46 +02:00
Takayoshi Koizumi
d5407b16f8
driver/audio/cxd56: Fix code style
...
Fix the code pointed out.
2023-08-18 08:53:04 +02:00
SPRESENSE
035a00e286
driver/audio/cxd56: Support 24bit, 192kHz and 4ch max
...
Support CXD56 audio input for 192kHz sampleing rate,
24bit and 4channels.
2023-08-18 08:53:04 +02:00
xuwenjie
4af8927829
drivers/pty: Support get and set local mode of pty
...
Signed-off-by: xuwenjie <xuwenjie1@xiaomi.com>
2023-08-18 14:30:22 +08:00
Jiuzhu Dong
fa10cf7cdf
driver/sensor: update nbuffer to upper state
...
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2023-08-18 12:20:50 +08:00
p-zhangliming1
4b2ae15069
nuttx/mtd: Add new functions part_isbad and part_markbad in mtd partition.
...
Signed-off-by: p-zhangliming1 <p-zhangliming1@xiaomi.com>
2023-08-16 23:56:18 +03:00
zhangyuan21
1e7678c58a
usbdev: clear configid after class disconnect
...
In class disconnect, resetconfig will be performed based on
configid, so configid should be cleared after disconnect.
Signed-off-by: zhangyuan21 <zhangyuan21@xiaomi.com>
2023-08-17 01:11:53 +08:00
xuxin19
f2f0d7fbad
cmake:fix drivers build block during cmake reforming
...
Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
2023-08-16 22:38:52 +08:00
wangyingdong
8f6f601ec1
net/local:Add peek support for pipe and MSG_PEEK support for local socket
...
fifo peek example:
struct pipe_peek_s peek_buf;
peek_buf.len = len;
peek_buf.data = buf;
ret = file_ioctl(filep, PIPEIOC_PEEK,(unsigned long)((uintptr_t)&peek_buf));
Signed-off-by: wangyingdong <wangyingdong@xiaomi.com>
2023-08-15 23:58:45 +08:00
liuhongchao
f9dbeaef86
drivers/input:fix circbuf leak
...
Signed-off-by: liuhongchao <liuhongchao@xiaomi.com>
2023-08-14 20:40:11 +08:00
yinshengkai
b106f032cb
drivers/note: add maximum channel number check
...
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2023-08-14 13:41:00 +08:00
dulibo1
3591de08c6
fix g_goldfish_gauge_ops init C89 compatible and align style
...
Signed-off-by: dulibo1 <dulibo1@xiaomi.com>
2023-08-14 13:40:38 +08:00
jianglianfang
5accd7c146
drivers/video: add Goldfish-FB driver
...
the register definition is described here:
https://android.googlesource.com/platform/external/qemu/+/master/docs/GOLDFISH-VIRTUAL-HARDWARE.TXT
Goldfish-FB driver is to communicate with Goldfish-FB in QEMU, and push the framebuffer data to the emulator for display on the screen.
test: CONFIG_GOLDFISH_FB =1, and run demo=>lvgldemo widgets
Signed-off-by: jianglianfang <jianglianfang@xiaomi.com>
2023-08-13 11:51:30 -03:00