|
|
@ -4,13 +4,7 @@ |
|
|
|
#include <inttypes.h> |
|
|
|
#include <inttypes.h> |
|
|
|
|
|
|
|
|
|
|
|
#ifdef VS_INTELLISENSE |
|
|
|
#ifdef VS_INTELLISENSE |
|
|
|
static inline void UserTimer_Init(void) |
|
|
|
#define __attribute__() |
|
|
|
{ |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
static inline void UserTimer_Run(short skipTicks) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
#define UserTimer_Stop() {} |
|
|
|
|
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
#if ARDUINO >= 100 |
|
|
|
#if ARDUINO >= 100 |
|
|
@ -157,7 +151,7 @@ public: |
|
|
|
|
|
|
|
|
|
|
|
inline void attachInterrupt(void (*handler)(), int mode) |
|
|
|
inline void attachInterrupt(void (*handler)(), int mode) |
|
|
|
{ |
|
|
|
{ |
|
|
|
CLEARINTERRUPT; // clear any pending interrupt (we want to call the handler only for interrupts happending after it is attached)
|
|
|
|
CLEARINTERRUPT; // clear any pending interrupt (we want to call the handler only for interrupts happening after it is attached)
|
|
|
|
::attachInterrupt(interruptNumber_, handler, mode); |
|
|
|
::attachInterrupt(interruptNumber_, handler, mode); |
|
|
|
} |
|
|
|
} |
|
|
|
inline void detachInterrupt() { ::detachInterrupt(interruptNumber_); } |
|
|
|
inline void detachInterrupt() { ::detachInterrupt(interruptNumber_); } |
|
|
|