STM32: combine RccPeripherals reset() and enable() to reset_and_enable()
This commit is contained in:
@ -136,8 +136,7 @@ impl<'d, T: Instance> Can<'d, T> {
|
||||
rx.set_as_af(rx.af_num(), AFType::Input);
|
||||
tx.set_as_af(tx.af_num(), AFType::OutputPushPull);
|
||||
|
||||
T::enable();
|
||||
T::reset();
|
||||
T::reset_and_enable();
|
||||
|
||||
{
|
||||
use crate::pac::can::vals::{Errie, Fmpie, Tmeie};
|
||||
|
Reference in New Issue
Block a user