<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rt-thread.git/components/drivers/serial, branch v5.1.x</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?h=v5.1.x</id>
<link rel='self' href='http://cgit.235523.xyz/rt-thread.git/atom/components/drivers/serial?h=v5.1.x'/>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/'/>
<updated>2024-04-19T08:18:41Z</updated>
<entry>
<title>fix: code format of serial.c and compile error in aarch64 context_gcc</title>
<updated>2024-04-19T08:18:41Z</updated>
<author>
<name>zhao maosheng</name>
<email>zmshahaha@gmail.com</email>
</author>
<published>2024-04-02T07:43:50Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=4e7d13b2db171148644a5b5183ec480bd98ea813'/>
<id>urn:sha1:4e7d13b2db171148644a5b5183ec480bd98ea813</id>
<content type='text'>
</content>
</entry>
<entry>
<title>[component][driver][serial/tty]using serial name to name tty</title>
<updated>2024-04-19T07:32:56Z</updated>
<author>
<name>zms123456</name>
<email>85141075+zmshahaha@users.noreply.github.com</email>
</author>
<published>2024-04-16T03:20:30Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=82d41d192d130028a87d7d88c5e7c0fd3cf8b94b'/>
<id>urn:sha1:82d41d192d130028a87d7d88c5e7c0fd3cf8b94b</id>
<content type='text'>
当使用新device model时，serial的名字由系统分配，id也由系统分配，此时应根据系统分配的serial id来作为serial-tty的id</content>
</entry>
<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][drivers] fix posix tty, and add more baudrate (#8683)</title>
<updated>2024-04-19T07:13:05Z</updated>
<author>
<name>zms123456</name>
<email>85141075+zmshahaha@users.noreply.github.com</email>
</author>
<published>2024-04-01T13:23:04Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=1720811c9ab8a5e5dc1067f317910560823cf8cb'/>
<id>urn:sha1:1720811c9ab8a5e5dc1067f317910560823cf8cb</id>
<content type='text'>
* serial-tty fix

* v2</content>
</entry>
<entry>
<title>sync smart &amp; dfs (#8672)</title>
<updated>2024-04-19T07:09:47Z</updated>
<author>
<name>Shell</name>
<email>smokewood@qq.com</email>
</author>
<published>2024-03-28T15:42:56Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=17d22ad408c5c5bbabd9e895500f7a5835f1a44b'/>
<id>urn:sha1:17d22ad408c5c5bbabd9e895500f7a5835f1a44b</id>
<content type='text'>
Signed-off-by: xqyjlj &lt;xqyjlj@126.com&gt;
Signed-off-by: Shell &lt;smokewood@qq.com&gt;
Co-authored-by: xqyjlj &lt;xqyjlj@126.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>[components/driver] update serial (#8567)</title>
<updated>2024-03-01T02:29:21Z</updated>
<author>
<name>fangjianzhou</name>
<email>73834245+fangjianzhou@users.noreply.github.com</email>
</author>
<published>2024-03-01T02:29:21Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=00c6800e4e532b6996bc9cb3ce0e8e4cffed2245'/>
<id>urn:sha1:00c6800e4e532b6996bc9cb3ce0e8e4cffed2245</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>🎈 perf: perf rt_hw_interrupt_disable/enable (#8042)</title>
<updated>2023-10-25T12:31:25Z</updated>
<author>
<name>xqyjlj</name>
<email>xqyjlj@126.com</email>
</author>
<published>2023-10-25T12:31:25Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=3283f54c7a0444b2e51ec79a4da57e7871528f05'/>
<id>urn:sha1:3283f54c7a0444b2e51ec79a4da57e7871528f05</id>
<content type='text'>
Signed-off-by: Shell &lt;smokewood@qq.com&gt;
Co-authored-by: Shell &lt;smokewood@qq.com&gt;</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>
</feed>
