]> git.sur5r.net Git - openocd/blobdiff - src/flash/common.h
flash/nor: handle flash write alignment/padding in the infrastructure
[openocd] / src / flash / common.h
index 5360aae2f799398f82d0c693bd7d67f303ede4bc..4244f1360647c684aae958ee17c45213c53127b8 100644 (file)
@@ -15,8 +15,8 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef FLASH_COMMON_H
-#define FLASH_COMMON_H
+#ifndef OPENOCD_FLASH_COMMON_H
+#define OPENOCD_FLASH_COMMON_H
 
 #include <helper/log.h>
 
@@ -44,5 +44,6 @@ bool flash_driver_name_matches(const char *name, const char *expected);
 #define ERROR_FLASH_SECTOR_NOT_ERASED          (-906)
 #define ERROR_FLASH_BANK_NOT_PROBED                    (-907)
 #define ERROR_FLASH_OPER_UNSUPPORTED           (-908)
+#define ERROR_FLASH_PROTECTED                  (-909)
 
-#endif /* FLASH_COMMON_H */
+#endif /* OPENOCD_FLASH_COMMON_H */