X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=drv%2Fbuzzer.c;h=a4301a3df1a2c703dc1d4d29ca6c2ff57c42fe9b;hb=78af5b91002a94c63e33d1c6ccb6017b9362cb09;hp=810dd8e889f5b9fb78adbad4665b317620f120c2;hpb=242028fd1c37f6f62eeec094105cd28b41065ef0;p=bertos.git diff --git a/drv/buzzer.c b/drv/buzzer.c index 810dd8e8..a4301a3d 100755 --- a/drv/buzzer.c +++ b/drv/buzzer.c @@ -1,8 +1,8 @@ /*! * \file * * @@ -13,33 +13,39 @@ * \brief Buzzer driver */ -/* - * $Log$ - * Revision 1.7 2004/08/24 16:53:43 bernie - * Add missing headers. - * - * Revision 1.6 2004/06/07 18:10:06 aleph - * Remove free pool of timers; use user-provided Timer structure instead - * - * Revision 1.5 2004/06/07 15:54:23 aleph - * Update to new event.h naming - * - * Revision 1.4 2004/06/06 16:09:22 bernie - * Reformat (from project_ks). - * - * Revision 1.3 2004/06/03 11:27:09 bernie - * Add dual-license information. - * - * Revision 1.2 2004/05/23 18:21:53 bernie - * Trim CVS logs and cleanup header info. - * - */ +/*#* + *#* $Log$ + *#* Revision 1.9 2004/09/14 21:01:25 bernie + *#* Use new AVR port pin names. + *#* + *#* Revision 1.8 2004/08/25 14:12:08 rasky + *#* Aggiornato il comment block dei log RCS + *#* + *#* Revision 1.7 2004/08/24 16:53:43 bernie + *#* Add missing headers. + *#* + *#* Revision 1.6 2004/06/07 18:10:06 aleph + *#* Remove free pool of timers; use user-provided Timer structure instead + *#* + *#* Revision 1.5 2004/06/07 15:54:23 aleph + *#* Update to new event.h naming + *#* + *#* Revision 1.4 2004/06/06 16:09:22 bernie + *#* Reformat (from project_ks). + *#* + *#* Revision 1.3 2004/06/03 11:27:09 bernie + *#* Add dual-license information. + *#* + *#* Revision 1.2 2004/05/23 18:21:53 bernie + *#* Trim CVS logs and cleanup header info. + *#* + *#*/ #include "buzzer.h" #include -#include #include +#include #include #include @@ -58,7 +64,7 @@ #elif defined(__AVR__) - #define IS_BUZZER_ON (PORTG & BV(PORTG0)) + #define IS_BUZZER_ON (PORTG & BV(PG0)) /*! * Buzzer manipulation macros @@ -71,7 +77,7 @@ do { \ cpuflags_t _flags; \ DISABLE_IRQSAVE(_flags); \ - PORTG |= BV(PORTG0); \ + PORTG |= BV(PG0); \ ENABLE_IRQRESTORE(_flags); \ } while (0) @@ -79,7 +85,7 @@ do { \ cpuflags_t _flags; \ DISABLE_IRQSAVE(_flags); \ - PORTG &= ~BV(PORTG0); \ + PORTG &= ~BV(PG0); \ ENABLE_IRQRESTORE(_flags); \ } while (0) @@ -87,8 +93,8 @@ do { \ cpuflags_t _flags; \ DISABLE_IRQSAVE(_flags); \ - PORTG &= ~BV(PORTG0); \ - DDRG |= BV(PORTG0); \ + PORTG &= ~BV(PG0); \ + DDRG |= BV(PG0); \ ENABLE_IRQRESTORE(_flags); \ } while (0)