HardwareSerial::end()
Abstract
The HardwareSerial::end() ends the serial communication and sets RX and TX pins to normal input/output mode.
The HardwareSerial::end() sets UCSR0B register.
Source Code
The HardwareSerial::end() is defined in hardware/arduino/avr/cores/arduino/HardwareSerial.cpp as below.
|
|
No inputs, no outputs.
|
|
Call HardwareSerial::flush() to send untransmitted data.
|
|
Then sets the register.
|
|
Clears RXEn, TXEn, RXCIEn and UDUIEn in ucsrb(UCSR0B) using cbi().
Finally clears receive buffer.
|
|
version
Arduino AVR Boards 1.8.6
Last Update
August 25, 2019