projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add x86_64 task switching (to be updated to new-style scheduler).
[bertos.git]
/
drv
/
buzzerled.c
diff --git
a/drv/buzzerled.c
b/drv/buzzerled.c
index 9945cb4eabcbafde85b96c029af859b401e3b556..3e8841c49dfc7c57b1a95954df55dc32fba84366 100755
(executable)
--- a/
drv/buzzerled.c
+++ b/
drv/buzzerled.c
@@
-3,7
+3,7
@@
* <!--
* Copyright 2004 Develer S.r.l. (http://www.develer.com/)
* Copyright 2004 Giovanni Bajo
* <!--
* Copyright 2004 Develer S.r.l. (http://www.develer.com/)
* Copyright 2004 Giovanni Bajo
- * This file is part of DevLib - See
devlib/README
for information.
+ * This file is part of DevLib - See
README.devlib
for information.
* -->
*
* \brief Generic library to handle buzzers and leds
* -->
*
* \brief Generic library to handle buzzers and leds
@@
-27,6
+27,12
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.6 2005/11/04 16:20:02 bernie
+ *#* Fix reference to README.devlib in header.
+ *#*
+ *#* Revision 1.5 2004/12/08 09:43:41 bernie
+ *#* Add a todo item.
+ *#*
*#* Revision 1.4 2004/08/25 14:12:08 rasky
*#* Aggiornato il comment block dei log RCS
*#*
*#* Revision 1.4 2004/08/25 14:12:08 rasky
*#* Aggiornato il comment block dei log RCS
*#*
@@
-71,7
+77,8
@@
void bld_init(void)
void bld_beep(enum BLD_DEVICE device, uint16_t duration)
{
void bld_beep(enum BLD_DEVICE device, uint16_t duration)
{
- struct Timer* t = &timers[device];
+ // \todo This is not reentrant for the same device. FIXME!
+ struct Timer *t = &timers[device];
timer_set_delay(t, duration);
timer_set_event_softint(t, hook_turn_off, t);
timer_add(t);
timer_set_delay(t, duration);
timer_set_event_softint(t, hook_turn_off, t);
timer_add(t);