Ubiquitous/RT_Thread/:update ov2640 drivers to adapt the hardware,IIC two wires(SCL SDA) switched due to due to hardware design.

This commit is contained in:
chunyexixiaoyu 2021-11-30 15:14:30 +08:00
parent e0c78f200b
commit 0379084f40
3 changed files with 6 additions and 4 deletions

View File

@ -11,6 +11,7 @@ CONFIG_RTT_DIR="../../rt-thread"
# RT-Thread Kernel # RT-Thread Kernel
# #
CONFIG_RT_NAME_MAX=8 CONFIG_RT_NAME_MAX=8
# CONFIG_RT_USING_BIG_ENDIAN is not set
# CONFIG_RT_USING_ARCH_DATA_TYPE is not set # CONFIG_RT_USING_ARCH_DATA_TYPE is not set
# CONFIG_RT_USING_SMP is not set # CONFIG_RT_USING_SMP is not set
CONFIG_RT_ALIGN_SIZE=4 CONFIG_RT_ALIGN_SIZE=4
@ -515,6 +516,7 @@ CONFIG_USING_KPU_POSTPROCESSING=y
# CONFIG_USING_YOLOV2 is not set # CONFIG_USING_YOLOV2 is not set
# CONFIG_USING_KNOWING_FILTER is not set # CONFIG_USING_KNOWING_FILTER is not set
# CONFIG_USING_OTA_MODEL is not set # CONFIG_USING_OTA_MODEL is not set
# CONFIG_USING_IMAGE_PROCESSING is not set
# CONFIG_SUPPORT_CONTROL_FRAMEWORK is not set # CONFIG_SUPPORT_CONTROL_FRAMEWORK is not set
# #

View File

@ -265,8 +265,8 @@
#define BSP_USING_SPI1 #define BSP_USING_SPI1
#define BSP_USING_SPI2 #define BSP_USING_SPI2
#define BSP_USING_I2C1 #define BSP_USING_I2C1
#define BSP_I2C1_SCL_PIN 54 #define BSP_I2C1_SCL_PIN 55
#define BSP_I2C1_SDA_PIN 55 #define BSP_I2C1_SDA_PIN 54
#define BSP_USING_DCMI #define BSP_USING_DCMI
#define BSP_USING_EXT_FMC_IO #define BSP_USING_EXT_FMC_IO
#define BSP_USING_FMC #define BSP_USING_FMC

View File

@ -1188,12 +1188,12 @@ void rt_stm32407_atk_miniexpolre()
__HAL_RCC_GPIOD_CLK_ENABLE(); __HAL_RCC_GPIOD_CLK_ENABLE();
__HAL_RCC_GPIOG_CLK_ENABLE(); // __HAL_RCC_GPIOG_CLK_ENABLE(); //
GPIO_Initure.Pin=GPIO_PIN_6; GPIO_Initure.Pin=GPIO_PIN_6;
GPIO_Initure.Mode=GPIO_MODE_OUTPUT_PP; GPIO_Initure.Mode=GPIO_MODE_OUTPUT_OD;
GPIO_Initure.Pull=GPIO_PULLUP; GPIO_Initure.Pull=GPIO_PULLUP;
GPIO_Initure.Speed=GPIO_SPEED_FREQ_VERY_HIGH; GPIO_Initure.Speed=GPIO_SPEED_FREQ_VERY_HIGH;
HAL_GPIO_Init(GPIOD,&GPIO_Initure); HAL_GPIO_Init(GPIOD,&GPIO_Initure);
GPIO_Initure.Pin=GPIO_PIN_7; GPIO_Initure.Pin=GPIO_PIN_7;
GPIO_Initure.Mode=GPIO_MODE_OUTPUT_OD; GPIO_Initure.Mode=GPIO_MODE_OUTPUT_PP;
GPIO_Initure.Pull=GPIO_PULLUP; GPIO_Initure.Pull=GPIO_PULLUP;
GPIO_Initure.Speed=GPIO_SPEED_FREQ_VERY_HIGH; GPIO_Initure.Speed=GPIO_SPEED_FREQ_VERY_HIGH;
HAL_GPIO_Init(GPIOD,&GPIO_Initure); HAL_GPIO_Init(GPIOD,&GPIO_Initure);