CLKDIV-Durchlauf für Sync zum Messen.
authorWintermute <wintermute@hannover.ccc.de>
Sun, 13 Oct 2013 02:25:22 +0000 (04:25 +0200)
committerWintermute <wintermute@hannover.ccc.de>
Sun, 13 Oct 2013 02:25:22 +0000 (04:25 +0200)
badge/main.c

index cb7966b..5f7fde3 100644 (file)
@@ -203,11 +203,19 @@ int main(void)
   badge_init();
 #endif
 
   badge_init();
 #endif
 
-#ifdef HOB_REV2
-  gpioSetValue(HOB_PORT(HOB_LED_LEFT), HOB_PIN(HOB_LED_LEFT), 1);
-  systickDelay(1000);
-  gpioSetValue(HOB_PORT(HOB_LED_RIGHT), HOB_PIN(HOB_LED_RIGHT), 1);
-#endif
+  for(uint8_t i = 1; ; ++i) {
+    badge_framebuffer fb = { { { 0 } } };
+
+    fb.data[2][86] = 0xff;
+    fb.data[4][86] = 0xff;
+    for(uint8_t j = 0; j < i; j += 3) {
+      fb.data[3][j / 3] = 0xff;
+    }
+
+    SCB_CLKOUTCLKDIV = i;
+    badge_framebuffer_flush(&fb);
+    systickDelay(200);
+  }
 
   {
     //    f_mkfs(0, 1, 0);
 
   {
     //    f_mkfs(0, 1, 0);
This page took 0.023519 seconds and 4 git commands to generate.