Make IntervalTimer stub so simulator works

This commit is contained in:
John Stäck 2019-10-16 15:28:01 +02:00
parent 88b38b3f46
commit f36129d4bb
3 changed files with 28 additions and 9 deletions

View file

@ -0,0 +1,17 @@
#ifndef __INTERRUPTS_H
#define __INTERRUPTS_H
//Dummy functions, used by macros for interrupts() / noInterrupts()
void __enable_irq() {}
void __disable_irq() {}
struct IntervalTimer
{
public:
IntervalTimer() {};
bool begin(void (*funct)(), unsigned int microseconds) { };
};
#endif