carl9170 firmware: fix CONFIG_CARL9170FW_DEBUG_UART compile error
authorChristian Lamparter <chunkeey@googlemail.com>
Thu, 17 Jan 2013 22:28:36 +0000 (23:28 +0100)
committerChristian Lamparter <chunkeey@googlemail.com>
Thu, 17 Jan 2013 22:28:36 +0000 (23:28 +0100)
uart.c:36:9: error: ‘AR9170_UART_LINE_STS_TX_FIFO_ALMOST_EMPTY’ undeclared

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
carlfw/src/uart.c

index 58f64866bae04352e09239c9c14045df68e35e16..919e6835de633b6ae9ce70b96f93cfa6d239cde3 100644 (file)
@@ -33,7 +33,7 @@ void uart_putc(const char c)
        set(AR9170_UART_REG_TX_HOLDING, c);
 
        while (get(AR9170_UART_REG_LINE_STATUS) &
-              AR9170_UART_LINE_STS_TX_FIFO_ALMOST_EMPTY) {
+              AR9170_UART_LINE_STS_TX_FIFO_NEAR_EMPTY) {
                /*
                 * wait until the byte has made it
                 */