Merge branch 'feature/lp_core_lp_timer_p4' into 'master'

feat(lp_core): add support for lp timer and lp gpio on P4

Closes IDF-7536, IDF-7532, and IDF-8986

See merge request espressif/esp-idf!28871
This commit is contained in:
Marius Vikhammer
2024-02-06 11:14:24 +08:00
8 changed files with 50 additions and 15 deletions

View File

@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: 2023 Espressif Systems (Shanghai) CO LTD
* SPDX-FileCopyrightText: 2023-2024 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
@@ -140,6 +140,14 @@ static inline void lp_core_ll_set_app_boot_address(intptr_t boot_address)
LP_SYS.boot_addr_hp_lp_reg.boot_addr_hp_lp = boot_address;
}
/**
* @brief Request PMU to put LP core to sleep
*/
static inline void lp_core_ll_request_sleep(void)
{
PMU.lp_ext.pwr1.sleep_req = 1;
}
#ifdef __cplusplus
}
#endif