1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-29 12:16:48 +03:00
Christopher Pascoe c8772cfcd0 Make HardwareSerial::begin() and end() interrupt safe and disable TX/RX if we can't allocate a buffer for them.
Prior to this change, the interrupt could fire during initialisation,
necessitating a deep check that the HardwareSerial structure had valid
_tx_buffer or _rx_buffer each time an interrupt occurred.

By keeping uart_t's and HardwareSerial's (txEnabled, _tx_buffer) and
(rxEnabled, _rx_buffer) in sync, we can remove this extra check, as
well as fixing a null pointer dereference if e.g. _tx_buffer allocation
failed and write() was subsequently called.
2015-12-28 19:11:12 -05:00
..
2015-10-18 10:52:17 +02:00
2015-12-06 20:39:54 +03:00
2015-12-09 13:51:39 +01:00
2015-12-09 13:51:39 +01:00
2015-10-29 10:51:51 +02:00
2015-12-21 13:54:29 +02:00
2015-05-25 09:47:13 +02:00
2015-11-22 22:39:31 +01:00
2015-11-13 13:23:16 +03:00
2015-11-13 13:23:16 +03:00
2015-11-13 13:23:16 +03:00
2015-10-29 10:51:51 +02:00
2015-08-03 19:58:42 -07:00
2015-08-21 11:07:26 -04:00
2015-11-08 23:44:25 +03:00
2015-07-21 00:37:16 +08:00
2015-04-03 13:41:29 +02:00
2015-06-19 10:53:35 +02:00
2015-11-21 20:18:38 +03:00
2015-05-03 17:51:06 +03:00
2015-12-20 12:45:36 +01:00
2015-12-20 12:45:36 +01:00
2014-12-01 00:34:28 +03:00
2015-06-19 10:53:35 +02:00
2015-12-10 17:37:09 +01:00
2015-12-10 17:37:09 +01:00