if((tlen-bytestransferred)<SD_HALFFIFOBYTES)//不够32字节了 { restwords=((tlen-bytestransferred)%4==0)?((tlen-bytestransferred)/4)

(tlen-bytestransferred)/4+1); for(count=0;count<restwords;count++,tempbuff++,bytestransferred+=4) { SDIO_WriteData(*tempbuff); } }else { for(count=0;count<8;count++) { SDIO_WriteData(*(tempbuff+count)); } tempbuff+=8; bytestransferred+=32; }
bytestransferred为什么要加32??
一周热门 更多>