pub fn reset_interrupt(&self) {
        let pcnt = PCNT::regs();
        critical_section::with(|_cs| {
            pcnt.int_clr()
                .write(|w| w.cnt_thr_event_u(NUM as u8).set_bit());
        });
    }
Clear the interrupt bit for this unit.
esp-hal/src/pcnt/unit.rs