/
githubmirror
/
flashrom
Обзор
Документация
Войти
/
githubmirror
/
flashrom
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
include/platform/udelay.h
25 строк
879 B
Antonio Vázquez
include/platform/: Unify header guards style
31 мар 2026, 04:00
31 мар 2026, 04:00
eefc31f
Код
Авторство
О чём код?
/* * This file is part of the flashrom project. * * SPDX-License-Identifier: GPL-2.0-or-later * SPDX-FileCopyrightText: 2025 Antonio Vázquez Blanco <antoniovazquezblanco@gmail.com> * * This header provides declarations for delay functions used to implement * microsecond-level timing delays in a platform-independent manner. */ #ifndef __PLATFORM_UDELAY_H__ #define __PLATFORM_UDELAY_H__ /** * @brief Delay for at least the specified number of microseconds. * @details * For very short delays this function polls the wall time provided by the OS, * otherwise it will use an OS-provided sleep()-like function. The delay will never * be shorter than the precision of an OS clock source (which usually have nanosecond * precision). * @param usecs The number of microseconds to delay. */ void default_delay(unsigned int usecs); #endif /* __PLATFORM_UDELAY_H__ */