/* * SPDX-FileCopyrightText: 2017-2022 Espressif Systems (Shanghai) CO LTD * * SPDX-License-Identifier: Apache-2.0 *//* ... */#pragmaonce/** * @file esp_private/esp_timer_private.h * * @brief Interface between common and platform-specific parts of esp_timer. * * The functions in this header file are implemented for each supported SoC. * High level functions defined in esp_timer.c call the functions here to * interact with the hardware. * * Note: The functions from this file are marked as private and are used exclusively * inside the IDF in the power management and sleep files. *//* ... */#include<stdint.h>#ifdef__cplusplusextern"C"{#endif/** * @brief Notify esp_timer implementation that APB frequency has changed * * Called by the frequency switching code. * * @param apb_ticks_per_us new number of APB clock ticks per microsecond *//* ... */voidesp_timer_private_update_apb_freq(uint32_tapb_ticks_per_us);/** * @brief Set esp_timer time to a certain value * * Called from light sleep code to synchronize esp_timer time with RTC time. * * @param new_us the value to be set to esp_timer time, in microseconds *//* ... */voidesp_timer_private_set(uint64_tnew_us);/** * @brief Adjust current esp_timer time by a certain value * * @param time_diff_us adjustment to apply to esp_timer time, in microseconds *//* ... */voidesp_timer_private_advance(int64_ttime_diff_us);/** * @brief obtain internal critical section used in the esp_timer implementation * This can be used when a sequence of calls to esp_timer has to be made, * and it is necessary that the state of the timer is consistent between * the calls. Should be treated in the same way as a spinlock. * Call esp_timer_private_unlock to release the lock *//* ... */voidesp_timer_private_lock(void);/** * @brief counterpart of esp_timer_lock *//* ... */voidesp_timer_private_unlock(void);#ifdef__cplusplus}{...}#endif
Details
Show: from
Types: Columns:
All items filtered out
All items filtered out
This file uses the notable symbols shown below. Click anywhere in the file to view more details.