From 9e84fd5b73ae655653d91e1885574a884cac220b Mon Sep 17 00:00:00 2001 From: marcansoft Date: Thu, 4 Mar 2010 05:01:32 +0000 Subject: [PATCH] Fix FMCN setting so it actually matches datasheet 1.5us instead of 1us. 1us is only for fuse programming, not for regular Flash programming. --- include/proxmark3.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/proxmark3.h b/include/proxmark3.h index 97e6bade..b952a174 100644 --- a/include/proxmark3.h +++ b/include/proxmark3.h @@ -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) -- 2.39.5