Tasmota/lib/lib_rf/RF24/utility/SPIDEV/compatibility.h

32 lines
519 B
C
Raw Normal View History

2020-01-01 18:09:20 +00:00
/*
* File: compatiblity.h
* Author: purinda
*
* Created on 24 June 2012, 3:08 PM
* patch for safer monotonic clock & millis() correction for 64bit LDV 2018
*/
#ifndef COMPATIBLITY_H
#define COMPATIBLITY_H
#ifdef __cplusplus
extern "C" {
#endif
#include <stdint.h> // for uintXX_t types
#include <stddef.h>
#include <time.h>
#include <sys/time.h>
void __msleep(int milisec);
void __usleep(int milisec);
void __start_timer();
uint32_t __millis();
#ifdef __cplusplus
}
#endif
#endif /* COMPATIBLITY_H */