This commit is contained in:
Iceman 2018-02-11 16:33:03 +00:00 committed by GitHub
commit c3de7d5d33
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View file

@ -1408,6 +1408,9 @@ void __attribute__((noreturn)) AppMain(void)
// Reset SSC
AT91C_BASE_SSC->SSC_CR = AT91C_SSC_SWRST;
// Configure MUX
SetAdcMuxFor(0);
// Load the FPGA image, which we have stored in our flash.
// (the HF version by default)
FpgaDownloadAndGo(FPGA_BITSTREAM_HF);

View file

@ -558,6 +558,7 @@ void SetAdcMuxFor(uint32_t whichGpio)
LOW(GPIO_MUXSEL_LORAW);
LOW(GPIO_MUXSEL_LOPKD);
if (whichGpio > 0)
HIGH(whichGpio);
}