rename cpuXXX_t to cpu_XXX_t
[bertos.git] / bertos / drv / buzzer.c
index 86e1c01ce2d50774813cc619f59fdb1c3ac8f3df..6d74fcc4be2aaba98a80fcf13a484da32d526540 100644 (file)
@@ -92,7 +92,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 +127,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 +155,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);
 }