DA14580 wakeup interrupt software design
Hello Dialog Support team,
I would like to use interrupt from GPIO_PORT_2/GPIO_PIN_4 to control DA14580 sleep and wakeup. The detail as following:
If GPIO_PORT_2/GPIO_PIN_4 become logic 1, an interrupt will be trigered and wake up system from sleep mode. Use wkupct_enable_irq() to define this interrupt.
If GPIO_PORT_2/GPIO_PIN_4 become logic 0, another interrupt will be triggered and let system go into sleep mode. Use GPIO_EnableIRQ() to define this interrupt.