mirror of
https://github.com/mist-devel/mist-firmware.git
synced 2026-02-03 06:50:45 +00:00
esa11: fpga.c fix -> leave SPI lines in useable state for user_io.c
and for xilinx load default bitstream X7A102T.BIN
This commit is contained in:
6
fpga.c
6
fpga.c
@@ -155,7 +155,7 @@ RAMFUNC unsigned char ConfigureFpga(char *name)
|
||||
|
||||
if(!name)
|
||||
// name = "CORE BIN";
|
||||
name = "XESM38 BIN";
|
||||
name = "X7A102T BIN";
|
||||
|
||||
// open bitstream file
|
||||
if (FileOpen(&file, name) == 0)
|
||||
@@ -209,8 +209,8 @@ RAMFUNC unsigned char ConfigureFpga(char *name)
|
||||
}
|
||||
while (t < n);
|
||||
|
||||
// disable outputs
|
||||
*AT91C_PIOA_ODR = XILINX_CCLK | XILINX_DIN | XILINX_PROG_B;
|
||||
// return outputs to a state suitable for user_io.c
|
||||
*AT91C_PIOA_SODR = XILINX_CCLK | XILINX_DIN | XILINX_PROG_B;
|
||||
|
||||
iprintf("]\r");
|
||||
iprintf("FPGA bitstream loaded\r");
|
||||
|
||||
Reference in New Issue
Block a user