more k24 porting
uart: try to handle interrupt flags properly