Move kfile interface to the io/ directory.
[bertos.git] / bertos / cpu / cortex-m3 / drv / ser_lm3s.c
index b326a058bc9af98b0960275311f497788a0fffa5..12590b893acf7daf2ce1e6a75c4252f2d2c9751d 100644 (file)
@@ -91,12 +91,6 @@ static const struct gpio_uart_info gpio_uart[SER_CNT] =
        },
 };
 
-/* 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;
@@ -198,7 +192,8 @@ static void uart_irq_tx(int port)
 
        while (lm3s_uartTxReady(base))
        {
-               if (fifo_isempty(txfifo)) {
+               if (fifo_isempty(txfifo))
+               {
                        /*
                         * Disable TX empty interrupts if there're no more
                         * characters to transmit.
@@ -226,8 +221,7 @@ static void uart_common_irq_handler(int port)
                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;