feat(lp_core): add a public function to get the timer cycle count

Closes https://github.com/espressif/esp-idf/issues/13101
This commit is contained in:
Omar Chebib
2024-02-05 16:54:42 +08:00
parent 91630fab36
commit 5a32ca10ad
2 changed files with 11 additions and 4 deletions
@@ -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
*/
@@ -11,6 +11,13 @@
extern "C" {
#endif
/**
* @brief Get the number of cycle count for the LP timer
*
* @return current timer cycle count
*/
uint64_t ulp_lp_core_lp_timer_get_cycle_count(void);
/**
* @brief Sets the next wakeup alarm
*