2 Copyright © 2013, The AROS Development Team. All rights reserved.
6 #include <aros/kernel.h>
8 #include <hardware/mx51_uart.h>
10 #include <kernel_base.h>
11 #include <kernel_debug.h>
13 #include <proto/kernel.h>
15 /* See rom/kernel/maygetchar.c for documentation */
17 AROS_LH0(int, KrnMayGetChar
,
18 struct KernelBase
*, KernelBase
, 26, Kernel
)
22 volatile MX51_UART
* const uart
= (MX51_UART
*)UART1_BASE_ADDR
;
24 if (uart
->USR2
& UART_USR2_RDR
)