Removed autodocs of arch specific variants of ROM modules.
[AROS.git] / arch / arm-raspi / kernel / maygetchar.c
blob8bd4da98ba027eb251ac62c18b82c1b2dec0d63e
1 /*
2 Copyright © 2013, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #include <aros/kernel.h>
8 #include <asm/bcm2835.h>
9 #include <hardware/pl011uart.h>
11 #include <kernel_base.h>
12 #include <kernel_debug.h>
14 #include <proto/kernel.h>
16 /* See rom/kernel/maygetchar.c for documentation */
18 AROS_LH0(int, KrnMayGetChar,
19 struct KernelBase *, KernelBase, 26, Kernel)
21 AROS_LIBFUNC_INIT
23 if ((*(volatile uint32_t *)(PL011_0_BASE + PL011_FR) & PL011_FR_RXFE) == 0)
24 return (int)*(volatile uint32_t *)(PL011_0_BASE + PL011_DR);
26 return -1;
28 AROS_LIBFUNC_EXIT