Move some common defines to uart.h.