|
|
@ -22,7 +22,7 @@ pub fn enable_ram1_scrub(syscfg: &mut pac::Sysconfig, counter_reset: u16) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// This function enables the SBE related interrupts. The user should also provide a
|
|
|
|
/// This function enables the SBE related interrupts. The user should also provide a
|
|
|
|
/// [pac::EDAC_SBE] ISR and use [clear_sbe_irq] inside that ISR at the very least.
|
|
|
|
/// `EDAC_SBE` ISR and use [clear_sbe_irq] inside that ISR at the very least.
|
|
|
|
#[inline(always)]
|
|
|
|
#[inline(always)]
|
|
|
|
pub fn enable_sbe_irq() {
|
|
|
|
pub fn enable_sbe_irq() {
|
|
|
|
unsafe {
|
|
|
|
unsafe {
|
|
|
@ -31,7 +31,7 @@ pub fn enable_sbe_irq() {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// This function enables the SBE related interrupts. The user should also provide a
|
|
|
|
/// This function enables the SBE related interrupts. The user should also provide a
|
|
|
|
/// [pac::EDAC_MBE] ISR and use [clear_mbe_irq] inside that ISR at the very least.
|
|
|
|
/// `EDAC_MBE` ISR and use [clear_mbe_irq] inside that ISR at the very least.
|
|
|
|
#[inline(always)]
|
|
|
|
#[inline(always)]
|
|
|
|
pub fn enable_mbe_irq() {
|
|
|
|
pub fn enable_mbe_irq() {
|
|
|
|
unsafe {
|
|
|
|
unsafe {
|
|
|
@ -39,7 +39,7 @@ pub fn enable_mbe_irq() {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// This function should be called in the user provided [pac::EDAC_SBE] interrupt-service routine
|
|
|
|
/// This function should be called in the user provided `EDAC_SBE` interrupt-service routine
|
|
|
|
/// to clear the SBE related interrupts.
|
|
|
|
/// to clear the SBE related interrupts.
|
|
|
|
#[inline(always)]
|
|
|
|
#[inline(always)]
|
|
|
|
pub fn clear_sbe_irq() {
|
|
|
|
pub fn clear_sbe_irq() {
|
|
|
@ -52,7 +52,7 @@ pub fn clear_sbe_irq() {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// This function should be called in the user provided [pac::EDAC_MBE] interrupt-service routine
|
|
|
|
/// This function should be called in the user provided `EDAC_MBE` interrupt-service routine
|
|
|
|
/// to clear the MBE related interrupts.
|
|
|
|
/// to clear the MBE related interrupts.
|
|
|
|
#[inline(always)]
|
|
|
|
#[inline(always)]
|
|
|
|
pub fn clear_mbe_irq() {
|
|
|
|
pub fn clear_mbe_irq() {
|
|
|
|