Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
arduino-esp32
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
arduino-esp32
Commits
4e5cbdaa
Commit
4e5cbdaa
authored
Jul 03, 2018
by
me-no-dev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add declarations for all Serial, SPI and Wire buses
parent
12ca9e8b
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
8 additions
and
0 deletions
+8
-0
cores/esp32/HardwareSerial.cpp
cores/esp32/HardwareSerial.cpp
+2
-0
cores/esp32/HardwareSerial.h
cores/esp32/HardwareSerial.h
+2
-0
libraries/SPI/src/SPI.cpp
libraries/SPI/src/SPI.cpp
+1
-0
libraries/SPI/src/SPI.h
libraries/SPI/src/SPI.h
+1
-0
libraries/Wire/src/Wire.cpp
libraries/Wire/src/Wire.cpp
+1
-0
libraries/Wire/src/Wire.h
libraries/Wire/src/Wire.h
+1
-0
No files found.
cores/esp32/HardwareSerial.cpp
View file @
4e5cbdaa
...
@@ -7,6 +7,8 @@
...
@@ -7,6 +7,8 @@
#if !defined(NO_GLOBAL_INSTANCES) && !defined(NO_GLOBAL_SERIAL)
#if !defined(NO_GLOBAL_INSTANCES) && !defined(NO_GLOBAL_SERIAL)
HardwareSerial
Serial
(
0
);
HardwareSerial
Serial
(
0
);
HardwareSerial
Serial1
(
1
);
HardwareSerial
Serial2
(
2
);
#endif
#endif
HardwareSerial
::
HardwareSerial
(
int
uart_nr
)
:
_uart_nr
(
uart_nr
),
_uart
(
NULL
)
{}
HardwareSerial
::
HardwareSerial
(
int
uart_nr
)
:
_uart_nr
(
uart_nr
),
_uart
(
NULL
)
{}
...
...
cores/esp32/HardwareSerial.h
View file @
4e5cbdaa
...
@@ -79,6 +79,8 @@ protected:
...
@@ -79,6 +79,8 @@ protected:
#if !defined(NO_GLOBAL_INSTANCES) && !defined(NO_GLOBAL_SERIAL)
#if !defined(NO_GLOBAL_INSTANCES) && !defined(NO_GLOBAL_SERIAL)
extern
HardwareSerial
Serial
;
extern
HardwareSerial
Serial
;
extern
HardwareSerial
Serial1
;
extern
HardwareSerial
Serial2
;
#endif
#endif
#endif
#endif
libraries/SPI/src/SPI.cpp
View file @
4e5cbdaa
...
@@ -288,3 +288,4 @@ void SPIClass::writePattern_(uint8_t * data, uint8_t size, uint8_t repeat)
...
@@ -288,3 +288,4 @@ void SPIClass::writePattern_(uint8_t * data, uint8_t size, uint8_t repeat)
}
}
SPIClass
SPI
(
VSPI
);
SPIClass
SPI
(
VSPI
);
SPIClass
SPI1
(
HSPI
);
libraries/SPI/src/SPI.h
View file @
4e5cbdaa
...
@@ -83,5 +83,6 @@ public:
...
@@ -83,5 +83,6 @@ public:
};
};
extern
SPIClass
SPI
;
extern
SPIClass
SPI
;
extern
SPIClass
SPI1
;
#endif
#endif
libraries/Wire/src/Wire.cpp
View file @
4e5cbdaa
...
@@ -364,3 +364,4 @@ void TwoWire::dumpI2C()
...
@@ -364,3 +364,4 @@ void TwoWire::dumpI2C()
}
}
TwoWire
Wire
=
TwoWire
(
0
);
TwoWire
Wire
=
TwoWire
(
0
);
TwoWire
Wire1
=
TwoWire
(
1
);
libraries/Wire/src/Wire.h
View file @
4e5cbdaa
...
@@ -134,6 +134,7 @@ public:
...
@@ -134,6 +134,7 @@ public:
};
};
extern
TwoWire
Wire
;
extern
TwoWire
Wire
;
extern
TwoWire
Wire1
;
/*
/*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment