Skip to content

Commit

Permalink
removed strange code from simple cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
sangwoojun committed Mar 5, 2022
1 parent a7e5781 commit 0c69014
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions examples/simple/cpp/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,6 @@ int main(int argc, char** argv) {
printf( "Magic: %x\n", d );
fflush(stdout);

pcie->userWriteWord(0, portid);
pcie->userWriteWord(4, 0xdeadbeef);
pcie->userWriteWord(8, 0xcafef00d);

pcie->userWriteWord(4, 0xdeadbeef);
pcie->userWriteWord(0, 0xcafef00d);

pcie->userWriteWord(12, 0);
pcie->Ioctl(1,0); // refresh link
sleep(1);
for ( int i = 0; i < 8; i++ ) {
printf( "read: %x\n", pcie->userReadWord(i*4) );
//sleep(1);
Expand Down

0 comments on commit 0c69014

Please sign in to comment.