]> rtime.felk.cvut.cz Git - fpga/lx-cpu1/lx-rocon.git/blobdiff - sw/app/rocon/appl_fpga.c
RoCoN: ensure that all EIM parameters for FPGA are setup.
[fpga/lx-cpu1/lx-rocon.git] / sw / app / rocon / appl_fpga.c
index 754dae27f888fe1d46e3c7f46f457a180d09c3c4..dde5742ea94b28d7766ab5646c605998ab9e0fb2 100644 (file)
@@ -438,8 +438,12 @@ int fpga_configure()
     {}
     
   /* Use EMC delays obtained through measurement */
-  LPC_EMC->StaticWaitRd0 = 0x07;
-  LPC_EMC->StaticWaitWr0 = 0x03;
+  LPC_EMC->StaticWaitWr0 =   0x03;
+  LPC_EMC->StaticWaitWen0 =  0x01;
+  LPC_EMC->StaticWaitRd0 =   0x07;
+  LPC_EMC->StaticWaitPage0 = 0x07;
+  LPC_EMC->StaticWaitOen0 =  0x00;
+  LPC_EMC->StaticWaitTurn0 = 0x02;
 
   /* Lift the reset */
   hal_gpio_direction_output(XC_INIT_PIN, 1);