]> cvs.zerfleddert.de Git - proxmark3-svn/blobdiff - armsrc/pcf7931.c
CHG: code clean up. Have some questions regarding the CopyVikingTo method. The...
[proxmark3-svn] / armsrc / pcf7931.c
index 2312795bef38ad8d5721099a6a9d8c9235aee3b9..0dba4fe3e00066db093b9fe4639a4b46f503383b 100644 (file)
@@ -1,4 +1,8 @@
+#include "proxmark3.h"
+#include "apps.h"
+#include "lfsampling.h"
 #include "pcf7931.h"
+#include "string.h"
 
 #define T0_PCF 8 //period for the pcf7931 in us
 #define ALLOC 16
@@ -264,7 +268,7 @@ void ReadPCF7931() {
        }
        Dbprintf("-----------------------------------------");
 
-       return ;
+       cmd_send(CMD_ACK,0,0,0,0,0);
 }
 
 
@@ -432,18 +436,13 @@ void SendCmdPCF7931(uint32_t * tab){
                while(tempo !=  tab[u+2]){
                        tempo = AT91C_BASE_TC0->TC_CV;
                }
-
-
        }
 
        LED_A_OFF();
        FpgaWriteConfWord(FPGA_MAJOR_MODE_OFF);
        SpinDelay(200);
 
-
        AT91C_BASE_TC0->TC_CCR = AT91C_TC_CLKDIS; // timer disable
-       DbpString("FINISH !");
-       DbpString("(Could be usefull to send the same trame many times)");
        LED(0xFFFF, 1000);
 }
 
Impressum, Datenschutz