[flash_ctrl, sw] Minor update to software flash memory protection
Signed-off-by: Timothy Chen <timothytim@google.com>
[flash_ctrl, sw] clang-format fixes
Signed-off-by: Timothy Chen <timothytim@google.com>
[flash_ctrl, sw] remove unused field
Signed-off-by: Timothy Chen <timothytim@google.com>
diff --git a/sw/device/lib/flash_ctrl.h b/sw/device/lib/flash_ctrl.h
index 381d061..94f1b0e 100644
--- a/sw/device/lib/flash_ctrl.h
+++ b/sw/device/lib/flash_ctrl.h
@@ -31,9 +31,12 @@
/**
* Memory protection configuration options.
+ * Data partitions and Info partitions are handled differently.
*/
typedef struct mp_region {
- /** Which region to program. */
+ /** Which region to program for data partition.
+ Which page to program for info partition.
+ */
uint32_t num;
/** Region offset. */
uint32_t base;