Skip to content

Commit b7eb6c2

Browse files
committed
feat(core): third step of ArduinoCore-API migration – SoftwareSerial
Signed-off-by: Aymane Bahssain <aymane.bahssain@st.com>
1 parent 6adb7cd commit b7eb6c2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

libraries/SoftwareSerial/src/SoftwareSerial.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ inline void SoftwareSerial::handleInterrupt()
306306
//
307307
// Constructor
308308
//
309-
SoftwareSerial::SoftwareSerial(uint16_t receivePin, uint16_t transmitPin, bool inverse_logic /* = false */) :
309+
SoftwareSerial::SoftwareSerial(pin_size_t receivePin, pin_size_t transmitPin, bool inverse_logic /* = false */) :
310310
_receivePin(receivePin),
311311
_transmitPin(transmitPin),
312312
_receivePinPort(digitalPinToPort(receivePin)),

libraries/SoftwareSerial/src/SoftwareSerial.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@
4444
class SoftwareSerial : public Stream {
4545
private:
4646
// per object data
47-
uint16_t _receivePin;
48-
uint16_t _transmitPin;
47+
pin_size_t _receivePin;
48+
pin_size_t _transmitPin;
4949
GPIO_TypeDef *_receivePinPort;
5050
uint32_t _receivePinNumber;
5151
GPIO_TypeDef *_transmitPinPort;
@@ -89,7 +89,7 @@ class SoftwareSerial : public Stream {
8989
public:
9090
// public methods
9191

92-
SoftwareSerial(uint16_t receivePin, uint16_t transmitPin, bool inverse_logic = false);
92+
SoftwareSerial(pin_size_t receivePin, pin_size_t transmitPin, bool inverse_logic = false);
9393
virtual ~SoftwareSerial();
9494
void begin(long speed);
9595
bool listen();

0 commit comments

Comments
 (0)