zms123456
adf2b35ec6
[component][driver]init dm serial naming framework in a separate phase ( #8971 )
...
init dm serial naming framework in a phase
2024-05-21 22:36:20 +08:00
Shell
f2d6325b43
[smart] select console device dynamically ( #8949 )
...
* [smart] select console device dynamically
- Fixed compiler warning on terminal subsystem for
`components/lwp/terminal/terminal.h`
- Updated default console setup to dynamically select an appropriate tty
device based on the configured console device name.
Signed-off-by: Shell <smokewood@qq.com>
* fixup: remove useless codes
---------
Signed-off-by: Shell <smokewood@qq.com>
2024-05-17 13:19:00 +08:00
zms123456
ed002bb84a
[drivers][serial]fix error in getting serial_tty settings ( #8953 )
...
fix error in getting serial_tty settings
2024-05-16 15:36:16 +08:00
geniusgogo
79b3d5ec1e
fix_serial_baudrate_set
2024-05-09 00:35:46 -04:00
geniusgogo
02e0334ac3
fix_serial_baudrate_set
...
Signed-off-by: geniusgogo <xpxyr@sina.com>
2024-05-07 19:03:14 -04:00
xiao-mang
b586889216
fix baudrate error ( #8873 )
...
* fix baudrate error
* fix baudrate error
* fix baudrate error
* fix baudrate error
* fix baudrate error
* fix baudrate error
* fix baudrate error
* fix baudrate error
* fix baudrate error
2024-04-29 18:00:34 +08:00
Shell
9e1a816f06
[smart] fix tty serial ioctl ( #8861 )
...
Using param callback to reduce unnecessary call.
Signed-off-by: Shell <smokewood@qq.com>
2024-04-25 18:21:32 +08:00
Shell
732d32be09
[smart] fixup rt_hw_serial_unregister_tty of serial tty
...
Mutex lock should be taken before release the TTY device.
Signed-off-by: Shell <smokewood@qq.com>
2024-04-20 11:35:45 -04:00
zms123456
a68b4df4d8
[component][driver][serial/tty]using serial name to name tty
...
当使用新device model时,serial的名字由系统分配,id也由系统分配,此时应根据系统分配的serial id来作为serial-tty的id
2024-04-15 23:20:30 -04:00
zms123456
6ad0b2bd09
[components][drivers]fix workqueue bug
...
fix workqueue bug
2024-04-15 23:15:37 -04:00
Shell
4b0f42c24a
[drivers/serial] Introduce hooker for TTY ( #8733 )
...
In this patch, a hook list has been introduced to address the concerns
regarding coupling issues arising from modifications to the serial code
for integrating TTY logic.
Signed-off-by: Shell <smokewood@qq.com>
2024-04-09 21:36:16 +08:00
zhao maosheng
687eb87a2b
fix: code format of serial.c and compile error in aarch64 context_gcc
2024-04-02 08:07:21 -04:00
zms123456
d856f77a55
[components][drivers] fix posix tty, and add more baudrate ( #8683 )
...
* serial-tty fix
* v2
2024-04-01 21:23:04 +08:00
Shell
83e95bdff4
sync smart & dfs ( #8672 )
...
Signed-off-by: xqyjlj <xqyjlj@126.com>
Signed-off-by: Shell <smokewood@qq.com>
Co-authored-by: xqyjlj <xqyjlj@126.com>
2024-03-28 23:42:56 +08:00
Liu Yang
59dbebe6fc
[components/driver] Fix issue for serial_V2 in no buffer bloking tx mode.
2024-03-20 02:28:35 -04:00
fangjianzhou
00c6800e4e
[components/driver] update serial ( #8567 )
2024-03-01 10:29:21 +08:00
LaterComer
82bb104f65
fix(serial_v2): tx_fifo->rb.buffer_ptr not init when RT_DEVICE_FLAG_DMA_TX and RT_SERIAL_TX_BLOCKING
...
为什么提交这份PR (why to submit this PR)
serial_v2驱动框架,rt_serial_tx_enable()函数,在 DMA阻塞发送(RT_DEVICE_FLAG_DMA_TX and RT_SERIAL_TX_BLOCKING) 的时候,使用rt_malloc分配了tx_fifo内存,但是并未对tx_fifo->rb.buffer_ptr指针进行初始化(rt_malloc不会自动初始化内存),因此可能导致buffer_ptr是一个随机指针。但是rt_serail_write()函数需要根据tx_fifo->rb.buffer_ptr是否为RT_NULL来判断是调用_serial_fifo_tx_blocking_nbuf()还是_serial_fifo_tx_blocking_buf()。
由于tx_fifo->rb.buffer_ptr可能是一个随机值(不一定为RT_NULL=0),导致RT_DEVICE_FLAG_DMA_TX and RT_SERIAL_TX_BLOCKING模式下调用了_serial_fifo_tx_blocking_buf(),但是rb没有真正开辟内存空间,导致内存异常
你的解决方案是什么 (what is your solution)
rt_serial_tx_enable(),在DMA阻塞发送分支下,对tx_fifo->rb.buffer_ptr进行初始化,赋值为RT_NULL。
2024-02-21 00:29:53 -05:00
xqyjlj
3283f54c7a
🎈 perf: perf rt_hw_interrupt_disable/enable ( #8042 )
...
Signed-off-by: Shell <smokewood@qq.com>
Co-authored-by: Shell <smokewood@qq.com>
2023-10-25 20:31:25 +08:00
zan319
fce83488ec
[serial_v2] 修复阻塞模式下中断发送的逻辑顺序问题与多线程下的竞态条件 ( #7997 )
2023-09-28 14:04:10 +08:00
xiao-mang
befa951451
modify some function prototypes of the dfs_file_ops structure and the function declarations based on it ( #7849 )
2023-07-24 09:12:35 +08:00
sp-cai
75f65b6af6
[components][drivers][serial] serial.c 修复串口有时重复发送 '\r' 的问题 ( #7767 )
2023-07-07 23:52:32 -04:00
Bernard Xiong
99e80f8d33
[dfs] Add DFS v2.0 ( #7606 )
2023-06-10 21:35:25 +08:00
7YZ7
a5211c70b6
[components][drivers][HUST CSE]修复serial_v2.c中可能产生的死循环 ( #7394 )
2023-05-15 14:42:11 +08:00
Meco Man
4a7ef40dc7
[serial-v2]fix the data type error
2023-04-19 07:49:46 -04:00
7YZ7
501b22aabe
[HUST CSE] Fix many abnormal symbols in annotations and format code
2023-04-17 22:26:23 -04:00
lessone1
2638a2a90c
[components] Wrong order of judgment
2023-04-14 22:51:06 -04:00
Bernard Xiong
9600b75b55
[DFS] prepare for dfs_v2.0 ( #7200 )
...
* [DFS] prepare for dfs_v2. dfs_fd -> dfs_file; dfs_fnode -> dfs_vnode.
* [BSP] fix code analysis warning
* [smart] fix the pointer overflow.
* code format
* [smart] fix the lwp->lwp_obj checking.
2023-04-08 22:25:51 +08:00
Meco Man
deb40e8c0c
[errno code][-RT_EBUSY] fix that use RT_EBUSY without -
2023-03-22 01:55:18 -04:00
jonas
6d4764ad69
serial_v2 rt_device_write/read return data type as rt_ssize_t
2023-02-23 09:50:39 -05:00
Meco Man
f58d3c5200
rt_device_write/read return data type as rt_ssize_t
...
rt_ssize_t can give negative error code, which follows the unix style correctly
2023-02-07 21:43:57 -05:00
Shell
b2402029b2
[rt-smart][fix/lwp] don't restore terminal for background lwp ( #6847 )
...
* [fix/lwp] don't restore term for background lwp
2023-01-13 09:48:43 +08:00
wdfk-prog
8f0cef3a87
[drivers][serial_v2]修复DMA+TX阻塞模式异常 ( #6781 )
...
* [drivers][serial_v2]修复DMA+TX阻塞模式异常
2023-01-05 01:25:16 -05:00
bernard
1f092da9e0
fix compiling warning.
2022-12-26 14:24:26 +08:00
guozhanxin
b5d77bbf37
[rtsmart] fix uart can't input after userapp exited at rv64 platform.
2022-12-09 07:54:29 -05:00
guo
ecf2d82159
sync branch rt-smart. ( #6641 )
...
* Synchronize the code of the rt mart branch to the master branch.
* TTY device
* Add lwP code from rt-smart
* Add vnode in DFS, but DFS will be re-write for rt-smart
* There are three libcpu for rt-smart:
* arm/cortex-a, arm/aarch64
* riscv64
Co-authored-by: Rbb666 <zhangbingru@rt-thread.com>
Co-authored-by: zhkag <zhkag@foxmail.com>
2022-12-03 12:07:44 +08:00
朱天龙 (Armink)
748f6afd5e
[DeviceDriver][serialv2] Support configure when serial is open.
2022-10-12 14:21:41 +08:00
a1012112796
ab8c1418a6
tshell is the default value of FINSH_THREAD_NAME
2022-10-10 17:48:21 -04:00
Tangyuxin
a4829b1c00
[fix] Fix simulator compilation warnings ( #6438 )
...
* [fix] Fix simulator compilation warnings
* Update bsp/simulator/rtconfig_project.h
Co-authored-by: Man, Jianting (Meco) <920369182@qq.com>
2022-09-20 10:31:11 -04:00
tfx2001
218cdbce4e
add assert for serial v2
2022-08-13 17:04:08 -04:00
HubretXie
223bc17df9
[serial_v2] fixed bug ( #6213 )
...
* [kernel][timer] fixed bug serial_v2 驱动问题,导致所有写入都使用阻塞方式写入
2022-08-03 22:42:20 -04:00
dongly
3363586cbb
Fix some compilation warning ( #5744 )
...
* Fix some compilation warning
* 补充修正一些数据类型的使用错误
Co-authored-by: Meco Man <920369182@qq.com>
2022-08-02 12:09:49 -04:00
Tangyuxin
7f1157e0de
[drivers][serial] ioctl add F_SETFL cmd ( #5876 )
2022-04-26 13:13:51 +08:00
朱天龙 (Armink)
039efbb075
完善 Serial V2 框架 ( #5770 )
...
* [stm32] fix h7 uart V2 driver unused code.
* [DeviceDriver][serialv2] fix the serialv2 when using for console device on DMA mode.
* [stm32][art-pi] using serial v2 by default
* [DeviceDriver][SerialV2] Add termios for serial@V2 .
* [BSP][STM32] Add hardware flow control for STM32 serial@V2 driver.
* [DeviceDriver][Serial@V2] Add hardware flow control for serial V2.
2022-04-04 17:25:04 +08:00
朱天龙 (Armink)
bae1be0f45
完善串口 V2 框架 ( #5720 )
...
* [stm32] fix h7 uart V2 driver unused code.
* [DeviceDriver][serialv2] fix the serialv2 when using for console device on DMA mode.
* [stm32][art-pi] using serial v2 by default
2022-03-27 00:52:41 +08:00
打盹的消防车
0c82e033dc
Open RT_USING_POSIX_STDIO caused serial_v2 to compile failed ( #5684 )
...
* fix:Open RT_USING_POSIX_STDIO caused serial_v2 to compile failed
2022-03-20 10:29:16 +08:00
Meco Man
8213bbd92e
update
2022-01-14 23:09:32 +08:00
liukangcc
3d2e23ec1c
[update] move dfs_posix.h to legacy/dfs/dfs_posix.h
2022-01-14 23:09:32 +08:00
Meco Man
918ee6147c
add RT_USING_POSIX_STDIO
2022-01-05 23:11:58 +08:00
guo
fb7b9f4fb4
Merge pull request #5318 from enkiller/1201
...
[components][src] Optimize interrupt disable time
2021-12-21 17:40:59 +08:00
Meco Man
67e14adc4f
[posix] 按照高级unix环境编程整理IO类别
2021-12-05 23:07:41 -05:00