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

Use direct DMA in test software

parent 399f68b7
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