This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

am335x在使用starterware裸跑时如何对MMC的SD_DATA寄存器进行读写?



  向下面这样写入SD_DATA是否正确?

while (!((HWREG(SOC_MMCHS_1_REGS + MMCHS_STAT))& (HS_MMCSD_STAT_DATACRCERR|HS_MMCSD_STAT_DATATIMEOUT|HS_MMCSD_STAT_DATABITERR|HS_MMCSD_STAT_TRNFCOMP )))  

 {

   for (count = 0; count < 8; count++)   

   {    

         HWREG(SOC_MMCHS_1_REGS +  MMCHS_DATA) =(*(tempbuff + count));   

    }   

    tempbuff += 8;

  }