diff --git a/armsrc/fpgaloader.c b/armsrc/fpgaloader.c index 03ddd7321..a24c98049 100644 --- a/armsrc/fpgaloader.c +++ b/armsrc/fpgaloader.c @@ -541,14 +541,13 @@ int FpgaGetCurrent() { // log message // if HF, Disable SSC DMA // turn off trace and leds off. -/* + void switch_off() { if (MF_DBGLEVEL > 3) Dbprintf("switch_off"); FpgaWriteConfWord(FPGA_MAJOR_MODE_OFF); - SpinDelay(100); + //SpinDelay(100); if (downloaded_bitstream == FPGA_BITSTREAM_HF ) FpgaDisableSscDma(); set_tracing(false); LEDsoff(); } -*/ \ No newline at end of file diff --git a/armsrc/fpgaloader.h b/armsrc/fpgaloader.h index 38bbcaef4..ededa3579 100644 --- a/armsrc/fpgaloader.h +++ b/armsrc/fpgaloader.h @@ -32,7 +32,8 @@ int FpgaGetCurrent(); #define FpgaEnableSscDma(void) AT91C_BASE_PDC_SSC->PDC_PTCR = AT91C_PDC_RXTEN; void SetAdcMuxFor(uint32_t whichGpio); -//extern void switch_off(); +// extern and generel turn off the antenna method +extern void switch_off(); // definitions for multiple FPGA config files support #define FPGA_BITSTREAM_MAX 2 // the total number of FPGA bitstreams (configs)