repositories
/
des2015.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
skeleton ex10
[des2015.git]
/
mart
/
ex09
/
ex09a1.c
diff --git
a/mart/ex09/ex09a1.c
b/mart/ex09/ex09a1.c
index
fdd2f28
..
faa29fe
100644
(file)
--- a/
mart/ex09/ex09a1.c
+++ b/
mart/ex09/ex09a1.c
@@
-17,9
+17,10
@@
void keyboard_handler(void *arg)
{
RT_INTR intr;
rt_intr_create(&intr, "keyboard handler", KBDIRQ, I_PROPAGATE);
{
RT_INTR intr;
rt_intr_create(&intr, "keyboard handler", KBDIRQ, I_PROPAGATE);
- int k
eypresse
s = 0;
+ int k
p
s = 0;
while(1){
while(1){
- rt_printf("#Keypresses: %d\n", keypresses += rt_intr_wait(&intr, TM_INFINITE));
+ rt_printf("#Kbd interrupt %d\n",
+ kps += rt_intr_wait(&intr, TM_INFINITE));
}
}
}
}