unleashed-firmware/firmware/targets/local/api-hal/api-hal-delay.c

11 lines
199 B
C
Raw Normal View History

#include "api-hal-delay.h"
#include <stdio.h>
#include <unistd.h>
void delay_us(float microseconds) {
usleep(microseconds);
}
void delay(float milliseconds) {
usleep(milliseconds * 1000);
}