aboutsummaryrefslogtreecommitdiffstats
path: root/libmaple
diff options
context:
space:
mode:
authorMarti Bolivar <mbolivar@leaflabs.com>2012-04-10 17:11:55 -0400
committerMarti Bolivar <mbolivar@leaflabs.com>2012-04-11 16:56:57 -0400
commit5fa30279b80cd9ae401f61a127a33034b241a2e8 (patch)
tree9b69f954a99302eb066fedbb84c7edfdf5f61d68 /libmaple
parent913a76148bf28b780f5179e690b77e3177dbddc6 (diff)
downloadlibrambutan-5fa30279b80cd9ae401f61a127a33034b241a2e8.tar.gz
librambutan-5fa30279b80cd9ae401f61a127a33034b241a2e8.zip
libmaple/i2c.h: Rearrange i2c_dev members to improve packing.
Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
Diffstat (limited to 'libmaple')
-rw-r--r--libmaple/include/libmaple/i2c.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/libmaple/include/libmaple/i2c.h b/libmaple/include/libmaple/i2c.h
index 35c4628..8a1485e 100644
--- a/libmaple/include/libmaple/i2c.h
+++ b/libmaple/include/libmaple/i2c.h
@@ -82,17 +82,17 @@ typedef struct i2c_msg {
*/
typedef struct i2c_dev {
i2c_reg_map *regs; /**< Register map */
- gpio_dev *gpio_port; /**< SDA, SCL pins' GPIO port */
+ i2c_msg *msg; /**< Messages */
+ uint32 error_flags; /**< Error flags, set on I2C error condition */
+ volatile uint32 timestamp; /**< For internal use */
+ struct gpio_dev *gpio_port; /**< SDA, SCL pins' GPIO port */
+ uint16 msgs_left; /**< Messages left */
uint8 sda_pin; /**< SDA bit on gpio_port */
uint8 scl_pin; /**< SCL bit on gpio_port */
rcc_clk_id clk_id; /**< RCC clock information */
nvic_irq_num ev_nvic_line; /**< Event IRQ number */
nvic_irq_num er_nvic_line; /**< Error IRQ number */
volatile i2c_state state; /**< Device state */
- uint16 msgs_left; /**< Messages left */
- i2c_msg *msg; /**< Messages */
- volatile uint32 timestamp; /**< For internal use */
- uint32 error_flags; /**< Error flags, set on I2C error condition */
} i2c_dev;
/*