]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - armsrc/appmain.c
fix: Configure MUX to push-pull state
[proxmark3-svn] / 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