Post Go back to editing

RSI_READ

Category: Software

static uint8_t buffer[720*576];

int main()

{

clk_init();

rsi_init();

rsi_setup();

d0_rsi_test(type);

while(1)

{

rsi_write(BUFFER);

rsi_read();

}

}

void rsi_read()

{

int *pRSIReadbuffer =get_rsi_read_buffer_popinter();

int r_cnt=0;int in_cnt=0;int i=0;

for(i=0;i<15;i++in_cnt+=108)

{

RSI_read_multiple_blocks(100,&BUFFER(in_cnt*128),120);

r_cnt+=108;

}

}

uint32_t RSI_Read_multiple_blocks(block_number,*pRead_buff,no_of_blocks)

{

error =0;

error=Sd_mmc_read_mblocks_dma(card_address,block_number,*pReadbuffer,n.blocks);

}

this is  the code i try to read RSI... i didn't understand why  this for loop running only one time  it's suspending on Sd_mmc_rad_mblocks function after SD_MMC_send_Command(SD_MMC_CMD_READ_MULTIPLE_BLOCKS,card_address)

stoping on

"do

{

while(!(*pREG_RSI0 XFRSTAT&BTIM_RSI_XFSTAT_DATABLKEND));

}while(!(*PREG_RSI0xFRSTAT&DATAEND));

please help Me with this code ...