- periodic SPI test
git-svn-id: http://moon:8086/svn/mips@46 a8ebac50-d88d-4704-bea3-6648445a41b3
This commit is contained in:
@@ -91,7 +91,7 @@ void main()
|
||||
*pSpiCtrl = (*pSpiCtrl & 0xFFFFFF00) | 50;
|
||||
*pSpiData = 0x9F000000;
|
||||
*pSpiDataSize = 8;
|
||||
*pSpiXferSize = 8+24;
|
||||
*pSpiXferSize = 8+8*21;
|
||||
*pSpiCtrlStat = SPI_CMD_CTRL_COMMIT;
|
||||
|
||||
sputs("SYS_SPI_CTRL_STAT : ");print_word(*pSpiCtrlStat);sputs("\n");
|
||||
@@ -102,7 +102,11 @@ void main()
|
||||
while(!(*pSpiCtrlStat & SPI_CMD_STAT_DOUTRDY))
|
||||
{
|
||||
}
|
||||
print_word(*pSpiData);sputs("\n");
|
||||
|
||||
do
|
||||
{
|
||||
print_word(*pSpiData);sputs("\n");
|
||||
} while (*pSpiCtrlStat & SPI_CMD_STAT_DOUTRDY);
|
||||
|
||||
sputs("Testing SDRAM (pattern)\n");
|
||||
for (j=0; j < ARRAY_SIZE(test_pattern); j++)
|
||||
|
||||
Reference in New Issue
Block a user