<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rt-thread.git/components/drivers/serial/serial_v2.c, branch v5.1.0</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://cgit.235523.xyz/rt-thread.git/atom/components/drivers/serial/serial_v2.c?h=v5.1.0</id>
<link rel='self' href='http://cgit.235523.xyz/rt-thread.git/atom/components/drivers/serial/serial_v2.c?h=v5.1.0'/>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/'/>
<updated>2024-04-19T07:29:16Z</updated>
<entry>
<title>[drivers/serial] Introduce hooker for TTY (#8733)</title>
<updated>2024-04-19T07:29:16Z</updated>
<author>
<name>Shell</name>
<email>smokewood@qq.com</email>
</author>
<published>2024-04-09T13:36:16Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=a79176b0ae4938518fe2ac511d280522519a6244'/>
<id>urn:sha1:a79176b0ae4938518fe2ac511d280522519a6244</id>
<content type='text'>
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 &lt;smokewood@qq.com&gt;</content>
</entry>
<entry>
<title>[components/driver] Fix issue for serial_V2 in no buffer bloking tx mode.</title>
<updated>2024-03-20T06:28:35Z</updated>
<author>
<name>Liu Yang</name>
<email>liuyangzys@outlook.com</email>
</author>
<published>2024-03-20T05:41:51Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=59dbebe6fc2cee6a33c2f94c5a28b4a1f2d800d2'/>
<id>urn:sha1:59dbebe6fc2cee6a33c2f94c5a28b4a1f2d800d2</id>
<content type='text'>
</content>
</entry>
<entry>
<title>fix(serial_v2): tx_fifo-&gt;rb.buffer_ptr not init when RT_DEVICE_FLAG_DMA_TX and RT_SERIAL_TX_BLOCKING</title>
<updated>2024-02-21T05:29:53Z</updated>
<author>
<name>LaterComer</name>
<email>12015333+Later-Comer@users.noreply.github.com</email>
</author>
<published>2024-02-21T05:29:53Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=82bb104f650011684515508b846a7a7f9c7b229d'/>
<id>urn:sha1:82bb104f650011684515508b846a7a7f9c7b229d</id>
<content type='text'>
为什么提交这份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-&gt;rb.buffer_ptr指针进行初始化（rt_malloc不会自动初始化内存），因此可能导致buffer_ptr是一个随机指针。但是rt_serail_write()函数需要根据tx_fifo-&gt;rb.buffer_ptr是否为RT_NULL来判断是调用_serial_fifo_tx_blocking_nbuf()还是_serial_fifo_tx_blocking_buf()。

由于tx_fifo-&gt;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-&gt;rb.buffer_ptr进行初始化，赋值为RT_NULL。</content>
</entry>
<entry>
<title>[serial_v2] 修复阻塞模式下中断发送的逻辑顺序问题与多线程下的竞态条件 (#7997)</title>
<updated>2023-09-28T06:04:10Z</updated>
<author>
<name>zan319</name>
<email>48862020+zan319@users.noreply.github.com</email>
</author>
<published>2023-09-28T06:04:10Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=fce83488ec144851ba7e18297e955ec0ec170b49'/>
<id>urn:sha1:fce83488ec144851ba7e18297e955ec0ec170b49</id>
<content type='text'>
</content>
</entry>
<entry>
<title>[components][drivers][HUST CSE]修复serial_v2.c中可能产生的死循环 (#7394)</title>
<updated>2023-05-15T06:42:11Z</updated>
<author>
<name>7YZ7</name>
<email>u202012123@hust.edu.cn</email>
</author>
<published>2023-05-15T06:42:11Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=a5211c70b6d115623f0cf4ff428f6b04daa24223'/>
<id>urn:sha1:a5211c70b6d115623f0cf4ff428f6b04daa24223</id>
<content type='text'>
</content>
</entry>
<entry>
<title>[serial-v2]fix the data type error</title>
<updated>2023-04-19T11:49:46Z</updated>
<author>
<name>Meco Man</name>
<email>920369182@qq.com</email>
</author>
<published>2023-04-19T04:20:54Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=4a7ef40dc760bc79504c6007e9032dd63a6a4171'/>
<id>urn:sha1:4a7ef40dc760bc79504c6007e9032dd63a6a4171</id>
<content type='text'>
</content>
</entry>
<entry>
<title>[HUST CSE] Fix many abnormal symbols in annotations and format code</title>
<updated>2023-04-18T02:26:23Z</updated>
<author>
<name>7YZ7</name>
<email>82019212+7YZ7@users.noreply.github.com</email>
</author>
<published>2023-04-18T02:26:23Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=501b22aabede2d4e179bfc47f3b75522e5933da4'/>
<id>urn:sha1:501b22aabede2d4e179bfc47f3b75522e5933da4</id>
<content type='text'>
</content>
</entry>
<entry>
<title>[components] Wrong order of judgment</title>
<updated>2023-04-15T02:51:06Z</updated>
<author>
<name>lessone1</name>
<email>u202112022@hust.edu.cn</email>
</author>
<published>2023-04-14T13:01:32Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=2638a2a90ce544cdb9892be943bfd51ea362b936'/>
<id>urn:sha1:2638a2a90ce544cdb9892be943bfd51ea362b936</id>
<content type='text'>
</content>
</entry>
<entry>
<title>[DFS] prepare for dfs_v2.0 (#7200)</title>
<updated>2023-04-08T14:25:51Z</updated>
<author>
<name>Bernard Xiong</name>
<email>bernard.xiong@gmail.com</email>
</author>
<published>2023-04-08T14:25:51Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=9600b75b55dace1c4efef8551059df3d673b21ad'/>
<id>urn:sha1:9600b75b55dace1c4efef8551059df3d673b21ad</id>
<content type='text'>
* [DFS] prepare for dfs_v2. dfs_fd -&gt; dfs_file; dfs_fnode -&gt; dfs_vnode.

* [BSP] fix code analysis warning

* [smart] fix the pointer overflow.

* code format

* [smart] fix the lwp-&gt;lwp_obj checking.</content>
</entry>
<entry>
<title>serial_v2 rt_device_write/read return data type as rt_ssize_t</title>
<updated>2023-02-23T14:50:39Z</updated>
<author>
<name>jonas</name>
<email>jonaswen@163.com</email>
</author>
<published>2023-02-23T07:56:15Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=6d4764ad69483e4f7ec38471d4b0023df4f4bd0b'/>
<id>urn:sha1:6d4764ad69483e4f7ec38471d4b0023df4f4bd0b</id>
<content type='text'>
</content>
</entry>
</feed>
