|
@@ -29,9 +29,7 @@
|
29
|
29
|
* The latest version of this library can always be found at
|
30
|
30
|
* http://arduiniana.org.
|
31
|
31
|
*/
|
32
|
|
-
|
33
|
|
-#ifndef SOFTWARESERIAL_H
|
34
|
|
-#define SOFTWARESERIAL_H
|
|
32
|
+#pragma once
|
35
|
33
|
|
36
|
34
|
#include <Arduino.h>
|
37
|
35
|
|
|
@@ -64,7 +62,6 @@ class SoftwareSerial : public Stream {
|
64
|
62
|
uint32_t delta_start = 0;
|
65
|
63
|
|
66
|
64
|
// static data
|
67
|
|
- static bool initialised;
|
68
|
65
|
static HardwareTimer timer;
|
69
|
66
|
static const IRQn_Type timer_interrupt_number;
|
70
|
67
|
static uint32_t timer_interrupt_priority;
|
|
@@ -91,7 +88,7 @@ class SoftwareSerial : public Stream {
|
91
|
88
|
public:
|
92
|
89
|
// public methods
|
93
|
90
|
|
94
|
|
- SoftwareSerial(uint16_t receivePin, uint16_t transmitPin, bool inverse_logic = false);
|
|
91
|
+ SoftwareSerial(uint16_t receivePin, uint16_t transmitPin, bool inverse_logic=false);
|
95
|
92
|
virtual ~SoftwareSerial();
|
96
|
93
|
void begin(long speed);
|
97
|
94
|
bool listen();
|
|
@@ -115,5 +112,3 @@ class SoftwareSerial : public Stream {
|
115
|
112
|
|
116
|
113
|
using Print::write;
|
117
|
114
|
};
|
118
|
|
-
|
119
|
|
-#endif // SOFTWARESERIAL_H
|