]> git.gag.com Git - fw/openocd/blobdiff - src/flash/nor/driver.h
flash/nor: consolidate flash protect/protect_check
[fw/openocd] / src / flash / nor / driver.h
index e7b3234439d73f13ff39c7d7a54781ad487fd2d3..ef69a0f424f2d3e7c2ab979cd9bb60254e6ead13 100644 (file)
@@ -109,6 +109,8 @@ struct flash_driver {
        /**
         * Bank/sector protection routine (target-specific).
         *
+        * If protection is not implemented, set method to NULL
+        *
         * When called, the driver should enable/disable protection
         * for MINIMUM the range covered by first..last sectors
         * inclusive. Some chips have alignment requirements will
@@ -178,6 +180,8 @@ struct flash_driver {
         * flash_sector_s::is_protected field for each of the flash
         * bank's sectors.
         *
+        * If protection is not implemented, set method to NULL
+        *
         * @param bank - the bank to check
         * @returns ERROR_OK if successful; otherwise, an error code.
         */