*/
#include <cfg/macros.h> /* for BV() */
-#include <drv/clock_lm3s.h> /* lm3s_busyWait() */
#include <drv/gpio_lm3s.h>
#include <drv/ser_p.h>
#include <drv/ser.h>
},
};
-/* Clear the flags register */
-INLINE void lm3s_uartClear(uint32_t base)
-{
- HWREG(base + UART_O_FR) = 0;
-}
-
void lm3s_uartSetBaudRate(uint32_t base, unsigned long baud)
{
unsigned long div;
while (lm3s_uartTxReady(base))
{
- if (fifo_isempty(txfifo)) {
+ if (fifo_isempty(txfifo))
+ {
/*
* Disable TX empty interrupts if there're no more
* characters to transmit.
uart_irq_tx(port);
}
-static void
-lm3s_uartIRQEnable(int port, sysirq_handler_t handler)
+static void lm3s_uartIRQEnable(int port, sysirq_handler_t handler)
{
uint32_t base = UARTDesc[port].base;
sysirq_t irq = UARTDesc[port].irq;