Home
last modified time | relevance | path

Searched refs:retained (Results 1 – 25 of 41) sorted by relevance

12

/Zephyr-latest/samples/boards/nordic/system_off/src/
Dretained.c24 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()
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()
66 uint32_t crc = crc32_ieee((const uint8_t *)&retained, in retained_update()
69 retained.crc = sys_cpu_to_le32(crc); in retained_update()
[all …]
Dmain.c47 retained.boots += 1; 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()
97 retained.off_count += 1; in main()
Dretained.h41 extern struct retained_data retained;
/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.
DKconfig25 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.rst9 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/samples/boards/nordic/system_off/boards/
Dnrf52dk_nrf52832.overlay9 compatible = "zephyr,retained-ram";
20 /* Shrink SRAM size to avoid overlap with retained memory region */
Dnrf52840dk_nrf52840.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_nrf54l15_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:
Dnrf54h20dk_nrf54h20_cpuapp.overlay9 compatible = "zephyr,retained-ram";
Dnrf54l15dk_nrf54l15_cpuapp.overlay9 compatible = "zephyr,retained-ram";
Dnrf54h20dk_nrf54h20_cpurad.overlay9 compatible = "zephyr,retained-ram";
Dqemu_cortex_m3.overlay11 compatible = "zephyr,retained-ram";
Dnrf52840dk_nrf52840_ram.overlay9 compatible = "zephyr,retained-ram";
/Zephyr-latest/samples/boards/nordic/system_off/
DCMakeLists.txt9 target_sources(app PRIVATE src/retained.c)
/Zephyr-latest/samples/subsys/mgmt/mcumgr/smp_svr/sysbuild/
Dnrf52840dk_nrf52840_mcuboot_ram_load.overlay9 compatible = "zephyr,retained-ram";
/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).

12