// Download the fpga image starting at current stream position with length FpgaImageLen bytes
static void DownloadFPGA(int bitstream_version, int FpgaImageLen, z_streamp compressed_fpga_stream, uint8_t *output_buffer)
{
-
- Dbprintf("DownloadFPGA(len: %d)", FpgaImageLen);
-
int i=0;
AT91C_BASE_PIOA->PIO_OER = GPIO_FPGA_ON;
}
inflateEnd(&compressed_fpga_stream);
+
+ BigBuf_free();
}
HIGH(whichGpio);
}
+
+void Fpga_print_status(void)
+{
+ Dbprintf("Fgpa");
+ if(downloaded_bitstream == FPGA_BITSTREAM_HF) Dbprintf(" mode.............HF");
+ else if(downloaded_bitstream == FPGA_BITSTREAM_LF) Dbprintf(" mode.............LF");
+ else Dbprintf(" mode.............%d", downloaded_bitstream);
+}