projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update for new emulator.
[bertos.git]
/
drv
/
kbd.c
diff --git
a/drv/kbd.c
b/drv/kbd.c
index e231536524f2397cfb7c3a316f2a76b3417c75bf..f85f897c2b3c48cc60efb49d8374946f168bb78b 100755
(executable)
--- a/
drv/kbd.c
+++ b/
drv/kbd.c
@@
-17,6
+17,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.4 2006/02/24 00:27:14 bernie
+ *#* Use new naming convention for list macros.
+ *#*
*#* Revision 1.3 2006/02/17 21:15:42 bernie
*#* Add MOD_CHECK() checks.
*#*
*#* Revision 1.3 2006/02/17 21:15:42 bernie
*#* Add MOD_CHECK() checks.
*#*
@@
-94,7
+97,7
@@
static void kbd_poll(void)
keymask_t key = kbd_readkeys();
/* Call raw input handlers */
keymask_t key = kbd_readkeys();
/* Call raw input handlers */
- FOREACHNODE(handler, &kbd_rawHandlers)
+ FOREACH
_
NODE(handler, &kbd_rawHandlers)
key = handler->hook(key);
/* If this key was not previously pressed */
key = handler->hook(key);
/* If this key was not previously pressed */
@@
-104,7
+107,7
@@
static void kbd_poll(void)
current_key = key;
/* Call cooked input handlers */
current_key = key;
/* Call cooked input handlers */
- FOREACHNODE(handler, &kbd_handlers)
+ FOREACH
_
NODE(handler, &kbd_handlers)
key = handler->hook(key);
}
}
key = handler->hook(key);
}
}
@@
-221,12
+224,12
@@
void kbd_addHandler(struct KbdHandler *handler)
* Search for the first node whose priority
* is lower than the timer we want to add.
*/
* Search for the first node whose priority
* is lower than the timer we want to add.
*/
- FOREACHNODE(node,list)
+ FOREACH
_
NODE(node,list)
if (node->pri < handler->pri)
break;
/* Enqueue handler in the handlers chain */
if (node->pri < handler->pri)
break;
/* Enqueue handler in the handlers chain */
- INSERTBEFORE(&handler->link, &node->link);
+ INSERT
_
BEFORE(&handler->link, &node->link);
IRQ_RESTORE(flags);
}
IRQ_RESTORE(flags);
}