kopia lustrzana https://github.com/OpenRTX/OpenRTX
35 wiersze
1.5 KiB
C
35 wiersze
1.5 KiB
C
/***************************************************************************
|
|
* Copyright (C) 2020 by Frederik Saraci IU2NRO *
|
|
* *
|
|
* This program is free software; you can redistribute it and/or modify *
|
|
* it under the terms of the GNU General Public License as published by *
|
|
* the Free Software Foundation; either version 3 of the License, or *
|
|
* (at your option) any later version. *
|
|
* *
|
|
* This program is distributed in the hope that it will be useful, *
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
|
* GNU General Public License for more details. *
|
|
* *
|
|
* You should have received a copy of the GNU General Public License *
|
|
* along with this program; if not, see <http://www.gnu.org/licenses/> *
|
|
***************************************************************************/
|
|
|
|
#include <interfaces/delays.h>
|
|
#include <unistd.h>
|
|
#include <stdio.h>
|
|
|
|
/**
|
|
* Implementation of the delay functions for x86_64.
|
|
*/
|
|
|
|
void delayUs(unsigned int useconds)
|
|
{
|
|
usleep(useconds);
|
|
}
|
|
|
|
void delayMs(unsigned int mseconds)
|
|
{
|
|
usleep(mseconds*1000);
|
|
}
|