Serial driver fixes
- Fix the order of the parameters for serial_mode() in .c
- Use parity_t on the actual implementation of serial_mode()