Initialize the uart by passing in the base and irq, as well as a flag specifying if it's the debug uart and should directly put data into the console buffer (if present).