2 Copyright © 1995-2013, The AROS Development Team. All rights reserved.
5 Desc: Emit one character via raw IO
9 #include <aros/config.h>
11 #ifdef DO_SERIAL_DEBUG
12 # include <asm/registers.h>
15 void vputc(unsigned char chr
);
17 #include <proto/exec.h>
19 /* See rom/exec/rawputchar.c for documentation */
21 AROS_LH1(void, RawPutChar
,
22 AROS_LHA(UBYTE
, chr
, D0
),
23 struct ExecBase
*, SysBase
, 86, Exec
)
27 #ifdef DO_SERIAL_DEBUG
29 * This does not work with xcopilot...
33 * Wait until FIFO is half empty
35 while (0 == (RREG_W(UTX1
) & FIFO_HALF_F
)) {
37 WREG_W(UTX1
) = (UWORD
)chr
;
41 /* Don't write 0 bytes */