Added a nop around the setting of the Flash CS pin.
This increases the time the CS pin is high between sequential bus access. Was a problem on some Revo/AirbotF4 targets. Where the timinig was more critical due to the flash chip used.
This commit is contained in:
parent
c14085a158
commit
a282d723ca
|
@ -51,8 +51,8 @@
|
|||
#define JEDEC_ID_WINBOND_W25Q128 0xEF4018
|
||||
#define JEDEC_ID_MACRONIX_MX25L25635E 0xC22019
|
||||
|
||||
#define DISABLE_M25P16 IOHi(m25p16CsPin)
|
||||
#define ENABLE_M25P16 IOLo(m25p16CsPin)
|
||||
#define DISABLE_M25P16 IOHi(m25p16CsPin); __NOP()
|
||||
#define ENABLE_M25P16 __NOP(); IOLo(m25p16CsPin)
|
||||
|
||||
// The timeout we expect between being able to issue page program instructions
|
||||
#define DEFAULT_TIMEOUT_MILLIS 6
|
||||
|
|
Loading…
Reference in New Issue