1
0
mirror of git://projects.qi-hardware.com/nn-usb-fpga.git synced 2025-04-21 12:27:27 +03:00
This commit is contained in:
Carlos Camargo
2010-09-12 19:57:04 -05:00
parent d01e4f4f47
commit 0975cd73dc
74 changed files with 23913 additions and 20 deletions

View File

@@ -34,6 +34,7 @@ main ()
JZ_PIO *pio;
int *virt_addr;
// Set GPIOB26 as part of External Memory Controller
pio = jz_gpio_map (CS2_PORT);
jz_gpio_as_func (pio, CS2_PIN, 0);
@@ -51,9 +52,10 @@ main ()
printf ("Writing Memory..\n");
srand48(0x3c);
// srand48(0x3c);
for (i = 0; i < FPGA_SIZE/4; i++)
// virt_addr[i] = (lrand48() & 0x00ff);
virt_addr[i] = (lrand48() & 0x00ff);
printf ("Reading Memory..\n");