Common part of serial backends

nRF5 SDK v16.0.0