2 Copyright © 2013-2015, The AROS Development Team. All rights reserved.
6 #include <aros/kernel.h>
9 #include <kernel_base.h>
10 #include <kernel_debug.h>
11 #include <kernel_intern.h>
12 #include <hardware/pl011uart.h>
14 void (*_KrnPutC
)(char) = NULL
;
16 inline void krnWaitSerOut()
20 if ((*(volatile uint32_t *)(PL011_0_BASE
+ PL011_FR
) & PL011_FR_TXFF
) == 0) break;
25 inline void krnSerPutC(uint8_t chr
)
31 *(volatile uint32_t *)(PL011_0_BASE
+ PL011_DR
) = '\r';
34 *(volatile uint32_t *)(PL011_0_BASE
+ PL011_DR
) = chr
;
37 int krnPutC(int chr
, struct KernelBase
*KernelBase
)