mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
34 lines
573 B
C
34 lines
573 B
C
/*
|
|
* SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <stdint.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/**
|
|
* @brief Convert ticks to microseconds
|
|
*
|
|
* @param ticks ticks to convert
|
|
* @return microseconds
|
|
*/
|
|
uint64_t systimer_ticks_to_us(uint64_t ticks) __attribute__((const));
|
|
|
|
/**
|
|
* @brief Convert microseconds to ticks
|
|
*
|
|
* @param us microseconds to convert
|
|
* @return ticks
|
|
*/
|
|
uint64_t systimer_us_to_ticks(uint64_t us) __attribute__((const));
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|