From 17355e0f696478d8620d0d742c6dc30225aaf6f3 Mon Sep 17 00:00:00 2001 From: Iceman Date: Thu, 30 Nov 2017 08:25:14 +0100 Subject: [PATCH] Update appmain.c It seems a call to FpgaDownloadAndGo() powers the antenna. Solution: Turn off antenna afterwards --- armsrc/appmain.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/armsrc/appmain.c b/armsrc/appmain.c index e292483b..a48ca94d 100644 --- a/armsrc/appmain.c +++ b/armsrc/appmain.c @@ -1397,7 +1397,7 @@ void __attribute__((noreturn)) AppMain(void) LED_A_OFF(); // Init USB device - usb_enable(); + usb_enable(); // The FPGA gets its clock from us from PCK0 output, so set that up. AT91C_BASE_PIOA->PIO_BSR = GPIO_PCK0; @@ -1416,7 +1416,9 @@ void __attribute__((noreturn)) AppMain(void) // Load the FPGA image, which we have stored in our flash. // (the HF version by default) FpgaDownloadAndGo(FPGA_BITSTREAM_HF); - + // turn off antenna + FpgaWriteConfWord(FPGA_MAJOR_MODE_OFF); + StartTickCount(); #ifdef WITH_LCD