diff --git a/doc/C115042_1506321353695990106.pdf b/doc/C115042_1506321353695990106.pdf new file mode 100644 index 0000000..e2afa2d Binary files /dev/null and b/doc/C115042_1506321353695990106.pdf differ diff --git a/uappbase/apphal/apphal.cpp b/uappbase/apphal/apphal.cpp index abb789b..d1c0c13 100644 --- a/uappbase/apphal/apphal.cpp +++ b/uappbase/apphal/apphal.cpp @@ -301,6 +301,17 @@ void AppHal::MX_I2C1_Init(void) { hi2c1.Init.OwnAddress2 = 0; hi2c1.Init.GeneralCallMode = I2C_GENERALCALL_DISABLE; hi2c1.Init.NoStretchMode = I2C_NOSTRETCH_DISABLE; + + // hi2c1.Instance = I2C1; + // hi2c1.Init.ClockSpeed = 1000000; // 1MHz + // hi2c1.Init.DutyCycle = I2C_DUTYCYCLE_2; + // hi2c1.Init.OwnAddress1 = 0; + // hi2c1.Init.AddressingMode = I2C_ADDRESSINGMODE_7BIT; + // hi2c1.Init.DualAddressMode = I2C_DUALADDRESS_DISABLE; + // hi2c1.Init.OwnAddress2 = 0; + // hi2c1.Init.GeneralCallMode = I2C_GENERALCALL_DISABLE; + // hi2c1.Init.NoStretchMode = I2C_NOSTRETCH_DISABLE; + if (HAL_I2C_Init(&hi2c1) != HAL_OK) { Error_Handler(); }