source: trunk/libs/newlib/src/libgloss/mips/array-io.c @ 454

Last change on this file since 454 was 444, checked in by satin@…, 6 years ago

add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc

File size: 1.5 KB
RevLine 
[444]1/* array-io.c -- I/O code for the Array Tech RAID disk controller.
2 *
3 * Copyright (c) 1995 Cygnus Support
4 *
5 * The authors hereby grant permission to use, copy, modify, distribute,
6 * and license this software and its documentation for any purpose, provided
7 * that existing copyright notices are retained in all copies and that this
8 * notice is included verbatim in any distributions. No written agreement,
9 * license, or royalty fee is required for any of the authorized uses.
10 * Modifications to this software may be copyrighted by their authors
11 * and need not follow the licensing terms described here, provided that
12 * the new terms are clearly indicated on the first page of each file where
13 * they apply.
14 */
15#include "mips.h"
16
17/*
18 * outbyte -- shove a byte out the serial port. We wait till the byte
19 */
20int
21outbyte(byte)
22     unsigned char byte;
23{
24  return (PUTCHAR(byte));
25}
26
27/*
28 * inbyte -- get a byte from the serial port
29 */
30unsigned char
31inbyte()
32{
33  return ((unsigned char)GETCHAR);
34}
35
36/*
37 * led_putnum -- print a hex number on the LED. the value of num must be a byte.
38 
39 *               The max number 15, since the front panel only has 4 LEDs.
40 */
41void
42led_putnum ( num )
43char num;
44{
45  print ("Sorry, unimplemented, using putnum instead\r\n");
46  putnum (num);
47}
48
49/*
50 * zylons -- draw a rotating pattern. NOTE: this function never returns.
51 */
52void
53zylons()
54{
55  print ("Sorry, unimplemented\r\n");
56}
57
58/*
59 * delay -- a really gross, ugly hack for simple time delays
60 */
61void
62delay (x)
63     int x;
64{
65  int  y = 17;
66  while (x-- !=0)
67    y = y^2;
68}
Note: See TracBrowser for help on using the repository browser.