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

Add check for reading and set address 0x12

parent a22d3b50
No related branches found
No related tags found
No related merge requests found
......@@ -2,7 +2,7 @@ int main(int argc, char *argv[]) {
ecs_open( 0 , 2 ) ;
pcie40_readfee8( 0 , 0x10 ) ;
pcie40_readfee8( 0 , 0x12 ) ;
ecs_close( 0 , 2 ) ;
......
......@@ -24,8 +24,6 @@ int pcie40_readfee8( int dev , int adr) {
ret = ecs_write( dev , SLC_BAR , SLC_WFIFO_ADD , (int) ( data_word_1 & 0xFFFFFFFF ) ) ;
if ( ret != 0 ) return -1 ;
return 0 ;
// Wait for the result to come back
int i ;
for ( i=0 ; i<10 ; i++ ) {
......
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