]> git.zerfleddert.de Git - proxmark3-svn/commitdiff
fix: Configure MUX to push-pull state
authorIceman <iceman@iuse.se>
Wed, 7 Feb 2018 18:39:04 +0000 (19:39 +0100)
committerGitHub <noreply@github.com>
Wed, 7 Feb 2018 18:39:04 +0000 (19:39 +0100)
armsrc/appmain.c

index 76eda19edcf39ed0a168a3630b6ae73bd4aa2407..bfab8eb626e6857f81d9be79a2923b325041c39d 100644 (file)
@@ -1408,6 +1408,19 @@ void  __attribute__((noreturn)) AppMain(void)
        // Reset SSC
        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);
Impressum, Datenschutz