1 ///////////////////////////////////////////////////////////////////////////
2 // Workfile: devmem2_test.c (Implementation)
3 // Author: Daniel Giritzer
5 // Description: Simple Testdriver for the devmem2 module
8 // Copyright (C) 2017, Daniel Giritzer (giri@nwrk.biz)
9 ///////////////////////////////////////////////////////////////////////////
16 unsigned long readfrommemory = 0;
19 writemem("0x01E00130", "0x10140025", 'w');
22 readmem("0x01E00130", 'w', &readfrommemory);
24 //Print read value to stdout
25 printf("Value: 0x%X \n", (unsigned int)readfrommemory);