thiagofinelon opened a new pull request, #16878:
URL: https://github.com/apache/nuttx/pull/16878

   ## Summary
   
   This PR adds **EXT1 wakeup support** to the ESP32-S3 power management
   subsystem.  
   It enables the ESP32-S3 to wake from **PM_STANDBY** or **PM_SLEEP** using
   one or more RTC GPIOs as external wakeup sources.
   
   Changes include:
   - EXT1 wakeup configuration and preparation logic added to `esp32s3_rtc.c`.
   - Integrated EXT1 handling into `esp32s3_pm.c` (`pmstandby()` and 
`pmsleep()`).
   - New **board-level Kconfig options** exposed under ESP32-S3 DevKit menu:
     - `CONFIG_PM_EXT1_WAKEUP`: enable EXT1 wakeup support
     - `CONFIG_PM_EXT1_WAKEUP_RTC_GPIO<n>`: select RTC GPIOs as EXT1 wake 
sources
     - `CONFIG_PM_EXT1_WAKEUP_TRIGGER_MODE`: choose wakeup on HIGH or LOW level
   
   This is the first external wakeup method supported by ESP32-S3 PM
   (EXT0 is not implemented in this port).
   
   ## Impact
   
   - **Build impact**: None unless `CONFIG_PM_EXT1_WAKEUP` is enabled.  
   - **Runtime impact**: When enabled, ESP32-S3 can wake from light or deep 
sleep
     on external RTC GPIO triggers.  
   - **API impact**: No new public API; configuration is managed via board 
Kconfig.  
   - **Area impacted**: ESP32-S3 PM subsystem and board configuration menus.  
   
   ## Testing
   
   - Built with `xtensa-esp32s3-elf-gcc` toolchain on Linux host.  
   - Verified build passes with and without `CONFIG_PM_EXT1_WAKEUP` enabled.  
   - Tested on ESP32-S3 DevKit:  
     - Enabled `PM EXT1 Wakeup` in board Kconfig.  
     - Configured GPIO4 and GPIO5 as EXT1 wake sources.  
     - Entered light sleep, confirmed wakeup on GPIO trigger.  
    


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to