From 6f7f176f2b56cd697eb3743f1bef4855317690c1 Mon Sep 17 00:00:00 2001 From: asterix Date: Tue, 20 May 2008 15:57:05 +0000 Subject: [PATCH] Mark as obsolete. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1307 38d2e660-2303-0410-9eaa-f027e97ec537 --- bertos/drv/buzzerled.c | 9 +++++++-- bertos/drv/buzzerled.h | 5 +++++ 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/bertos/drv/buzzerled.c b/bertos/drv/buzzerled.c index 9e82598f..1a22cf08 100644 --- a/bertos/drv/buzzerled.c +++ b/bertos/drv/buzzerled.c @@ -52,10 +52,14 @@ #include "buzzerled.h" +#include #include -static struct Timer timers[NUM_BLDS]; -static bool timer_go[NUM_BLDS]; +#warning FIXME:This drive is obsolete, you must refactor it. + +#if 0 +static struct Timer timers[CONFIG_NUM_BLDS]; +static bool timer_go[CONFIG_NUM_BLDS]; INLINE enum BLD_DEVICE hook_parm_to_device(void* parm) { @@ -96,4 +100,5 @@ void bld_beep_and_wait(enum BLD_DEVICE device, uint16_t duration) timer_delay(duration); bld_set(device, false); } +#endif diff --git a/bertos/drv/buzzerled.h b/bertos/drv/buzzerled.h index 9c0949a7..a9f0b000 100644 --- a/bertos/drv/buzzerled.h +++ b/bertos/drv/buzzerled.h @@ -43,6 +43,9 @@ #include +#warning FIXME:This drive is obsolete, you must refactor it. + +#if 0 /** Include hw_buzzerled.h. We expect hw_buzzerled.h to define enum BLD_DEVICE, which must contain * an enumarator for each device, plus a special symbol NUM_BLDS containing the * number of devices. @@ -91,4 +94,6 @@ void bld_beep(enum BLD_DEVICE device, uint16_t duration); */ void bld_beep_and_wait(enum BLD_DEVICE device, uint16_t duration); +#endif + #endif /* DRV_BUZZERLED_H */ -- 2.25.1