Deep Sleep Configuration

Hello,
I need to put the (BW16) RTL8720DN to deep sleep. I am using the PowerSave Arduino library. Everything works fine. But I want to configure the wake-up condition. Let’s say I want to wake up the MCU at the falling edge or LOW level. How can I configure this thing for a specified GPIO?

https://www.amebaiot.com/en/amebad-arduino-deepsleepmode/

Thanks, you @M-ichae-l
I have seen this tutorial. And did not find out how to configure the wake-up condition. I want to wake up BW16 when the signal goes from HIGH to LOW. How can we configure this thing?