projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Move cfg/config.h to appconfig.h.
[bertos.git]
/
drv
/
buzzer.c
diff --git
a/drv/buzzer.c
b/drv/buzzer.c
index eaefe075dce76abf4f0fd757ee0635affc0cc90e..fd478a6b34db694e1120316573b0a0c2cc654b61 100755
(executable)
--- a/
drv/buzzer.c
+++ b/
drv/buzzer.c
@@
-17,6
+17,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.16 2005/11/04 16:19:33 bernie
+ *#* buz_init(): Restore IRQ protection as in project_bko.
+ *#*
*#* Revision 1.15 2005/06/27 21:25:50 bernie
*#* Modularize hardware access; Port to new timer interface.
*#*
*#* Revision 1.15 2005/06/27 21:25:50 bernie
*#* Modularize hardware access; Port to new timer interface.
*#*
@@
-145,13
+148,17
@@
void buz_repeat_stop(void)
/*!
/*!
- * Initialize buzzer
+ * Initialize buzzer
.
*/
void buz_init(void)
{
*/
void buz_init(void)
{
- BUZZER_INIT;
+ cpuflags_t flags;
+ IRQ_SAVE_DISABLE(flags);
BUZZER_HW_INIT;
BUZZER_HW_INIT;
- /* Inizializza software interrupt */
+
+ IRQ_RESTORE(flags);
+
+ /* Init software interrupt. */
timer_set_event_softint(&buz_timer, (Hook)buz_softint, 0);
}
timer_set_event_softint(&buz_timer, (Hook)buz_softint, 0);
}