bootloader_clock.h 490 B

12345678910111213141516171819202122232425
  1. /*
  2. * SPDX-FileCopyrightText: 2017-2022 Espressif Systems (Shanghai) CO LTD
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. */
  6. #pragma once
  7. #ifdef __cplusplus
  8. extern "C" {
  9. #endif
  10. /** @brief Configure clocks for early boot
  11. *
  12. * Called by bootloader, or by the app if the bootloader version is old (pre v2.1).
  13. */
  14. void bootloader_clock_configure(void);
  15. /** @brief Return the rated maximum frequency of this chip
  16. */
  17. int bootloader_clock_get_rated_freq_mhz(void);
  18. #ifdef __cplusplus
  19. }
  20. #endif