Refactor BeRTOS to be in his own directory.
[bertos.git] / bertos / drv / buzzer.h
1 /**
2  * \file
3  * <!--
4  * This file is part of BeRTOS.
5  *
6  * Bertos is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
19  *
20  * As a special exception, you may use this file as part of a free software
21  * library without restriction.  Specifically, if other files instantiate
22  * templates or use macros or inline functions from this file, or you compile
23  * this file and link it with other files to produce an executable, this
24  * file does not by itself cause the resulting executable to be covered by
25  * the GNU General Public License.  This exception does not however
26  * invalidate any other reasons why the executable file might be covered by
27  * the GNU General Public License.
28  *
29  * Copyright 2003,2005 Develer S.r.l. (http://www.develer.com/)
30  * Copyright 1999,2003 Bernardo Innocenti <bernie@develer.com>
31  *
32  * -->
33  *
34  * \version $Id$
35  *
36  * \author Bernardo Innocenti <bernie@develer.com>
37  *
38  * \brief Buzzer driver
39  */
40
41 /*#*
42  *#* $Log$
43  *#* Revision 1.10  2006/07/19 12:56:25  bernie
44  *#* Convert to new Doxygen style.
45  *#*
46  *#* Revision 1.9  2005/11/27 23:32:15  bernie
47  *#* Update copyright information.
48  *#*
49  *#* Revision 1.8  2005/11/04 16:20:02  bernie
50  *#* Fix reference to README.devlib in header.
51  *#*
52  *#* Revision 1.7  2005/04/11 19:10:27  bernie
53  *#* Include top-level headers from cfg/ subdir.
54  *#*
55  *#* Revision 1.6  2004/12/08 09:11:53  bernie
56  *#* Rename time_t to mtime_t.
57  *#*
58  *#* Revision 1.5  2004/08/25 14:12:08  rasky
59  *#* Aggiornato il comment block dei log RCS
60  *#*
61  *#* Revision 1.4  2004/08/24 16:53:43  bernie
62  *#* Add missing headers.
63  *#*
64  *#* Revision 1.3  2004/06/03 11:27:09  bernie
65  *#* Add dual-license information.
66  *#*
67  *#* Revision 1.2  2004/05/23 18:21:53  bernie
68  *#* Trim CVS logs and cleanup header info.
69  *#*
70  *#*/
71 #ifndef DRV_BUZZER_H
72 #define DRV_BUZZER_H
73
74 #include <cfg/compiler.h>
75
76 extern void buz_init(void);
77 extern void buz_beep(mtime_t time);
78 extern void buz_repeat_start(mtime_t duration, mtime_t interval);
79 extern void buz_repeat_stop(void);
80
81 #endif /* DRV_BUZZER_H */