| 290 | } |
| 291 | |
| 292 | void SoftwareSerial::setRX(int8_t rx) |
| 293 | { |
| 294 | pinMode(rx, INPUT); |
| 295 | if (!_inverse_logic) |
| 296 | digitalWrite(rx, HIGH); // pullup for normal logic! |
| 297 | _receivePin = rx; |
| 298 | _receiveBitMask = digitalPinToBitMask(rx); |
| 299 | uint8_t port = digitalPinToPort(rx); |
| 300 | _receivePortRegister = portInputRegister(port); |
| 301 | } |
| 302 | |
| 303 | uint16_t SoftwareSerial::subtract_cap(uint16_t num, uint16_t sub) { |
| 304 | if (num > sub) |
nothing calls this directly
no test coverage detected