OOStuBS - Technische Informatik II (TI-II)
2.4
Hauptseite
Zusätzliche Informationen
Klassen
Dateien
Auflistung der Dateien
Datei-Elemente
include
machine
pic.h
gehe zur Dokumentation dieser Datei
1
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\
2
* Technische Informatik II *
3
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
4
* *
5
* P I C *
6
* *
7
\* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
8
9
#ifndef __pic_include__
10
#define __pic_include__
11
12
/* * * * * * * * * * * * * * * * * * * * * * * * *\
13
# INCLUDES #
14
\* * * * * * * * * * * * * * * * * * * * * * * * */
15
#include "
machine/io_port.h
"
16
17
/* * * * * * * * * * * * * * * * * * * * * * * * *\
18
# CLASSES #
19
\* * * * * * * * * * * * * * * * * * * * * * * * */
45
class
PIC
{
46
private
:
47
IO_Port
ctrl_1
;
48
IO_Port
ctrl_2
;
49
IO_Port
mask_1
;
50
IO_Port
mask_2
;
51
52
public
:
67
enum
Interrupts
{
68
timer
= 32,
69
keyboard
= 33,
70
pic2
= 34,
71
serial2
= 35,
72
serial1
= 36,
73
soundcard
= 37,
74
floppy
= 38,
75
parallelport
= 39,
76
rtc
= 40,
77
misc
= 41,
78
ata4
= 42,
79
ata3
= 43,
80
secondps2
= 44,
81
fpu
= 45,
82
ata1
= 46,
83
ata2
= 47
84
};
85
98
PIC
();
99
101
~PIC
();
102
113
void
allow
(
Interrupts
interrupt);
114
125
void
forbid
(
Interrupts
interrupt);
126
147
void
ack
(
Interrupts
interrupt);
148
};
149
150
#endif
Erzeugt am Mon Jun 30 2014 07:13:28 für OOStuBS - Technische Informatik II (TI-II) von
1.8.1.2