Newer
Older
pyenergenie / src / energenie / drv / delay.h
@David Whale David Whale on 4 Apr 2016 400 bytes First pass at writing a test in hrf69_test.c
/* delay.h  04/04/2016  D.J.Whale
 *
 * Abstraction for delay routines, as they are often platform specific
 */

#ifndef _DELAY_H
#define _DELAY_H

#include "system.h"

//#include <time.h>
#include <sys/time.h> // Won't work on Arduino

void delay(struct timespec time);

void delaysec(uint8_t secs);

void delayms(unsigned int ms);

void delayus(unsigned int us);

#endif

/***** END OF FILE *****/