Setting up the interfaces to peripheral devices