Reset peripherals on enable

This commit is contained in:
chemicstry
2022-03-18 00:46:46 +02:00
parent 5f39f13616
commit ca88ace98d
3 changed files with 3 additions and 0 deletions

View File

@ -32,6 +32,7 @@ impl<'d, T: Instance> I2c<'d, T> {
unborrow!(scl, sda);
T::enable();
T::reset();
unsafe {
scl.set_as_af(scl.af_num(), AFType::OutputOpenDrain);