fixed vscode lint issues

This commit is contained in:
Youen Toupin 2018-03-30 14:12:39 +02:00
parent 17a5357150
commit a0d32dafae
2 changed files with 31 additions and 5 deletions

View File

@ -11,7 +11,13 @@
"${workspaceRoot}",
"${workspaceRoot}/library/OneWireSlave"
],
"defines": ["ARDUINO=160","__AVR__","UBRRH","__AVR_ATmega328P__","VS_INTELLISENSE"],
"defines": [
"ARDUINO=160",
"__AVR__",
"UBRRH",
"__AVR_ATmega328P__",
"VS_INTELLISENSE"
],
"intelliSenseMode": "clang-x64",
"browse": {
"path": [
@ -44,7 +50,13 @@
"${workspaceRoot}",
"${workspaceRoot}/library/OneWireSlave"
],
"defines": ["ARDUINO=160","__AVR__","UBRRH","__AVR_ATmega328P__","VS_INTELLISENSE"],
"defines": [
"ARDUINO=160",
"__AVR__",
"UBRRH",
"__AVR_ATmega328P__",
"VS_INTELLISENSE"
],
"intelliSenseMode": "clang-x64",
"browse": {
"path": [
@ -60,7 +72,10 @@
],
"limitSymbolsToIncludedHeaders": true,
"databaseFilename": ""
}
},
"compilerPath": "/usr/bin/gcc",
"cStandard": "c11",
"cppStandard": "c++14"
},
{
"name": "Win32",
@ -76,7 +91,11 @@
"_DEBUG",
"UNICODE",
"_UNICODE",
"ARDUINO=160","__AVR__","UBRRH","__AVR_ATmega328P__","VS_INTELLISENSE"
"ARDUINO=160",
"__AVR__",
"UBRRH",
"__AVR_ATmega328P__",
"VS_INTELLISENSE"
],
"intelliSenseMode": "msvc-x64",
"browse": {

View File

@ -4,7 +4,7 @@
#include <inttypes.h>
#ifdef VS_INTELLISENSE
#define __attribute__()
#define __attribute__(arg1)
#endif
#if ARDUINO >= 100
@ -109,6 +109,13 @@ __attribute__((always_inline)) static inline void UserTimer_Run(short skipTicks)
#error "Please define I/O register types here"
#endif
#ifdef VS_INTELLISENSE
#undef PIN_TO_BITMASK
#define PIN_TO_BITMASK(pin) 0
#undef PIN_TO_BASEREG
#define PIN_TO_BASEREG(pin) 0
#endif
class Pin
{
private: