Set to input direction *after* resetting FIFO_WR_N
Fix comments including UART