fixed vscode lint issues
This commit is contained in:
parent
17a5357150
commit
a0d32dafae
27
.vscode/c_cpp_properties.json
vendored
27
.vscode/c_cpp_properties.json
vendored
@ -11,7 +11,13 @@
|
|||||||
"${workspaceRoot}",
|
"${workspaceRoot}",
|
||||||
"${workspaceRoot}/library/OneWireSlave"
|
"${workspaceRoot}/library/OneWireSlave"
|
||||||
],
|
],
|
||||||
"defines": ["ARDUINO=160","__AVR__","UBRRH","__AVR_ATmega328P__","VS_INTELLISENSE"],
|
"defines": [
|
||||||
|
"ARDUINO=160",
|
||||||
|
"__AVR__",
|
||||||
|
"UBRRH",
|
||||||
|
"__AVR_ATmega328P__",
|
||||||
|
"VS_INTELLISENSE"
|
||||||
|
],
|
||||||
"intelliSenseMode": "clang-x64",
|
"intelliSenseMode": "clang-x64",
|
||||||
"browse": {
|
"browse": {
|
||||||
"path": [
|
"path": [
|
||||||
@ -44,7 +50,13 @@
|
|||||||
"${workspaceRoot}",
|
"${workspaceRoot}",
|
||||||
"${workspaceRoot}/library/OneWireSlave"
|
"${workspaceRoot}/library/OneWireSlave"
|
||||||
],
|
],
|
||||||
"defines": ["ARDUINO=160","__AVR__","UBRRH","__AVR_ATmega328P__","VS_INTELLISENSE"],
|
"defines": [
|
||||||
|
"ARDUINO=160",
|
||||||
|
"__AVR__",
|
||||||
|
"UBRRH",
|
||||||
|
"__AVR_ATmega328P__",
|
||||||
|
"VS_INTELLISENSE"
|
||||||
|
],
|
||||||
"intelliSenseMode": "clang-x64",
|
"intelliSenseMode": "clang-x64",
|
||||||
"browse": {
|
"browse": {
|
||||||
"path": [
|
"path": [
|
||||||
@ -60,7 +72,10 @@
|
|||||||
],
|
],
|
||||||
"limitSymbolsToIncludedHeaders": true,
|
"limitSymbolsToIncludedHeaders": true,
|
||||||
"databaseFilename": ""
|
"databaseFilename": ""
|
||||||
}
|
},
|
||||||
|
"compilerPath": "/usr/bin/gcc",
|
||||||
|
"cStandard": "c11",
|
||||||
|
"cppStandard": "c++14"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Win32",
|
"name": "Win32",
|
||||||
@ -76,7 +91,11 @@
|
|||||||
"_DEBUG",
|
"_DEBUG",
|
||||||
"UNICODE",
|
"UNICODE",
|
||||||
"_UNICODE",
|
"_UNICODE",
|
||||||
"ARDUINO=160","__AVR__","UBRRH","__AVR_ATmega328P__","VS_INTELLISENSE"
|
"ARDUINO=160",
|
||||||
|
"__AVR__",
|
||||||
|
"UBRRH",
|
||||||
|
"__AVR_ATmega328P__",
|
||||||
|
"VS_INTELLISENSE"
|
||||||
],
|
],
|
||||||
"intelliSenseMode": "msvc-x64",
|
"intelliSenseMode": "msvc-x64",
|
||||||
"browse": {
|
"browse": {
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
#include <inttypes.h>
|
#include <inttypes.h>
|
||||||
|
|
||||||
#ifdef VS_INTELLISENSE
|
#ifdef VS_INTELLISENSE
|
||||||
#define __attribute__()
|
#define __attribute__(arg1)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if ARDUINO >= 100
|
#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"
|
#error "Please define I/O register types here"
|
||||||
#endif
|
#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
|
class Pin
|
||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
|
Loading…
Reference in New Issue
Block a user