Common part of serial backends

nRF5 SDK v15.2.0