diff options
author | Determinant <ted.sybil@gmail.com> | 2017-10-28 00:35:52 -0400 |
---|---|---|
committer | Determinant <ted.sybil@gmail.com> | 2017-10-28 00:35:52 -0400 |
commit | f02632b4965e095e1850bca005f9ba75d812744e (patch) | |
tree | 566794f3dca915091748ffc837414c7f8eb37bfa /src/i2c.rs | |
parent | 514b4555132d7717da92e2edc028ca7b1dcb7a47 (diff) |
multiplex the event timer and fix bugs
Diffstat (limited to 'src/i2c.rs')
-rw-r--r-- | src/i2c.rs | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -1,7 +1,6 @@ #![allow(dead_code)] -extern crate stm32f103xx; use core::cmp::max; -use stm32f103xx::{i2c1, rcc, RCC}; +use stm32f103xx::{i2c1, RCC}; pub const EVENT_MASTER_STARTED: u32 = 0x00030001; /* BUSY, MSL and SB flag */ pub const EVENT_MASTER_TRANSMITTER_MODE_SELECTED: u32 = 0x00070082; /* BUSY, MSL, ADDR, TXE and TRA flags */ |