Home
last modified time | relevance | path

Searched full:retained (Results 1 – 25 of 83) sorted by relevance

1234

/Zephyr-latest/samples/boards/nordic/system_off/src/
Dretained.c7 #include "retained.h"
24 struct retained_data retained; variable
27 #define RETAINED_CHECKED_SIZE (RETAINED_CRC_OFFSET + sizeof(retained.crc))
33 rc = retained_mem_read(retained_mem_device, 0, (uint8_t *)&retained, sizeof(retained)); in retained_validate()
42 uint32_t crc = crc32_ieee((const uint8_t *)&retained, in retained_validate()
46 /* If the CRC isn't valid, reset the retained data. */ in retained_validate()
48 memset(&retained, 0, sizeof(retained)); in retained_validate()
52 retained.uptime_latest = 0; in retained_validate()
63 retained.uptime_sum += (now - retained.uptime_latest); in retained_update()
64 retained.uptime_latest = now; in retained_update()
[all …]
Dretained.h13 /* Example of validatable retained data. */
16 * retained data was updated.
31 /* CRC used to validate the retained data. This must be
39 * manipulate the retained state.
41 extern struct retained_data retained;
43 /* Check whether the retained data is valid, and if not reset it.
50 /* Update any generic retained state and recalculate its checksum so
51 * subsequent boots can verify the retained state.
Dmain.c7 #include "retained.h"
47 retained.boots += 1; in main()
50 printf("Retained data: %s\n", retained_ok ? "valid" : "INVALID"); in main()
51 printf("Boot count: %u\n", retained.boots); in main()
52 printf("Off count: %u\n", retained.off_count); in main()
53 printf("Active Ticks: %" PRIu64 "\n", retained.uptime_sum); in main()
55 printf("Retained data not supported\n"); in main()
96 /* Update the retained state */ in main()
97 retained.off_count += 1; in main()
/Zephyr-latest/drivers/retained_mem/
DKconfig.zephyr5 bool "Generic Zephyr RAM retained memory driver"
9 Enable driver for retained memory in RAM.
12 bool "Generic Zephyr register retained memory driver"
16 Enable driver for retained memory in retained registers.
DKconfig5 bool "Retained memory drivers"
13 int "Retained memory devices init priority"
16 Retained memory devices initialization priority,
25 bool "Disable retained memory mutex support"
28 Disable use of mutexes which prevent issues with concurrent retained
29 memory access. This option should only be enabled when retained
DKconfig.nrf9 Enable driver for Nordic nRF GPREGRET-based retained memory
/Zephyr-latest/doc/hardware/peripherals/
Dretained_mem.rst3 Retained Memory
9 The retained memory driver API provides a way of reading from/writing to memory
10 areas whereby the contents of the memory is retained whilst the device is
25 Mutex protection of retained memory drivers is enabled by default when
27 different threads can safely call the retained memory functions without
28 clashing with other concurrent thread function usage, but means that retained
30 protection globally on all retained memory drivers by enabling
/Zephyr-latest/include/zephyr/drivers/
Dretained_mem.h9 * @brief Public API for retained memory drivers
31 * @brief Retained memory driver interface
32 * @defgroup retained_mem_interface Retained memory driver interface
41 * @brief Callback API to get size of retained memory area.
48 * @brief Callback API to read from retained memory area.
56 * @brief Callback API to write to retained memory area.
64 * @brief Callback API to clear retained memory area (reset all data to 0x00).
70 * @brief Retained memory driver API
71 * API which can be used by a device to store data in a retained memory area. Retained memory is
72 * memory that is retained while the device is powered but is lost when power to the device is
[all …]
/Zephyr-latest/samples/boards/nordic/system_off/
Dsample.yaml24 - "Retained data not supported"
44 - "Retained data: INVALID"
64 - "Retained data not supported"
67 - "Retained data not supported"
70 - "Retained data not supported"
88 - "Retained data: INVALID"
94 - "Retained data: valid"
113 - "Retained data not supported"
116 - "Retained data not supported"
119 - "Retained data not supported"
[all …]
DCMakeLists.txt9 target_sources(app PRIVATE src/retained.c)
/Zephyr-latest/dts/bindings/retained_mem/
Dzephyr,retained-reg.yaml5 description: Retained register based retained memory area.
7 compatible: "zephyr,retained-reg"
Dzephyr,retained-ram.yaml4 description: Uninitialised RAM-based retained memory area.
6 compatible: "zephyr,retained-ram"
/Zephyr-latest/samples/boards/nordic/system_off/boards/
Dnrf52840dk_nrf52840.overlay9 compatible = "zephyr,retained-ram";
20 /* Shrink SRAM size to avoid overlap with retained memory region */
Dnrf52dk_nrf52832.overlay9 compatible = "zephyr,retained-ram";
20 /* Shrink SRAM size to avoid overlap with retained memory region */
Dnrf54l15dk_nrf54l15_cpuapp.overlay9 compatible = "zephyr,retained-ram";
20 /* Shrink SRAM size to avoid overlap with retained memory region */
Dnrf54l15dk_nrf54l05_cpuapp.overlay9 compatible = "zephyr,retained-ram";
20 /* Shrink SRAM size to avoid overlap with retained memory region:
Dnrf54l15dk_nrf54l10_cpuapp.overlay9 compatible = "zephyr,retained-ram";
20 /* Shrink SRAM size to avoid overlap with retained memory region:
Dnrf54l20pdk_nrf54l20_cpuapp.overlay9 compatible = "zephyr,retained-ram";
20 /* Shrink SRAM size to avoid overlap with retained memory region:
/Zephyr-latest/tests/drivers/retained_mem/api/boards/
Dnrf54l15dk_nrf54l05_cpuapp.overlay9 compatible = "zephyr,retained-ram";
20 /* Shrink SRAM size to avoid overlap with retained memory region:
Dnrf54l15dk_nrf54l10_cpuapp.overlay9 compatible = "zephyr,retained-ram";
20 /* Shrink SRAM size to avoid overlap with retained memory region:
Dnrf54l20pdk_nrf54l20_cpuapp.overlay9 compatible = "zephyr,retained-ram";
20 /* Shrink SRAM size to avoid overlap with retained memory region:
/Zephyr-latest/doc/services/retention/
Dindex.rst15 The retention system builds on top of the retained data driver, and adds
18 the retained data memory section contains this specific value, and an optional
21 the retained data sections into multiple distinct areas. For example, a 64-byte
22 retained data area could be split up into 4 bytes for a boot mode, 16 bytes for
30 To use the retention system, a retained data driver must be setup for the board
48 compatible = "zephyr,retained-ram";
164 compatible = "zephyr,retained-ram";
/Zephyr-latest/subsys/retention/
DKconfig10 Enables support for the retention system, which uses retained memory
20 priorities for retained memory drivers).
/Zephyr-latest/dts/bindings/retention/
Dzephyr,retention.yaml5 Retention subsystem area, which has a retained memory parent. Example
16 compatible = "zephyr,retained-ram";
/Zephyr-latest/tests/drivers/retained_mem/api/
DKconfig7 mainmenu "Retained memory test"

1234