LM3S: remove kdebug dependency from serial driver.
[bertos.git] / bertos / cpu / cortex-m3 / drv / ser_lm3s.h
index 9485b1f8a7197215f564b6a97ca5517cac92a21b..e58738a8e35b14007c2c64b18346a38ce3a34484 100644 (file)
@@ -91,6 +91,12 @@ INLINE void lm3s_uartEnable(uint32_t base)
        lm3s_busyWait(512);
 }
 
+/* Clear the flags register */
+INLINE void lm3s_uartClear(uint32_t base)
+{
+       HWREG(base + UART_O_FR) = 0;
+}
+
 INLINE bool lm3s_uartTxDone(uint32_t base)
 {
        return HWREG(base + UART_O_FR) & UART_FR_TXFE ? true : false;