projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add reg definition for adc driver.
[bertos.git]
/
bertos
/
drv
/
buzzer.c
diff --git
a/bertos/drv/buzzer.c
b/bertos/drv/buzzer.c
index 86e1c01ce2d50774813cc619f59fdb1c3ac8f3df..042d06cc76be47d8f27a054e0f813b38d5b05208 100644
(file)
--- a/
bertos/drv/buzzer.c
+++ b/
bertos/drv/buzzer.c
@@
-31,11
+31,8
@@
*
* -->
*
*
* -->
*
- * \version $Id$
- *
* \brief Buzzer driver (implementation)
*
* \brief Buzzer driver (implementation)
*
- * \version $Id$
* \author Bernie Innocenti <bernie@codewiz.org>
* \author Francesco Sacchi <batt@develer.com>
*/
* \author Bernie Innocenti <bernie@codewiz.org>
* \author Francesco Sacchi <batt@develer.com>
*/
@@
-92,7
+89,7
@@
static void buz_softint(void)
*/
void buz_beep(mtime_t time)
{
*/
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 */
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)
{
*/
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 */
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. */
BUZZER_HW_INIT;
/* Init software interrupt. */
- timer_set
_event_s
oftint(&buz_timer, (Hook)buz_softint, 0);
+ timer_set
S
oftint(&buz_timer, (Hook)buz_softint, 0);
MOD_INIT(buzzer);
}
MOD_INIT(buzzer);
}