Remove the frequency argument for i2c, move to using RccPeripheral.

This commit is contained in:
Bob McWhirter
2021-07-01 13:53:57 -04:00
parent e7a4a72977
commit 9f5d35d891
4 changed files with 9 additions and 6 deletions

View File

@ -17,8 +17,9 @@ pub enum Error {
pub(crate) mod sealed {
use crate::gpio::Pin;
use crate::rcc::RccPeripheral;
pub trait Instance {
pub trait Instance: RccPeripheral {
fn regs() -> &'static crate::pac::i2c::I2c;
}