X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fflash%2Fcommon.h;h=69f60d9a34ac7159d809f904a35c1d354379ae5b;hb=c9d40366ad55ea3a83f2ff438aab1e62da653169;hp=95b18d40ce786903c26eb1691257603799a03d46;hpb=1e9f8836a1af5b35b5950a24b8f19b38318df532;p=fw%2Fopenocd diff --git a/src/flash/common.h b/src/flash/common.h index 95b18d40c..69f60d9a3 100644 --- a/src/flash/common.h +++ b/src/flash/common.h @@ -12,15 +12,14 @@ * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * - * along with this program; if not, write to the * - * Free Software Foundation, Inc., * - * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * + * along with this program. If not, see . * ***************************************************************************/ -#ifndef FLASH_COMMON_H -#define FLASH_COMMON_H +#ifndef OPENOCD_FLASH_COMMON_H +#define OPENOCD_FLASH_COMMON_H #include +#include /** * Parses the optional '.index' portion of a flash bank identifier. @@ -46,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 /* FLASH_COMMON_H */ +#endif /* OPENOCD_FLASH_COMMON_H */