From 21dbf753429f666e35aec70c93f9b924936e596d Mon Sep 17 00:00:00 2001 From: Youen Toupin Date: Wed, 3 May 2017 21:59:20 +0200 Subject: [PATCH] improved visual intellisense integration --- LowLevel.h | 10 ++-------- OneWireIO.vcxproj | 2 +- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/LowLevel.h b/LowLevel.h index 58d0ec7..d18d387 100644 --- a/LowLevel.h +++ b/LowLevel.h @@ -4,13 +4,7 @@ #include #ifdef VS_INTELLISENSE -static inline void UserTimer_Init(void) -{ -} -static inline void UserTimer_Run(short skipTicks) -{ -} -#define UserTimer_Stop() {} +#define __attribute__() #endif #if ARDUINO >= 100 @@ -157,7 +151,7 @@ public: 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); } inline void detachInterrupt() { ::detachInterrupt(interruptNumber_); } diff --git a/OneWireIO.vcxproj b/OneWireIO.vcxproj index 18ab5ab..94ae257 100644 --- a/OneWireIO.vcxproj +++ b/OneWireIO.vcxproj @@ -46,7 +46,7 @@ Disabled true D:\Outils\Arduino\hardware\arduino\avr\cores\arduino;D:\Outils\Arduino\hardware\tools\avr\avr\include;C:\Program Files %28x86%29\Arduino\hardware\arduino\avr\cores\arduino;C:\Program Files %28x86%29\Arduino\hardware\tools\avr\avr\include - _MBCS;%(PreprocessorDefinitions);ARDUINO=160;__AVR__;UBRRH;__AVR_ATmega328__;VS_INTELLISENSE + _MBCS;%(PreprocessorDefinitions);ARDUINO=160;__AVR__;UBRRH;__AVR_ATmega328P__;VS_INTELLISENSE true