mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-06-06 16:58:48 +08:00
[stm32] throw an error if trying to USE_I2C0
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user