Add Microchip SAME51 Curiosity Nano board
[fw/openocd] / src / flash / common.h
index ce26fccd75b39632e9d457ec42128b562a05e221..69f60d9a34ac7159d809f904a35c1d354379ae5b 100644 (file)
@@ -19,6 +19,7 @@
 #define OPENOCD_FLASH_COMMON_H
 
 #include <helper/log.h>
+#include <helper/replacements.h>
 
 /**
  * Parses the optional '.index' portion of a flash bank identifier.
@@ -44,5 +45,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 /* OPENOCD_FLASH_COMMON_H */