Fix build error due to missing include of serial.h and a trivial typo.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
#include <watchdog.h>
#include <asm/io.h>
#include <nios2-yanu.h>
#include <watchdog.h>
#include <asm/io.h>
#include <nios2-yanu.h>
((1 << YANU_RFIFO_CHARS_N) - 1)) > 0);
}
((1 << YANU_RFIFO_CHARS_N) - 1)) > 0);
}
-statoc int oc_serial_getc(void)
+static int oc_serial_getc(void)
{
while (serial_tstc() == 0)
WATCHDOG_RESET ();
{
while (serial_tstc() == 0)
WATCHDOG_RESET ();