Configuring serial interfaces