rt-thread-official/bsp/stm32/libraries/HAL_Drivers/drivers/config/f4
SCZeiDan 7ca2ebc51a
[bsp][stm32] fix bugs of i2c hardware drivers
在STM32F429IGTx设备上使用硬件i2c驱动程序师遇到以下几个问题:

语法错误:drv_hard_i2c.c 行67、68中i2c_handle未正常替换过来,估计是上个版本对变量重命名后因为宏定义忽略了此处修改;
语法错误:drv_hard_i2c.c 行326中缺少一个"}"导致编译出错;
初始化i2c设备过程中对双地址选项进行设置时(i2c_handle->Init.OwnAddress2Masks = I2C_OA2_NOMASK),STM32F4系列SOC没有这个配置定义,于是我直接将双地址模式关闭了(i2c_handle->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的适配
2024-04-24 01:42:03 -04:00
..
adc_config.h [stm32] split stm32 drivers as normal and nano drivers 2023-12-03 21:25:00 +08:00
dac_config.h [stm32] split stm32 drivers as normal and nano drivers 2023-12-03 21:25:00 +08:00
dma_config.h [stm32] split stm32 drivers as normal and nano drivers 2023-12-03 21:25:00 +08:00
i2c_hard_config.h [bsp][stm32] fix bugs of i2c hardware drivers 2024-04-24 01:42:03 -04:00
pulse_encoder_config.h [stm32] split stm32 drivers as normal and nano drivers 2023-12-03 21:25:00 +08:00
pwm_config.h [stm32] split stm32 drivers as normal and nano drivers 2023-12-03 21:25:00 +08:00
qspi_config.h [stm32] split stm32 drivers as normal and nano drivers 2023-12-03 21:25:00 +08:00
sdio_config.h [stm32] split stm32 drivers as normal and nano drivers 2023-12-03 21:25:00 +08:00
spi_config.h [stm32] split stm32 drivers as normal and nano drivers 2023-12-03 21:25:00 +08:00
tim_config.h [stm32][tim-config] fix F4 TIM6's IRQ source in STM32F412 2024-03-08 09:39:57 +08:00
uart_config.h [stm32] split stm32 drivers as normal and nano drivers 2023-12-03 21:25:00 +08:00
usbd_config.h [stm32] split stm32 drivers as normal and nano drivers 2023-12-03 21:25:00 +08:00