2 Copyright © 2014, The AROS Development Team. All rights reserved.
9 #include <exec/types.h>
10 #include <aros/kernel.h>
13 #include <kernel_base.h>
14 #include <kernel_debug.h>
16 #include <hardware/sun4i/platform.h>
17 #include <hardware/sun4i/uart.h>
19 static inline void waitBusy() {
20 volatile struct UART
*UARTDEBUG
;
21 UARTDEBUG
= SUN4I_UARTDEBUG_BASE
;
23 while ((UARTDEBUG
->LSR
& LSR_THRE
) == 0);
26 static inline void putByte(uint8_t chr
) {
27 volatile struct UART
*UARTDEBUG
;
28 UARTDEBUG
= SUN4I_UARTDEBUG_BASE
;
30 UARTDEBUG
->THR
= (uint32_t) chr
;
32 // UARTDEBUG->THR = (uint32_t) '\r';
36 void (*_KrnPutC
)(char) = NULL
;
38 void krnSerPutC(int chr
) {
43 int krnPutC(int chr
, struct KernelBase
*KernelBase
) {