diff options
author | Marti Bolivar <mbolivar@leaflabs.com> | 2012-06-20 14:05:34 -0400 |
---|---|---|
committer | Marti Bolivar <mbolivar@leaflabs.com> | 2012-06-22 14:06:09 -0400 |
commit | 2fa8bdb7509e81789e76ca95e8b537272ce95ad5 (patch) | |
tree | 7bc84c9cc2438a2a464a37905c7fec68615bdc04 /libmaple/stm32f1 | |
parent | 3029415c3ecf62a2c9f7270d0ddc83247d831168 (diff) | |
download | librambutan-2fa8bdb7509e81789e76ca95e8b537272ce95ad5.tar.gz librambutan-2fa8bdb7509e81789e76ca95e8b537272ce95ad5.zip |
Move i2c_dev and i2c_state into new i2c_common.h.
This is necessary to add series-specific infrastructure to clean up
some F1-isms in <libmaple/i2c.h>'s inline functions.
Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
Diffstat (limited to 'libmaple/stm32f1')
-rw-r--r-- | libmaple/stm32f1/include/series/i2c.h | 8 |
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_ */ |