2 Copyright © 2014, The AROS Development Team. All rights reserved.
12 #include <hardware/sun4i/platform.h>
13 #include <hardware/sun4i/uart.h>
15 static inline void waitBusy() {
16 volatile struct UART
*UARTDEBUG
;
17 UARTDEBUG
= SUN4I_UARTDEBUG_BASE
;
19 while ((UARTDEBUG
->LSR
& LSR_THRE
) == 0);
22 static inline void putByte(uint8_t chr
) {
23 volatile struct UART
*UARTDEBUG
;
24 UARTDEBUG
= SUN4I_UARTDEBUG_BASE
;
26 UARTDEBUG
->THR
= (uint32_t) chr
;
28 // UARTDEBUG->THR = (uint32_t) '\r';
31 void putBytes(const char *str
) {
38 static char tmpbuf
[512];
39 void kprintf(const char *format
, ...) {
44 vsnprintf(tmpbuf
, 511, format
, vp
);