sam3 dac: use _type context member only when debug is active.
authoraleph <aleph@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 11 May 2011 10:33:58 +0000 (10:33 +0000)
committeraleph <aleph@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 11 May 2011 10:33:58 +0000 (10:33 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4891 38d2e660-2303-0410-9eaa-f027e97ec537

bertos/cpu/cortex-m3/drv/dac_sam3.c

index b10ff62c9e56c7991a9d10c5418d3289f8d28bb6..42e9e9a29d4a3c8bdb0fa2f8ba875314176fd64b 100644 (file)
@@ -222,7 +222,7 @@ void dac_init(struct Dac *dac)
        dac->ctx.isFinished = sam3x_dac_isFinished;
        dac->ctx.start = sam3x_dac_start;
        dac->ctx.stop = sam3x_dac_stop;
-       dac->ctx._type = DAC_SAM3X;
+       DB(dac->ctx._type = DAC_SAM3X;)
        dac->hw = &dac_hw;
 
        /* Clock DAC peripheral */