mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-11 13:00:19 +00:00
change(esp_driver_gptimer): do gptimer timer target retention by needs
This commit is contained in:
@@ -28,6 +28,9 @@ typedef struct {
|
||||
if set to 0, the driver will try to allocate an interrupt with a relative low priority (1,2,3) */
|
||||
struct {
|
||||
uint32_t intr_shared: 1; /*!< Set true, the timer interrupt number can be shared with other peripherals */
|
||||
uint32_t backup_before_sleep: 1; /*!< If set, the driver will backup/restore the GPTimer registers before/after entering/exist sleep mode.
|
||||
By this approach, the system can power off GPTimer's power domain.
|
||||
This can save power, but at the expense of more RAM being consumed */
|
||||
} flags; /*!< GPTimer config flags*/
|
||||
} gptimer_config_t;
|
||||
|
||||
|
Reference in New Issue
Block a user