Merge pull request #2035 from pbert519/stm_reset_and_enable

STM32: combine RccPeripherals reset() and enable() to enable_and_reset()
This commit is contained in:
Dario Nieuwenhuis
2023-10-12 14:09:13 +00:00
committed by GitHub
39 changed files with 111 additions and 175 deletions

View File

@ -100,8 +100,7 @@ impl<'d, T: Instance, TXDMA, RXDMA> I2c<'d, T, TXDMA, RXDMA> {
) -> Self {
into_ref!(peri, scl, sda, tx_dma, rx_dma);
T::enable();
T::reset();
T::enable_and_reset();
scl.set_as_af_pull(
scl.af_num(),