peak
authorAlyssa Rosenzweig <alyssa@backtick.town>
Sat, 20 Aug 2016 03:14:01 +0000 (20:14 -0700)
committerAlyssa Rosenzweig <alyssa@backtick.town>
Sat, 20 Aug 2016 03:14:01 +0000 (20:14 -0700)
arm_monitor.c

index c1b6c1d..f066a38 100644 (file)
@@ -28,16 +28,12 @@ void monitor_start() {
        printf("Starting IPC monitor ...\n");\r
 \r
         /* enable IRQ */\r
-        mmio_write32(0x7E00B9BC, 1);\r
+        mmio_write32(0x7E00B9BC, 0x1);\r
 \r
         for(;;) {\r
             for(unsigned int i = 0; i < 99999; ++i);\r
 \r
-            if( (mmio_read32(0x7E00B9B8) & 0x40000000) == 0) {\r
-                putchar('-');\r
-            } else {\r
-                putchar('!');\r
-            }\r
+            printf("  --- %X\n", mmio_read32(0x7E00B9B0));\r
         }\r
 //     __asm__ __volatile__ ("sleep" :::);\r
 }\r
This page took 0.025513 seconds and 4 git commands to generate.