下面这样的代码,基本是从官方例程中copy在更改的
DMA_A0 定义的也是 unsigned int
DMA0SA和ADC12MEM0 都是16 bit 不知道为什么报 warning
[C]
纯文本查看 复制代码
__data16_write_addr((unsigned short) &DMA0SA,(unsigned long) &ADC12MEM0);// __data16_write_addr((unsigned short) &DMA0SA,(unsigned short) &ADC12MEM0); // Source block address __data16_write_addr((unsigned short) &DMA0DA,(unsigned long) &DMA_A0); // Des
tination single addresshttp://bbs.elecfans.com/file://C:%5CUsers%5CAdministrator%5CDocuments%5CTencent%20Files%5C1737831448%5CImage%5CGroup%5C8KR7M0%60G)9Q4CL68ZC%K45T.jpg
改什么?
全都改成int short 好像还是报错
一周热门 更多>