aboutsummaryrefslogtreecommitdiffstats
path: root/libmaple/stm32f1/include
diff options
context:
space:
mode:
Diffstat (limited to 'libmaple/stm32f1/include')
-rw-r--r--libmaple/stm32f1/include/series/i2c.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/libmaple/stm32f1/include/series/i2c.h b/libmaple/stm32f1/include/series/i2c.h
index 0e4b3ba..f9f1e43 100644
--- a/libmaple/stm32f1/include/series/i2c.h
+++ b/libmaple/stm32f1/include/series/i2c.h
@@ -33,6 +33,8 @@
#ifndef _LIBMAPLE_STM32F1_I2C_H_
#define _LIBMAPLE_STM32F1_I2C_H_
+#include <libmaple/i2c_common.h>
+
/*
* Register maps
*/
@@ -48,9 +50,7 @@ struct i2c_reg_map;
* Devices
*/
-struct i2c_dev;
-
-extern struct i2c_dev* const I2C1;
-extern struct i2c_dev* const I2C2;
+extern i2c_dev* const I2C1;
+extern i2c_dev* const I2C2;
#endif /* _LIBMAPLE_STM32F1_I2C_H_ */