]> git.zerfleddert.de Git - proxmark3-svn/commitdiff
Update appmain.c iceman1001-patch-1 566/head
authorIceman <iceman@iuse.se>
Sun, 11 Feb 2018 16:32:53 +0000 (17:32 +0100)
committerGitHub <noreply@github.com>
Sun, 11 Feb 2018 16:32:53 +0000 (17:32 +0100)
remove redundant code.

armsrc/appmain.c

index bfab8eb626e6857f81d9be79a2923b325041c39d..507cc6aea85188d23945a6ac5778edd7ff796701 100644 (file)
@@ -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)
Impressum, Datenschutz