DS800C400 fun, improved ROM interface and tinibios
[fw/sdcc] / support / tests / dhrystone / dhry.c
index 7b6cff8b5dc95bcd213d6167ea56307ce2fc05f6..ad11ff831ac3eb80d46c1a10954f1fa12c74ae0e 100644 (file)
@@ -126,15 +126,11 @@ void main(void)
 
 #if defined(SDCC_ds400)
     // Intialize the ROM.
-    if (romInit(1))
+    if (romInit(1, SPEED_2X))
     {
         // We're hosed. romInit will have printed an error, nothing more to do.
         return;
     }
-
-    ClockInit();
-    
-    P5 &= ~4; // LED on.
 #endif    
     
     printf("[dhry]\n");
@@ -162,8 +158,11 @@ void main(void)
 #if DEBUG
     Number_Of_Runs = 1;
 #else
-    // Number_Of_Runs = 32766;
-    Number_Of_Runs = 2048;
+#if defined(SDCC_ds400)    
+    Number_Of_Runs = 10240;
+#else    
+    Number_Of_Runs = 32766;
+#endif    
 #endif    
 
     runTime = clock();