projects
/
fw
/
openocd
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
flash/stm32h7x: fix FLASH_WPSN_PRG mask used for protection
[fw/openocd]
/
src
/
flash
/
common.h
diff --git
a/src/flash/common.h
b/src/flash/common.h
index 95b18d40ce786903c26eb1691257603799a03d46..69f60d9a34ac7159d809f904a35c1d354379ae5b 100644
(file)
--- 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 *
* 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 <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>
#include <helper/log.h>
+#include <helper/replacements.h>
/**
* Parses the optional '.index' portion of a flash bank identifier.
/**
* 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_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 */