X-Git-Url: http://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/5cd9ec01e0d6594f7f0f5869f116d8816047d4cb..55acbb2a3903f7940d0db5fae2e8f4fdab51d1b8:/armsrc/apps.h diff --git a/armsrc/apps.h b/armsrc/apps.h index 5468a977..4c218d0f 100644 --- a/armsrc/apps.h +++ b/armsrc/apps.h @@ -70,6 +70,12 @@ void FpgaGatherVersion(char *dst, int len); void FpgaSetupSsc(void); void SetupSpi(int mode); void FpgaSetupSscDma(uint8_t *buf, int len); +void inline FpgaDisableSscDma(void){ + AT91C_BASE_PDC_SSC->PDC_PTCR = AT91C_PDC_RXTDIS; +} +void inline FpgaEnableSscDma(void){ + AT91C_BASE_PDC_SSC->PDC_PTCR = AT91C_PDC_RXTEN; +} void SetAdcMuxFor(uint32_t whichGpio); // Definitions for the FPGA commands.