repositories
/
des2015.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
finished dsl assignment 1
[des2015.git]
/
natanael
/
ex10
/
ex10d1.c
diff --git
a/natanael/ex10/ex10d1.c
b/natanael/ex10/ex10d1.c
index
0b699ba
..
5167f28
100644
(file)
--- a/
natanael/ex10/ex10d1.c
+++ b/
natanael/ex10/ex10d1.c
@@
-27,7
+27,7
@@
void enable_interupt()
// enable port D0
ioperm(0x378, 1, 1);
byte = inb(0x378);
// enable port D0
ioperm(0x378, 1, 1);
byte = inb(0x378);
- byte = byte | 0x
10
; /* hex 10 = 00010000 */
+ byte = byte | 0x
01
; /* hex 10 = 00010000 */
outb(byte, 0x378);
}
outb(byte, 0x378);
}
@@
-53,8
+53,8
@@
void write_RTIMES(char * filename, unsigned int number_of_values,
void send_parallel_port_intrp()
{
void send_parallel_port_intrp()
{
- outb(inb(0x378) & 0x
EF
, 0x378);
- outb(inb(0x378) | 0x
10
, 0x378); /* enable interrupt */
+ outb(inb(0x378) & 0x
FE
, 0x378);
+ outb(inb(0x378) | 0x
01
, 0x378); /* enable interrupt */
}
void do_task(void *arg)
}
void do_task(void *arg)