From 0c9b68b9e857811995d17e80b9c6cbf8d4b9502c Mon Sep 17 00:00:00 2001 From: Iceman Date: Sun, 11 Feb 2018 17:32:53 +0100 Subject: [PATCH 1/1] Update appmain.c remove redundant code. --- armsrc/appmain.c | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/armsrc/appmain.c b/armsrc/appmain.c index bfab8eb6..507cc6ae 100644 --- a/armsrc/appmain.c +++ b/armsrc/appmain.c @@ -1409,23 +1409,7 @@ void __attribute__((noreturn)) AppMain(void) AT91C_BASE_SSC->SSC_CR = AT91C_SSC_SWRST; // Configure MUX - AT91C_BASE_PIOA->PIO_OER = - GPIO_MUXSEL_HIPKD | - GPIO_MUXSEL_LOPKD | - GPIO_MUXSEL_LORAW | - GPIO_MUXSEL_HIRAW; - - AT91C_BASE_PIOA->PIO_PER = - GPIO_MUXSEL_HIPKD | - GPIO_MUXSEL_LOPKD | - GPIO_MUXSEL_LORAW | - GPIO_MUXSEL_HIRAW; - - // set pins LOW - LOW(GPIO_MUXSEL_HIPKD); - LOW(GPIO_MUXSEL_LOPKD); - LOW(GPIO_MUXSEL_HIRAW); - LOW(GPIO_MUXSEL_LORAW); + SetAdcMuxFor(0); // Load the FPGA image, which we have stored in our flash. // (the HF version by default) -- 2.39.5