Skip to content
Snippets Groups Projects
Commit 47324d15 authored by Patrick Robbe's avatar Patrick Robbe
Browse files

Merge branch 'dma' into 'master'

Use direct DMA in test software

See merge request belle2-daq-upgrade/software!3
parents 611ad72e 6c375b78
No related branches found
No related tags found
No related merge requests found
......@@ -12,8 +12,8 @@ int main (int argc ,char** argv) {
else printf("SUCCESS: Device opened for ECS\n");
// Read DMA
res = pcie40_b2dmabufferreset( 0 ) ;
unsigned int data[ DMASIZE ] = { 0 } ;
res = pcie40_b2dmabufferread( 0 , data ) ;
unsigned int * data ;
res = pcie40_b2dmapointerread( 0 , &data ) ;
int i = 0 ;
if ( res == 0 ) printf( "DMA Error\n" ) ;
else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment