From: asterix Date: Mon, 4 Apr 2011 17:33:05 +0000 (+0000) Subject: Fix warnings. X-Git-Tag: 2.7.0~134 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=129ed63547905cc8af531c9f283abd14f0a424a2;p=bertos.git Fix warnings. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4832 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/bertos/drv/dac.h b/bertos/drv/dac.h index 0a6ab0bd..bfa53c31 100644 --- a/bertos/drv/dac.h +++ b/bertos/drv/dac.h @@ -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); }