Lines Matching +full:front +full:- +full:end

11 power failure (or during some low-power modes on some devices) nor should it be
12 stored to a non-volatile storage like :ref:`flash_api`, :ref:`eeprom_api`, or
13 battery-backed RAM.
16 additional software-level features to it for ensuring the validity of data.
17 Optionally, a magic header can be used to check if the front of
19 checksum (1, 2, or 4-bytes in size) of the stored data can be appended to the
20 end of the data. Additionally, the retention system API allows partitioning of
21 the retained data sections into multiple distinct areas. For example, a 64-byte
25 per-instance using devicetree.
32 RAM as non-init for this purpose. The retention system is then initialised as a
33 child node of this device 1 or more times - note that the memory region will
38 .. code-block:: devicetree
42 compatible = "zephyr,memory-region", "mmio-sram";
44 zephyr,memory-region = "RetainedMem";
48 compatible = "zephyr,retained-ram";
50 #address-cells = <1>;
51 #size-cells = <1>;
53 /* This creates a 256-byte partition */
61 * data storage area is 256 - 3 = 253
67 * at the front of the data
71 /* This uses a 1-byte checksum */
75 /* This creates a 768-byte partition */
80 /* Start position must be after the end
85 * storage area is 768 - 6 = 762 bytes
90 * at the front of the data
102 /* Reduce SRAM0 usage by 1KB to account for non-init area */
112 .. code-block:: C
132 areas by enabling :kconfig:option:`CONFIG_RETENTION_MUTEX_FORCE_DISABLE` -
152 node of ``zephyr,boot-mode``. See the following example:
154 .. code-block:: devicetree
158 compatible = "zephyr,memory-region", "mmio-sram";
160 zephyr,memory-region = "RetainedMem";
164 compatible = "zephyr,retained-ram";
166 #address-cells = <1>;
167 #size-cells = <1>;
178 zephyr,boot-mode = &retention0;
182 /* Reduce SRAM0 usage by 1 byte to account for non-init area */
193 .. code-block:: C