[stm32] throw an error if trying to USE_I2C0

This commit is contained in:
Felix Ruess
2013-03-13 22:31:56 +01:00
parent fae59a533b
commit dc8d16931a
@@ -859,6 +859,10 @@ I2C_SoftwareResetCmd(periph->reg_addr, DISABLE);
*/
#ifdef USE_I2C0
#error "The STM32 doesn't have I2C0, use I2C1 or I2C2"
#endif
#ifdef USE_I2C1
/** default I2C1 clock speed */