AESACTL0 |= AESOP_0 | AESCM__ECB | AESCMEN_H ;
for(i=0;i<8;i++)
AESAKEY = KEY;
DMA0CTL = DMADT_0 | DMASRCINCR_3 | DMADSTINCR_3 |DMALEVEL;
DMACTL0 |= DMA0TSEL0 | DMA0TSEL3 | DMA0TSEL1 ;
DMACTL4 |= ROUNDROBIN;
DMA0SA = AESADOUT;
DMA0DA= (unsigned int)b;
DMA0SZ = 8; // Block size
DMA0CTL |= DMAEN; // Enable DMA0
DMA1CTL = DMADT_0 | DMASRCINCR_3 | DMADSTINCR_3 | DMALEVEL; // Rpt, inc
DMACTL0 |= DMA1TSEL2 | DMA1TSEL3 ;
DMA0SA=(unsigned int)a;
DMA0DA= AESADIN;
DMA1SZ = 8; // Block size
DMA1CTL |= DMAEN; // Enable DMA1
AESACTL1 |= 1; //start AES
a和b是两个unsigned int a[8] b[8]数组,哪里有问题为啥不能用,求大神给个例程