This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2340R5: Set multiple GPIOs as wake up pin for shutdown

Part Number: CC2340R5

Tool/software:

Is it possible to set multiple GPIOs to be the wake up pin for shutdown mode on CC2340? For example, I have several buttons on my board, and want to wake up from shutdown with any of these buttons, is it supported?

If yes, is there a limit for which GPIOs can be used as shutdown wake up pins?

Thanks.

Best regards,

Shuyang

  • Hi !

    You can find here the code of the gpio shutdown project, which contains code to also wake up from a GPIO input.
    The main piece of code to setup a GPIO as wake up pin for shutdown is this :

    /* Configure DIO for wake up from shutdown */
    GPIO_setConfig(CONFIG_GPIO_WAKEUP, GPIO_CFG_IN_PU | GPIO_CFG_SHUTDOWN_WAKE_LOW);

    There should be nothing preventing you from using GPIO_setConfig one time for each pin, with the GPIO_CFG_SHUTDOWN_WAKE_LOW flag, allowing you to have multiple GPIO as wake up pin from shotdown.

    Kind regards,
    Maxence