diff options
author | Marti Bolivar <mbolivar@leaflabs.com> | 2011-05-18 23:48:34 -0400 |
---|---|---|
committer | Marti Bolivar <mbolivar@leaflabs.com> | 2011-05-19 18:45:45 -0400 |
commit | 71b5af16efd52f5867693a72d03a80b28e35103e (patch) | |
tree | 42755215dff689075de7c34725c0f55502663ee1 /libmaple | |
parent | 58fb7e2e586acc0263c1a228290327d18fdd184b (diff) | |
download | librambutan-71b5af16efd52f5867693a72d03a80b28e35103e.tar.gz librambutan-71b5af16efd52f5867693a72d03a80b28e35103e.zip |
i2c.h: fixing type of i2c_dev state member.
It's an i2c_state; calling it one. Previous uint8 type was broken
since I2C_STATE_ERROR is negative.
Diffstat (limited to 'libmaple')
-rw-r--r-- | libmaple/i2c.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libmaple/i2c.h b/libmaple/i2c.h index 3fd7133..d6285b3 100644 --- a/libmaple/i2c.h +++ b/libmaple/i2c.h @@ -70,7 +70,7 @@ typedef struct i2c_dev { uint8 clk_line; uint8 ev_nvic_line; uint8 er_nvic_line; - volatile uint8 state; + volatile i2c_state state; uint16 msgs_left; i2c_msg *msg; volatile uint32 timestamp; |