]> cvs.zerfleddert.de Git - proxmark3-svn/commitdiff
Fix FMCN setting so it actually matches datasheet
authormarcansoft <marcansoft@ef4ab9da-24cd-11de-8aaa-f3a34680c41f>
Thu, 4 Mar 2010 05:01:32 +0000 (05:01 +0000)
committermarcansoft <marcansoft@ef4ab9da-24cd-11de-8aaa-f3a34680c41f>
Thu, 4 Mar 2010 05:01:32 +0000 (05:01 +0000)
1.5us instead of 1us. 1us is only for fuse programming, not for regular
Flash programming.

include/proxmark3.h

index 97e6badea2118090d788eb4e8f147873b4e66f48..b952a17479a4abf8d795b532665aa9cc392a4a93 100644 (file)
@@ -44,7 +44,7 @@
 #define MC_FLASH_STATUS_LOCKE                                  (1<<2)
 #define MC_FLASH_STATUS_PROGE                                  (1<<3)
 #define MC_FLASH_MODE_FLASH_WAIT_STATES(x)             ((x)<<8)
-#define MC_FLASH_MODE_MASTER_CLK_IN_MHZ(x)             ((x)<<16)
+#define MC_FLASH_MODE_MASTER_CLK_IN_MHZ(x)             (((x)+((x)/2))<<16)
 #define MC_FLASH_COMMAND_PAGEN(x)                              ((x)<<8)
 
 #define RST_CONTROL_KEY                                                        (0xa5<<24)
Impressum, Datenschutz