OpenCores
URL https://opencores.org/ocsvn/pcie_ds_dma/pcie_ds_dma/trunk

Subversion Repositories pcie_ds_dma

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /pcie_ds_dma
    from Rev 54 to Rev 55
    Reverse comparison

Rev 54 → Rev 55

/trunk/soft/linux/application/board_exam/main.cpp
81,8 → 81,6
std ::cout << "Press enter to allocate DMA memory..." << endl;
getchar();
 
int DmaChan = 1;
 
// Check BRDSHELL DMA interface
BRDctrl_StreamCBufAlloc sSCA = {
1, //dir
95,10 → 93,16
 
brd->dma_allocate_memory(dmaChan, &sSCA);
 
brd->dma_set_local_addr(DmaChan, 0x1000);
brd->dma_stop(DmaChan);
brd->dma_reset_fifo(DmaChan);
brd->dma_set_local_addr(dmaChan, 0x1000);
brd->dma_stop(dmaChan);
brd->dma_reset_fifo(dmaChan);
 
brd->brd_reg_poke_dir(0, 0x1, 0x1);
brd->brd_reg_poke_dir(0, 0x1, 0x1);
brd->brd_reg_poke_ind(0, 0xC, 0x1);
brd->brd_reg_poke_ind(0, 0x0, 0x2);
brd->brd_reg_poke_ind(0, 0x0, 0x0);
 
std ::cout << "Press enter to start DMA channel..." << endl;
getchar();
 
121,12 → 125,12
// show data buffers
for(int j=0; j<NUM_BLOCK; j++) {
 
std ::cout << "DMA data buffer " << j << ":" << endl;
fprintf(stdout, "DMA BLOCK %d\n", j);
buffer = (u32*)pBuffers[j];
for(unsigned i=0; i<8; i++) {
std::cout << hex << buffer[i] << " ";
fprintf(stdout, "0x%08X ", buffer[i]);
}
std ::cout << endl;
fprintf(stdout, "\n\n");
}
std::cout << dec << endl;
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.