From 496cad0deb29dc93724f80b399a8198c102153ac Mon Sep 17 00:00:00 2001 From: bernie Date: Fri, 10 Feb 2006 12:30:18 +0000 Subject: [PATCH] Push interrupt protection inside hw module. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@497 38d2e660-2303-0410-9eaa-f027e97ec537 --- drv/buzzer.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) 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); } -- 2.34.1