Skip to content

Commit f7f584b

Browse files
committed
add Serial.attachInterrupt_Send()
1 parent 8665c03 commit f7f584b

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

Diff for: cores/arduino/HardwareSerial.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ void HardwareSerial::_tx_complete_irq(void)
120120
if (_isrTx) {
121121
_isrTx();
122122
}
123+
123124
}
124125

125126
// Public Methods //////////////////////////////////////////////////////////////

Diff for: cores/arduino/HardwareSerial2.cpp

-9
Original file line numberDiff line numberDiff line change
@@ -37,22 +37,13 @@
3737

3838
#if defined(HAVE_HWSERIAL2)
3939

40-
// xxx
41-
extern int count;
42-
4340
ISR(USART2_RX_vect)
4441
{
4542
Serial2._rx_complete_irq();
4643
}
4744

4845
ISR(USART2_UDRE_vect)
4946
{
50-
// xxx
51-
Serial.println(++count);
52-
digitalWrite(LED_BUILTIN, HIGH);
53-
delayMicroseconds(50);
54-
digitalWrite(LED_BUILTIN, LOW);
55-
5647
Serial2._tx_udr_empty_irq();
5748
}
5849

0 commit comments

Comments
 (0)