OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [c/] [src/] [tests/] [sptests/] [sp13/] [putbuff.c] - Blame information for rev 543

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 30 unneback
/*  Put_buffer
2
 *
3
 *  This test routine prints the given buffer.
4
 *  buffer.
5
 *
6
 *  Input parameters:
7
 *    buffer - pointer to message buffer to be printer
8
 *
9
 *  Output parameters:  NONE
10
 *
11
 *  COPYRIGHT (c) 1989-1999.
12
 *  On-Line Applications Research Corporation (OAR).
13
 *
14
 *  The license and distribution terms for this file may be
15
 *  found in the file LICENSE in this distribution or at
16
 *  http://www.OARcorp.com/rtems/license.html.
17
 *
18
 *  $Id: putbuff.c,v 1.2 2001-09-27 12:02:32 chris Exp $
19
 */
20
 
21
#include "system.h"
22
 
23
#define MESSAGE_SIZE (4)
24
 
25
void Put_buffer(
26
  long *buffer
27
)
28
{
29
  int i;
30
/*
31
  printf( "%16s", (char *)buffer );
32
*/
33
  for ( i=0 ; i< MESSAGE_SIZE ; i++ ) {
34
    printf( "%c%c%c%c", (char) (buffer[i] >> 24),
35
                        (char) (buffer[i] >> 16 & 0xff),
36
                        (char) (buffer[i] >> 8 & 0xff),
37
                        (char) (buffer[i] >> 0 & 0xff) );
38
  }
39
 
40
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.