Raise STM32F1 UART IRQ Priority, add error handling (#19301)

(Error handling for Overrun, Framing and Parity.)
This commit is contained in:
Victor Oliveira authored and GitHub committed 2020-09-09 22:46:50 -05:00
1 parent 20ac0faa86
commit b98946b5c1
3 files changed
+52 -24

No files matched your search

+2 -4
View File
@@ -55,10 +55,8 @@
void MarlinSerial::begin(unsigned long baud, uint8_t config) {
HardwareSerial::begin(baud, config);
// replace the IRQ callback with the one we have defined
#if ENABLED(EMERGENCY_PARSER)
_serial.rx_callback = _rx_callback;
#endif
// Replace the IRQ callback with the one we have defined
TERN_(EMERGENCY_PARSER, _serial.rx_callback = _rx_callback);
}
// This function is Copyright (c) 2006 Nicholas Zambetti.