<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rt-thread.git/bsp/stm32/libraries/HAL_Drivers, branch riscv64</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://cgit.235523.xyz/rt-thread.git/atom/bsp/stm32/libraries/HAL_Drivers?h=riscv64</id>
<link rel='self' href='http://cgit.235523.xyz/rt-thread.git/atom/bsp/stm32/libraries/HAL_Drivers?h=riscv64'/>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/'/>
<updated>2024-07-03T16:33:06Z</updated>
<entry>
<title>[bsp][stm32]Increase the serial_v1 tx timeout.</title>
<updated>2024-07-03T16:33:06Z</updated>
<author>
<name>Rbb666</name>
<email>zhangbingru@rt-thread.com</email>
</author>
<published>2024-07-03T06:05:09Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=5f70f974d5d8a32a965b3ed0ade7897d92df40f4'/>
<id>urn:sha1:5f70f974d5d8a32a965b3ed0ade7897d92df40f4</id>
<content type='text'>
</content>
</entry>
<entry>
<title>[bsp][stm32]fix stm32h7 spi transmit fail probelm.</title>
<updated>2024-07-02T14:54:23Z</updated>
<author>
<name>Rbb666</name>
<email>zhangbingru@rt-thread.com</email>
</author>
<published>2024-07-02T08:21:49Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=8487e774a3759311250c6c0a86fab75c1aaffdb6'/>
<id>urn:sha1:8487e774a3759311250c6c0a86fab75c1aaffdb6</id>
<content type='text'>
</content>
</entry>
<entry>
<title>[bsp][stm32][uart V1]优化驱动实现</title>
<updated>2024-06-26T16:11:18Z</updated>
<author>
<name>wdfk-prog</name>
<email>1425075683@qq.com</email>
</author>
<published>2024-06-13T01:14:20Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=d3424505949a86b88f4c6ad899cfd437eae54ab3'/>
<id>urn:sha1:d3424505949a86b88f4c6ad899cfd437eae54ab3</id>
<content type='text'>
* 增加putc超时处理机制,防止死循环
* 优化TX中断初始化与卸载
* 添加TX中断方式实现
</content>
</entry>
<entry>
<title>[bsp][stm32]Optimize ADCs and fix some bugs</title>
<updated>2024-06-26T12:26:52Z</updated>
<author>
<name>yiyi</name>
<email>55530868+youzuwei@users.noreply.github.com</email>
</author>
<published>2024-06-26T12:26:52Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=bc3afab2c9ae8aaee793f22d03f6961386d2680f'/>
<id>urn:sha1:bc3afab2c9ae8aaee793f22d03f6961386d2680f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>[chip flash] add drv_flash_l1.c for stm32l1xxx (#9077)</title>
<updated>2024-06-24T17:29:36Z</updated>
<author>
<name>Chasel</name>
<email>70518174+Maihuanyi@users.noreply.github.com</email>
</author>
<published>2024-06-24T17:29:36Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=189f5ed8a93655c381f89b248b5ba3a70a25d67e'/>
<id>urn:sha1:189f5ed8a93655c381f89b248b5ba3a70a25d67e</id>
<content type='text'>
* [chip flash] add drv_flash_l1.c for stm32l1xxx

* [fix] Modified the SConscript file to support building for STM32L1xxx.</content>
</entry>
<entry>
<title>[stm32] 调整CMSIS-Core软件包宏</title>
<updated>2024-05-06T02:18:34Z</updated>
<author>
<name>Meco Man</name>
<email>920369182@qq.com</email>
</author>
<published>2024-05-06T00:22:20Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=68e92985c7e7e0107cf3620d949964baeabc0d6a'/>
<id>urn:sha1:68e92985c7e7e0107cf3620d949964baeabc0d6a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>[stm32] i2c hard driver fixup：增加硬件I2C传输超时等待时间</title>
<updated>2024-05-04T16:51:27Z</updated>
<author>
<name>SCZeiDan</name>
<email>53632180+SCZeiDan@users.noreply.github.com</email>
</author>
<published>2024-05-04T16:51:27Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=d78429eb8e3222d094ee8048e53c229117e18916'/>
<id>urn:sha1:d78429eb8e3222d094ee8048e53c229117e18916</id>
<content type='text'>
问题：
在使用硬件 I2C 驱动进行音频模块 WM8978 配置时，发现连续 rt_i2c_transfer 进行 I2C 传输时发现，连续多次调用 rt_i2c_transfer 会出现丢包现象；溯源发现是每次使用 rt_i2c_transfer 传输2字节，传输频率过高导致底层 HAL_I2C_Master_Seq_Transmit_DMA 报错 HAL_BUSY；

现象：
rt_completion_wait超时等待完成之后，I2C仍处于HAL_I2C_STATE_BUSY_TX状态，且后续第二次运行至HAL_I2C_Master_Seq_Transmit_DMA时会直接返回HAL_BUSY，从而直接 goto out; 退出而不会再次进行超时等待；

* drv_hard_i2c.c: 修复325行缺失'}'语法错误;更改HAL_I2C_xx_Transimt_xx调用中目标设备地址值;i2c_hard_config.h: 添加STM32F系列芯片xx_DMA_CONFIG宏定义;

* 回溯I2C设备地址传参处(msg-&gt;addr&lt;&lt;1)修改；

* fixup: 增加硬件I2C传输延时，解决连续传输导致HAL_BUSY状态；</content>
</entry>
<entry>
<title>[i2c] adjust the timing for I2C initialization</title>
<updated>2024-04-30T00:46:12Z</updated>
<author>
<name>LZerro</name>
<email>144687571+LZerro@users.noreply.github.com</email>
</author>
<published>2024-04-30T00:46:12Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=f190cba0ab75a18a96002ded96054c435c21be47'/>
<id>urn:sha1:f190cba0ab75a18a96002ded96054c435c21be47</id>
<content type='text'>
</content>
</entry>
<entry>
<title>[spi] soft_spi_pin_init loop variable is initialized to 0</title>
<updated>2024-04-29T21:49:20Z</updated>
<author>
<name>LZerro</name>
<email>144687571+LZerro@users.noreply.github.com</email>
</author>
<published>2024-04-29T21:49:20Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=a92f971267d4062aee783af0c2b47e68a6383bdc'/>
<id>urn:sha1:a92f971267d4062aee783af0c2b47e68a6383bdc</id>
<content type='text'>
The loop variable in the function 'drv_soft_spi:xx_pin_init()' is initialized to 0.</content>
</entry>
<entry>
<title>[bsp][stm32] fix bugs of i2c hardware drivers</title>
<updated>2024-04-24T05:42:03Z</updated>
<author>
<name>SCZeiDan</name>
<email>53632180+SCZeiDan@users.noreply.github.com</email>
</author>
<published>2024-04-24T05:42:03Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=7ca2ebc51ad0bacc99d239240fd6a20b93acde78'/>
<id>urn:sha1:7ca2ebc51ad0bacc99d239240fd6a20b93acde78</id>
<content type='text'>
在STM32F429IGTx设备上使用硬件i2c驱动程序师遇到以下几个问题：

语法错误：drv_hard_i2c.c 行67、68中i2c_handle未正常替换过来，估计是上个版本对变量重命名后因为宏定义忽略了此处修改；
语法错误：drv_hard_i2c.c 行326中缺少一个"}"导致编译出错；
初始化i2c设备过程中对双地址选项进行设置时（i2c_handle-&gt;Init.OwnAddress2Masks = I2C_OA2_NOMASK），STM32F4系列SOC没有这个配置定义，于是我直接将双地址模式关闭了（i2c_handle-&gt;Init.DualAddressMode = I2C_DUALADDRESS_DISABLE）；
初始化i2c设备（DMA方式）过程中发现i2c_hard_config.h文件中未定义DMA通道配置；

主要补丁如下：
修复硬件i2c驱动代码中语法错误（drv_hard_i2c.c行67、68、326）；
关闭默认i2c双地址模式（drv_hard_i2c.c行75：I2C_DUALADDRESS_DISABLE）；
添加硬件i2c驱动配置文件DMA相关配置项，增加对SOC_SERIES_STM32F2、SOC_SERIES_STM32F4、SOC_SERIES_STM32F7系列芯片配置DMA_CHANNEL的适配</content>
</entry>
</feed>
