OOStuBS - Technische Informatik II (TI-II)
2.4
Hauptseite
Zusätzliche Informationen
Klassen
Dateien
Auflistung der Dateien
Datei-Elemente
src
device
watch.cc
gehe zur Dokumentation dieser Datei
1
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\
2
* Technische Informatik II *
3
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
4
* *
5
* W A T C H *
6
* *
7
\* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
8
9
/* * * * * * * * * * * * * * * * * * * * * * * * *\
10
# INCLUDES #
11
\* * * * * * * * * * * * * * * * * * * * * * * * */
12
13
#include "
device/watch.h
"
14
#include "
object/imanager.h
"
15
#include "
object/scheduler.h
"
16
17
/* * * * * * * * * * * * * * * * * * * * * * * * *\
18
# METHODS #
19
\* * * * * * * * * * * * * * * * * * * * * * * * */
20
21
void
Watch::windup
(
unsigned
int
ms){
22
this->
interval
(ms);
23
iManager
.
assign
(
InterruptManager::timer
, *
this
);
24
}
25
26
void
Watch::trigger
(){
27
scheduler
.preempt();
28
}
Erzeugt am Mon Jun 30 2014 07:13:28 für OOStuBS - Technische Informatik II (TI-II) von
1.8.1.2