2 Copyright © 1995-2007, 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 /****************************************************************************
20 #include <proto/exec.h>
22 AROS_LH1(void, RawPutChar
,
25 AROS_LHA(UBYTE
, chr
, D0
),
28 struct ExecBase
*, SysBase
, 86, Exec
)
31 Emits a single character.
34 chr - The character to emit
40 This function is for very low level debugging only.
47 RawIOInit(), RawPutChar(), RawMayGetChar()
53 *****************************************************************************/
57 #ifdef DO_SERIAL_DEBUG
59 * This does not work with xcopilot...
63 * Wait until FIFO is half empty
65 while (0 == (RREG_W(UTX1
) & FIFO_HALF_F
)) {
67 WREG_W(UTX1
) = (UWORD
)chr
;
71 /* Don't write 0 bytes */