mirror of
https://github.com/digistump/DigistumpArduino.git
synced 2025-09-17 17:32:25 -07:00
switch to setup for Arduino Boards Manager
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* File: compatiblity.h
|
||||
* Author: purinda
|
||||
*
|
||||
* Created on 24 June 2012, 3:08 PM
|
||||
*/
|
||||
|
||||
#ifndef COMPATIBLITY_H
|
||||
#define COMPATIBLITY_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include <stddef.h>
|
||||
#include <time.h>
|
||||
#include <sys/time.h>
|
||||
|
||||
// added attribute unused to avoid compiler warnings
|
||||
static struct timeval start __attribute__ ((unused)) ,end __attribute__ ((unused));
|
||||
|
||||
static long __attribute__ ((unused)) mtime;
|
||||
static long __attribute__ ((unused)) seconds;
|
||||
static long __attribute__ ((unused)) useconds;
|
||||
|
||||
void __msleep(int milisec);
|
||||
void __usleep(int milisec);
|
||||
void __start_timer();
|
||||
long __millis();
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* COMPATIBLITY_H */
|
||||
|
Reference in New Issue
Block a user