2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
5 Desc: Emit one character via raw IO
9 #include <aros/config.h>
10 #include <asm/registers.h>
12 /*****i***********************************************************************
15 #include <proto/exec.h>
17 AROS_LH1(void, RawPutChar
,
20 AROS_LHA(UBYTE
, chr
, D0
),
23 struct ExecBase
*, SysBase
, 86, Exec
)
26 Emits a single character.
29 chr - The character to emit
35 This function is for very low level debugging only.
42 RawIOInit(), RawPutChar(), RawMayGetChar()
48 *****************************************************************************/
51 #define DO_SERIAL_DEBUG
52 #ifdef DO_SERIAL_DEBUG
57 utsr1
= RREG_L(UTSR1
);
59 } while ((0 == (utsr1
& 0x04)) && (j
< 1000000));
61 WREG_L(UTDR
) = (ULONG
)chr
;
63 WREG_L(UTDR
) = (ULONG
)'\r';