summaryrefslogtreecommitdiff
path: root/src/i2c.rs
diff options
context:
space:
mode:
authorDeterminant <ted.sybil@gmail.com>2017-09-28 00:37:15 -0400
committerDeterminant <ted.sybil@gmail.com>2017-09-28 00:37:15 -0400
commit54449bb4bd610e3a9673722a098abf73159667db (patch)
tree7e8f45ff799a4e9e59ca89df5480e32cd31cd936 /src/i2c.rs
parente3a0899abde145a2212082041ffeaf0ca6529300 (diff)
add at24c support
Diffstat (limited to 'src/i2c.rs')
-rw-r--r--src/i2c.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/i2c.rs b/src/i2c.rs
index 473442c..89e2072 100644
--- a/src/i2c.rs
+++ b/src/i2c.rs
@@ -14,7 +14,7 @@ const FLAGS_MASK: u32 = 0x00ffffff;
const HSI_VALUE: u32 = 8000000;
const HSE_VALUE: u32 = 8000000;
-pub struct I2C<'a, 'b> {
+pub struct I2C<'a, 'b: 'a> {
i2c: &'a stm32f103xx::i2c1::RegisterBlock,
rcc: &'b stm32f103xx::rcc::RegisterBlock,
}