1.读取i2c_sr2的值
printf("sr1:0x%x, sr2:0x%x \r\n", I2C_Handle.Instance->SR1, I2C_Handle.Instance->SR2);
sr1:0x1, sr2:0x3
2.检查系统时钟
+#if 0 //<D3><C3><D3><DA>8Mhz<CD>ⲿʱ<D6><D3>
/**
* 外部时钟为12Mhz,按以下配置系统时钟为72Mhz
* The system Clock is configured as follow :
@@ -392,6 +471,54 @@ void SystemClock_Config(void)
while(1);
}
}
+#else //<D3><C3><D3><DA>12mhz<CD>ⲿʱ<D6><D3>
+/**
+ * @brief System Clock Configuration
+ * @retval None
+ */
+void SystemClock_Config(void)