Fix warnings.
authorasterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537>
Mon, 4 Apr 2011 17:33:05 +0000 (17:33 +0000)
committerasterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537>
Mon, 4 Apr 2011 17:33:05 +0000 (17:33 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4832 38d2e660-2303-0410-9eaa-f027e97ec537

bertos/drv/dac.h

index 0a6ab0bdb9e130923fe79c09eb29750b8265a697..bfa53c316579f56e0edf5d246f5f44d1b6a53daa 100644 (file)
@@ -77,7 +77,7 @@ typedef struct DacContext
        DmaConversionIsFinished_t isFinished;
        DmaStartStreamingFunc_t start;
        DmaStopFunc_t stop;
-       DmaCallbackFunc_t callback;
+       DmaCallbackFunc_t *callback;
        size_t slice_len;
 
        DB(id_t _type);
@@ -138,7 +138,7 @@ INLINE void dac_dmaStartStreaming(Dac *dac, void *buf, size_t len, size_t slice_
        ASSERT(callback);
 
        dac->ctx.callback = callback;
-       dac->ctx.slicelen = slice_len;
+       dac->ctx.slice_len = slice_len;
        dac->ctx.start(dac, buf, len, slice_len);
 }