From: bernie Date: Fri, 10 Feb 2006 12:30:18 +0000 (+0000) Subject: Push interrupt protection inside hw module. X-Git-Tag: 1.0.0~744 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=496cad0deb29dc93724f80b399a8198c102153ac;p=bertos.git Push interrupt protection inside hw module. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@497 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/drv/buzzer.c b/drv/buzzer.c index fd478a6b..4383ed79 100755 --- a/drv/buzzer.c +++ b/drv/buzzer.c @@ -17,6 +17,9 @@ /*#* *#* $Log$ + *#* Revision 1.17 2006/02/10 12:30:18 bernie + *#* Push interrupt protection inside hw module. + *#* *#* Revision 1.16 2005/11/04 16:19:33 bernie *#* buz_init(): Restore IRQ protection as in project_bko. *#* @@ -42,12 +45,10 @@ *#* Use new AVR port pin names. *#*/ +#include "buzzer.h" #include -#include - #include -#include #include @@ -152,13 +153,8 @@ void buz_repeat_stop(void) */ void buz_init(void) { - cpuflags_t flags; - IRQ_SAVE_DISABLE(flags); - BUZZER_HW_INIT; - IRQ_RESTORE(flags); - /* Init software interrupt. */ timer_set_event_softint(&buz_timer, (Hook)buz_softint, 0); }