Define an error type for serial device IO and a list of common baudrates.