最近使用MSP430F1612单片机,使用到了内部的DMA,需要将ADC的值通过DMA放到数组中去,使用过程中出现了一个问题,请问哪位大神指导怎么解决的?
定义了一个unsigned int ADC_Result[8]的数组,然后将DMA目的地址设置成改数组所在的地址,代码如下:
DMA2DA = &ADC_Result;
编译的时候,报错,错误为:
Error[Pe513]: a value of type "unsigned short *" cannot be assigned to an entity of type "unsigned short" C:\Users\thinkpad\Desktop\Four-Axis Aircraft\BLDC_Driver_Software_V10\DMA.c 52
请问哪位大神指导,怎么将DMA目的地址设置为数组(以前用过STM32的单片机,他们的DMA可以这样设置)?