pub unsafe fn pulse_reset_backup_domain(rcc: &mut RCC, pwr: &mut PWR)
Expand description

Reset the backup domain.

Safety

  1. This will disable the LSE clock. Ensure no peripherals are using the LSE clock before calling this function.
  2. This will reset the real-time clock. Setup the RTC after calling this function.

Example

use stm32wlxx_hal::{pac, rcc::pulse_reset_backup_domain};

let mut dp: pac::Peripherals = pac::Peripherals::take().unwrap();
unsafe { pulse_reset_backup_domain(&mut dp.RCC, &mut dp.PWR) };