X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fdrv%2Fbuzzer.c;h=042d06cc76be47d8f27a054e0f813b38d5b05208;hb=4278d44ef7681c56f4bd16615c3c4d9338112df4;hp=218c0d285f5e4af0e98265f0dbf1ed49092d8937;hpb=4f9af8a775a365099dc2b4b99b0d140dfd721462;p=bertos.git diff --git a/bertos/drv/buzzer.c b/bertos/drv/buzzer.c index 218c0d28..042d06cc 100644 --- a/bertos/drv/buzzer.c +++ b/bertos/drv/buzzer.c @@ -27,22 +27,19 @@ * the GNU General Public License. * * Copyright 2003, 2004, 2005 Develer S.r.l. (http://www.develer.com/) - * Copyright 1999, 2003 Bernardo Innocenti + * Copyright 1999, 2003 Bernie Innocenti * * --> * - * \version $Id$ - * * \brief Buzzer driver (implementation) * - * \version $Id$ - * \author Bernardo Innocenti + * \author Bernie Innocenti * \author Francesco Sacchi */ #include "buzzer.h" -#include "hw_buzzer.h" +#include "hw/hw_buzzer.h" #include #include @@ -92,7 +89,7 @@ static void buz_softint(void) */ void buz_beep(mtime_t time) { - cpuflags_t flags; + cpu_flags_t flags; IRQ_SAVE_DISABLE(flags); /* Remove the software interrupt if it was already queued */ @@ -127,7 +124,7 @@ void buz_repeat_start(mtime_t duration, mtime_t interval) */ void buz_repeat_stop(void) { - cpuflags_t flags; + cpu_flags_t flags; IRQ_SAVE_DISABLE(flags); /* Remove the software interrupt if it was already queued */ @@ -155,7 +152,7 @@ void buz_init(void) BUZZER_HW_INIT; /* Init software interrupt. */ - timer_set_event_softint(&buz_timer, (Hook)buz_softint, 0); + timer_setSoftint(&buz_timer, (Hook)buz_softint, 0); MOD_INIT(buzzer); }