<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rt-thread.git/components/drivers/usb, branch riscv64</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://cgit.235523.xyz/rt-thread.git/atom/components/drivers/usb?h=riscv64</id>
<link rel='self' href='http://cgit.235523.xyz/rt-thread.git/atom/components/drivers/usb?h=riscv64'/>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/'/>
<updated>2024-06-30T00:01:51Z</updated>
<entry>
<title>Update cherryusb to v1.3.1 (#9122)</title>
<updated>2024-06-30T00:01:51Z</updated>
<author>
<name>sakumisu</name>
<email>1203593632@qq.com</email>
</author>
<published>2024-06-30T00:01:51Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=cc853de5f3c75fe557b8601e4b51ec72c64077e5'/>
<id>urn:sha1:cc853de5f3c75fe557b8601e4b51ec72c64077e5</id>
<content type='text'>
* fix(hpmicro): remove duplicate usb variable

* update(cherryusb): update to v1.3.1</content>
</entry>
<entry>
<title>[components] [drivers ] [Kconfig] 整理 components/drivers 的 Kconfig (#9054)</title>
<updated>2024-06-16T07:43:27Z</updated>
<author>
<name>sp-cai</name>
<email>70000077+sp-cai@users.noreply.github.com</email>
</author>
<published>2024-06-16T07:43:27Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=f1832fea24958649c8c113de5b71581874771548'/>
<id>urn:sha1:f1832fea24958649c8c113de5b71581874771548</id>
<content type='text'>
整理 components/drivers 的 Kconfig</content>
</entry>
<entry>
<title>refactor(drivers/usb):replace rtt usb stack with cherryusb (#8799)</title>
<updated>2024-06-02T03:20:13Z</updated>
<author>
<name>sakumisu</name>
<email>1203593632@qq.com</email>
</author>
<published>2024-06-02T03:20:13Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=62d321caa028dee04bf0b43fc0abb68b40e80ddd'/>
<id>urn:sha1:62d321caa028dee04bf0b43fc0abb68b40e80ddd</id>
<content type='text'>
</content>
</entry>
<entry>
<title>[fix] NXP bsp for RT-Thread 5.1.0 fixed up.</title>
<updated>2024-03-19T12:13:00Z</updated>
<author>
<name>StackYuan</name>
<email>yuanjyjyj@outlook.com</email>
</author>
<published>2024-03-19T10:41:56Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=a582c0cc3133e6f317d93f921c7178ccf5ea3e95'/>
<id>urn:sha1:a582c0cc3133e6f317d93f921c7178ccf5ea3e95</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>[kernel][dm]适配新的设备驱动模型 (#8075)</title>
<updated>2023-10-18T12:50:30Z</updated>
<author>
<name>zms123456</name>
<email>85141075+zmshahaha@users.noreply.github.com</email>
</author>
<published>2023-10-18T12:50:30Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=d01dd05a0cd2107d85e26a445a43957880fd1978'/>
<id>urn:sha1:d01dd05a0cd2107d85e26a445a43957880fd1978</id>
<content type='text'>
</content>
</entry>
<entry>
<title>[debug] use LOG_D instead RT_DEBUG_LOG</title>
<updated>2023-07-28T17:50:32Z</updated>
<author>
<name>Meco Man</name>
<email>920369182@qq.com</email>
</author>
<published>2023-07-28T03:33:14Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=4e0225a48d59976b74f6e06cec64532ce00495ad'/>
<id>urn:sha1:4e0225a48d59976b74f6e06cec64532ce00495ad</id>
<content type='text'>
related: https://github.com/RT-Thread/rt-thread/pull/7799
</content>
</entry>
<entry>
<title>[include][dbg]update: no longer use RT_DEBUG_LOG in rtdebug.h (#7750)</title>
<updated>2023-06-29T15:24:25Z</updated>
<author>
<name>Shicheng Chu</name>
<email>1468559561@qq.com</email>
</author>
<published>2023-06-29T15:24:25Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=e2c031643c8dec7c9ea1581216e19bf19c8f73f0'/>
<id>urn:sha1:e2c031643c8dec7c9ea1581216e19bf19c8f73f0</id>
<content type='text'>
</content>
</entry>
<entry>
<title>[Kernel] message 可以返回消息的实际大小 (#7709)</title>
<updated>2023-06-21T10:22:42Z</updated>
<author>
<name>zhkag</name>
<email>zhkag@foxmail.com</email>
</author>
<published>2023-06-21T10:22:42Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=33f550cb65c950068ff04c331daeeda3547d2e50'/>
<id>urn:sha1:33f550cb65c950068ff04c331daeeda3547d2e50</id>
<content type='text'>
</content>
</entry>
<entry>
<title>[HUST CSE][components][udisk.c] add two checkout procedures after malloc to make sure allocating successfully (#7475)</title>
<updated>2023-05-15T06:35:38Z</updated>
<author>
<name>kunpHust</name>
<email>u202012129@hust.edu.cn</email>
</author>
<published>2023-05-15T06:35:38Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=7a2bccd1c28eb770971ab8f7e5a1bfb529156f39'/>
<id>urn:sha1:7a2bccd1c28eb770971ab8f7e5a1bfb529156f39</id>
<content type='text'>
</content>
</entry>
</feed>
