Update appmain.c

FIX: start up,MUXSEL_HIPKD(PA19),MUXSEL_LOPKD(PA20) are floating state. Should adapt FPGA image aswell.
This commit is contained in:
Iceman 2018-02-07 12:11:48 +01:00 committed by GitHub
commit 0ac47a5a22
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1408,6 +1408,12 @@ void __attribute__((noreturn)) AppMain(void)
// Reset SSC
AT91C_BASE_SSC->SSC_CR = AT91C_SSC_SWRST;
// set pins LOW
LOW(GPIO_MUXSEL_HIPKD);
LOW(GPIO_MUXSEL_LOPKD);
LOW(GPIO_MUXSEL_HIRAW);
LOW(GPIO_MUXSEL_LORAW);
// Load the FPGA image, which we have stored in our flash.
// (the HF version by default)
FpgaDownloadAndGo(FPGA_BITSTREAM_HF);