pub fn new(_peripheral: crate::peripherals::SW_INTERRUPT<'d>) -> Self {
        SoftwareInterruptControl {
            software_interrupt0: SoftwareInterrupt {
                _lifetime: PhantomData,
            },
            software_interrupt1: SoftwareInterrupt {
                _lifetime: PhantomData,
            },
            #[cfg(not(all(feature = "__esp_wifi_builtin_scheduler", riscv)))]
            software_interrupt2: SoftwareInterrupt {
                _lifetime: PhantomData,
            },
            #[cfg(not(all(feature = "__esp_hal_embassy", multi_core)))]
            software_interrupt3: SoftwareInterrupt {
                _lifetime: PhantomData,
            },
        }
    }
Create a new instance of the software interrupt control.
esp-hal/src/interrupt/software.rs