change(esp_driver_gptimer): do gptimer timer target retention by needs

This commit is contained in:
wuzhenghui
2024-05-23 10:42:30 +08:00
parent ea142bb6d1
commit 3785506ec1
9 changed files with 288 additions and 4 deletions

View File

@@ -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;