diff --git a/src/cfiflash.h b/src/cfiflash.h index 5150d5b..ba4a020 100644 --- a/src/cfiflash.h +++ b/src/cfiflash.h @@ -13,7 +13,9 @@ #define SR_BIT_ISMS 0x00800080 #define CFI_IS_ERROR(e) ((e & CFI_ERR_BASE) == CFI_ERR_BASE) -#define CFI_ERR_BASE (0x80000000 + 0x00100000) +#ifndef CFI_ERR_BASE +#define CFI_ERR_BASE (0x80000000) +#endif #define CFI_ERR_GENERAL (CFI_ERR_BASE + 0) #define CFI_ERR_NOTFOUND (CFI_ERR_BASE + 1) #define CFI_ERR_INVPARAM (CFI_ERR_BASE + 2)