Remove unneeded macros.
authorbatt <batt@38d2e660-2303-0410-9eaa-f027e97ec537>
Sat, 10 Oct 2009 12:56:32 +0000 (12:56 +0000)
committerbatt <batt@38d2e660-2303-0410-9eaa-f027e97ec537>
Sat, 10 Oct 2009 12:56:32 +0000 (12:56 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3070 38d2e660-2303-0410-9eaa-f027e97ec537

bertos/hw/hw_afsk.h

index e31c5bfd67077721f9f4737e25ef1597b0da8c0e..6737edb4f2eba0300ad3cab34fc538c800f444a4 100644 (file)
         */
        #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 <stdio.h>
        #include <cfg/compiler.h>
 
        /* 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)
        #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) */