+#if USE_SERIAL_STDIN
+char
+ao_serial_pollchar(void) __critical
+{
+ char c;
+#if 0
+ if (!ao_serial_stdin)
+ return AO_READ_AGAIN;
+#endif
+ if (ao_fifo_empty(ao_usart1_rx_fifo))
+ return AO_READ_AGAIN;
+ ao_fifo_remove(ao_usart1_rx_fifo,c);
+ return c;
+}
+
+void
+ao_serial_set_stdin(uint8_t stdin)
+{
+ ao_serial_stdin = stdin;
+}
+
+#endif
+