X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=tos%2Fchips%2Fmsp430%2Fadc12%2FMsp430Adc12DMAP.nc;h=a07d38cfa006e9225cb0ad0ee0ea7c001b122848;hb=f54b823a562c351f3b064fe24e234d7c8310702b;hp=bd8c8a0acc98a0302810ef5b1103acc29bf81dca;hpb=e1d9284c4679dfd985c87a41780c08bf3baf2e7a;p=tinyos-2.x.git diff --git a/tos/chips/msp430/adc12/Msp430Adc12DMAP.nc b/tos/chips/msp430/adc12/Msp430Adc12DMAP.nc index bd8c8a0a..a07d38cf 100644 --- a/tos/chips/msp430/adc12/Msp430Adc12DMAP.nc +++ b/tos/chips/msp430/adc12/Msp430Adc12DMAP.nc @@ -92,7 +92,7 @@ implementation DMA_REPEATED_SINGLE_TRANSFER, DMA_TRIGGER_ADC12IFGx, DMA_EDGE_SENSITIVE, - ADC12MEM, + (void*) ADC12MEM_, buf, length, DMA_WORD, @@ -127,7 +127,7 @@ implementation async command error_t SingleChannel.getData[uint8_t id]() { if (mode == MULTIPLE_SINGLE_AGAIN) - call DMAChannel.repeatTransfer(ADC12MEM, buffer, numSamples); + call DMAChannel.repeatTransfer((void*) ADC12MEM_, buffer, numSamples); return call SubSingleChannel.getData[id](); } @@ -154,7 +154,7 @@ implementation next = signal SingleChannel.multipleDataReady[client](buffer, numSamples); if (oldMode == MULTIPLE_REPEAT) if (next){ - call DMAChannel.repeatTransfer(ADC12MEM, next, numSamples); + call DMAChannel.repeatTransfer((void*) ADC12MEM_, next, numSamples); call AsyncAdcControl.start[client](); } else call AsyncAdcControl.stop[client]();