add uart output setting for bare metal