Memory access module finished
[allwinner_tvout_manipulator.git] / src / main.c
index 022b16e..32a5ae6 100644 (file)
@@ -1,8 +1,13 @@
 #include <stdio.h>
 #include <stdlib.h>
+#include "devmem2.h"
 
 int main()
 {
-    printf("Hello world!\n");
+    unsigned long readfrommemory = 0;
+
+    readmem("0x01E00130", 'w', readfrommemory);
+
+    printf("Value: 0x%X", readfrommemory);
     return 0;
 }