Main Page   Class Hierarchy   Alphabetical List   Data Structures   File List   Data Fields   Globals  

dpeek.c File Reference

#include <stdio.h>
#include <stdlib.h>
#include <signal.h>
#include "pmac.h"

Include dependency graph for dpeek.c:

Include dependency graph

Go to the source code of this file.

Functions

void handler (int sig)
int main (int argc, char **argv)

Variables

int done = 0


Function Documentation

void handler int    sig
 

Definition at line 9 of file dpeek.c.

00010 {
00011   done = 1;
00012 }

int main int    argc,
char **    argv
 

Definition at line 14 of file dpeek.c.

00015 {
00016   int n;
00017   static char syntax[] = "syntax:  %s <index>\n";
00018 
00019   /* get DP RAM */
00020   pmac_init();
00021 
00022   if (argc != 2)
00023   {
00024     printf(syntax, argv[0]);
00025     exit(1);
00026   }
00027 
00028   if (sscanf(argv[1], "%d", &n) != 1)
00029   {
00030     printf(syntax, argv[0]);
00031     exit(1);
00032   }
00033 
00034   while (!done)
00035   {
00036     printf("%X\r", read_pmac_uint32(n));
00037   }
00038   putchar('\n');
00039 
00040   pmac_exit();
00041 
00042   exit(0);
00043 }


Variable Documentation

int done = 0 [static]
 

Definition at line 7 of file dpeek.c.


Generated on Sun Dec 2 15:57:08 2001 for rcslib by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001