Removed __startup attribute. It is already present in AROS_SHxx definition, and doubl...
[AROS.git] / arch / m68k-mac / exec / rawputchar.c
blobeb2905bbb2221ede419bf8be65c25b5008371df4
1 /*
2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: Emit one character via raw IO
6 Lang: english
7 */
9 #include <aros/config.h>
11 #ifdef DO_SERIAL_DEBUG
12 # include <asm/registers.h>
13 #endif
15 void vputc(unsigned char chr);
17 /****************************************************************************
19 NAME */
20 #include <proto/exec.h>
22 AROS_LH1(void, RawPutChar,
24 /* SYNOPSIS */
25 AROS_LHA(UBYTE, chr, D0),
27 /* LOCATION */
28 struct ExecBase *, SysBase, 86, Exec)
30 /* FUNCTION
31 Emits a single character.
33 INPUTS
34 chr - The character to emit
36 RESULT
37 None.
39 NOTES
40 This function is for very low level debugging only.
42 EXAMPLE
44 BUGS
46 SEE ALSO
47 RawIOInit(), RawPutChar(), RawMayGetChar()
49 INTERNALS
51 HISTORY
53 *****************************************************************************/
55 AROS_LIBFUNC_INIT
56 #if 0
57 #ifdef DO_SERIAL_DEBUG
59 * This does not work with xcopilot...
61 if (chr) {
63 * Wait until FIFO is half empty
65 while (0 == (RREG_W(UTX1) & FIFO_HALF_F)) {
67 WREG_W(UTX1) = (UWORD)chr;
69 #endif
70 #endif
71 /* Don't write 0 bytes */
72 if (chr) {
73 vputc(chr);
76 AROS_LIBFUNC_EXIT
77 } /* RawPutChar */