rtc.h 555 B

12345678910111213141516171819202122232425262728293031
  1. /*
  2. * SPDX-FileCopyrightText: 2015-2021 Espressif Systems (Shanghai) CO LTD
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. */
  6. #pragma once
  7. #include <stdint.h>
  8. #ifdef __cplusplus
  9. extern "C" {
  10. #endif
  11. /**
  12. * @file esp32/rtc.h
  13. *
  14. * This file contains declarations of rtc related functions.
  15. */
  16. /**
  17. * @brief Get current value of RTC counter in microseconds
  18. *
  19. * Note: this function may take up to 1 RTC_SLOW_CLK cycle to execute
  20. *
  21. * @return current value of RTC counter in microseconds
  22. */
  23. uint64_t esp_rtc_get_time_us(void);
  24. #ifdef __cplusplus
  25. }
  26. #endif