This also fixes a bug in the uart clock calculation where it could select an oversampling faster than what the hardware is providing.