pub fn set_update_method(&mut self, update_method: PwmUpdateMethod) {
        // SAFETY:
        // We only write to our GENx_x_UPMETHOD register
        let ch = unsafe { Self::ch() };
        let bits = update_method.0;

        #[cfg(esp32s3)]
        let cfg = ch.cmpr_cfg();
        #[cfg(any(esp32, esp32c6, esp32h2))]
        let cfg = ch.gen_stmp_cfg();

        cfg.modify(|_, w| unsafe {
            if IS_A {
                w.a_upmethod().bits(bits)
            } else {
                w.b_upmethod().bits(bits)
            }
        });
    }
Set how a new timestamp syncs with the timer
esp-hal/src/mcpwm/operator.rs