X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=drv%2Fbuzzer.c;h=4383ed79e4658415cbe7474286828f57d5e05919;hb=a98a42143f3b9c130a36e59221817fa5260a8322;hp=eaefe075dce76abf4f0fd757ee0635affc0cc90e;hpb=b4e1c52676ca63fb01e49a26a3411838e5277d6a;p=bertos.git diff --git a/drv/buzzer.c b/drv/buzzer.c index eaefe075..4383ed79 100755 --- a/drv/buzzer.c +++ b/drv/buzzer.c @@ -17,6 +17,12 @@ /*#* *#* $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. + *#* *#* Revision 1.15 2005/06/27 21:25:50 bernie *#* Modularize hardware access; Port to new timer interface. *#* @@ -39,12 +45,10 @@ *#* Use new AVR port pin names. *#*/ +#include "buzzer.h" #include -#include - #include -#include #include @@ -145,13 +149,12 @@ void buz_repeat_stop(void) /*! - * Initialize buzzer + * Initialize buzzer. */ void buz_init(void) { - BUZZER_INIT; - BUZZER_HW_INIT; - /* Inizializza software interrupt */ + + /* Init software interrupt. */ timer_set_event_softint(&buz_timer, (Hook)buz_softint, 0); }