From 5d57564d326be3dc789a616fe3299295683fff07 Mon Sep 17 00:00:00 2001 From: batt Date: Sat, 10 Oct 2009 12:56:32 +0000 Subject: [PATCH] Remove unneeded macros. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3070 38d2e660-2303-0410-9eaa-f027e97ec537 --- bertos/hw/hw_afsk.h | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/bertos/hw/hw_afsk.h b/bertos/hw/hw_afsk.h index e31c5bfd..6737edb4 100644 --- a/bertos/hw/hw_afsk.h +++ b/bertos/hw/hw_afsk.h @@ -85,21 +85,11 @@ */ #define AFSK_DAC_IRQ_STOP(ch) do { (void)ch; /* Implement me */ } while (0) - /** - * Set the next DAC value for channel \a ch. - * This macro is called by afsk_dac_isr() to set the next DAC output value. - * \param ch DAC channel. - * \param val Next DAC output value for channel. - */ - #define AFSK_DAC_SET(ch, val) do { (void)ch; (void)val; } while (0) #else /* (ARCH & ARCH_UNITTEST) */ - #include #include /* For test */ - extern uint32_t data_written; - extern FILE *fp_dac; extern bool afsk_tx_test; #define AFSK_ADC_INIT(ch, ctx) do { (void)ch, (void)ctx; } while (0) @@ -111,13 +101,6 @@ #define AFSK_DAC_INIT(ch, ctx) do { (void)ch, (void)ctx; } while (0) #define AFSK_DAC_IRQ_START(ch) do { (void)ch; afsk_tx_test = true; } while (0) #define AFSK_DAC_IRQ_STOP(ch) do { (void)ch; afsk_tx_test = false; } while (0) - #define AFSK_DAC_SET(ch, _val) \ - do { \ - (void)ch; \ - int8_t val = (_val) - 128; \ - ASSERT(fwrite(&val, 1, sizeof(val), fp_dac) == sizeof(val)); \ - data_written++; \ - } while (0) #endif /* !(ARCH & ARCH_UNITTEST) */ -- 2.25.1