diff options
author | Determinant <ted.sybil@gmail.com> | 2017-09-28 00:37:15 -0400 |
---|---|---|
committer | Determinant <ted.sybil@gmail.com> | 2017-09-28 00:37:15 -0400 |
commit | 54449bb4bd610e3a9673722a098abf73159667db (patch) | |
tree | 7e8f45ff799a4e9e59ca89df5480e32cd31cd936 /src/i2c.rs | |
parent | e3a0899abde145a2212082041ffeaf0ca6529300 (diff) |
add at24c support
Diffstat (limited to 'src/i2c.rs')
-rw-r--r-- | src/i2c.rs | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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, } |