home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Vectronix 2
/
VECTRONIX2.iso
/
FILES_01
/
PC_V11_B.LZH
/
DEMO_PC
/
USERIO.C
< prev
next >
Wrap
C/C++ Source or Header
|
1992-07-22
|
600b
|
38 lines
#include "osbind.h"
#include "f:\dspspar\rev21\tsr\dspbind.h"
long buffer;
char ch;
long gl_val;
long value;
long counter;
receiver(val)
long val;
{
gl_val = val;
}
long transmitter()
{
counter += 10;
return(counter);
}
main()
{
buffer = Malloc(5000L);
Dsp_LoadProg("divdelay.lod",3,buffer);
Dsp_SetVectors(receiver,transmitter);
value = 2;
counter = 0;
printf(" All I/O being done through interrupts\n");
while(ch != 'q')
{
printf("Global value = %D\n",gl_val);
ch = Bconin(2);
}
Dsp_RemoveInterrupts(3);
}