pub fn new(pin: P, level: WakeupLevel) -> Self {
        Self {
            pin: RefCell::new(pin),
            level,
        }
    }
Creates a new external wake-up source (Ext0``) with the specified pin
and wake-up level.
esp-hal/src/rtc_cntl/sleep/mod.rs