TempleOSTS_130315.ISO
This commit is contained in:
1 parent
e57428affb
commit
17b71f1a2d
958 files changed
+26043
-15907
No files matched your search
@@ -0,0 +1,24 @@
|
||||
interrupt U0 BeepOn()
|
||||
{
|
||||
IntEOI; //signal end of interrupt
|
||||
Snd(100);
|
||||
}
|
||||
|
||||
interrupt U0 BeepOff()
|
||||
{
|
||||
IntEOI;
|
||||
Snd(0);
|
||||
}
|
||||
|
||||
U0 IntTest()
|
||||
{
|
||||
//Modify interrupt descriptor table
|
||||
//for CPU #1.
|
||||
IntEntrySet(I_USER,&BeepOn,IDTET_TRAP);
|
||||
IntEntrySet(I_USER+1,&BeepOff,IDTET_TRAP);
|
||||
MPInt(I_USER,1);
|
||||
Sleep(1000);
|
||||
MPInt(I_USER+1,1);
|
||||
}
|
||||
|
||||
IntTest;
|
||||
Reference in new issue
Block a user