pub(crate) unsafe fn setup_peripherals( tim2: &Tim2<'_>, trng: &Trng<'_>, can1: &'static Can<'_>, rtc: &'static Rtc<'_>, )
Helper function for miscellaneous peripheral functions