Test initialisation of MUIA_List_AdjustWidth and MUIA_List_AdjustHeight, and
[AROS.git] / arch / arm-efika / boot / serialdebug.c
blobfac4bbce0c9a413321c49d4d68704ff0a9605750
1 /*
2 Copyright © 2009-2014, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #include <inttypes.h>
7 #include <stdio.h>
8 #include "serialdebug.h"
10 inline void waitBusy()
12 volatile uint32_t *uart = (uint32_t *)UART1_BASE_ADDR;
13 while(!(uart[0x98 / 4] & (1 << 3)));
16 inline void putByte(uint8_t chr)
18 volatile uint32_t *uart = (uint32_t *)UART1_BASE_ADDR;
19 uart[0x10] = chr;
20 if (chr == '\n')
21 uart[0x10] = '\r';
24 void putBytes(const char *str)
26 while(*str)
28 putByte(*str++);
29 waitBusy();
33 static char tmpbuf[512];
35 void kprintf(const char *format, ...)
37 char *out = tmpbuf;
38 va_list vp;
40 va_start(vp, format);
41 vsnprintf(tmpbuf, 511, format, vp);
42 va_end(vp);
44 putBytes(out);