/Zephyr-latest/samples/boards/nordic/system_off/src/ |
D | retained.c | 7 #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 …]
|
D | retained.h | 13 /* 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.
|
D | main.c | 7 #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/ |
D | Kconfig.zephyr | 5 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.
|
D | Kconfig | 5 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
|
D | Kconfig.nrf | 9 Enable driver for Nordic nRF GPREGRET-based retained memory
|
/Zephyr-latest/doc/hardware/peripherals/ |
D | retained_mem.rst | 3 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/ |
D | retained_mem.h | 9 * @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/ |
D | sample.yaml | 24 - "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 …]
|
D | CMakeLists.txt | 9 target_sources(app PRIVATE src/retained.c)
|
/Zephyr-latest/dts/bindings/retained_mem/ |
D | zephyr,retained-reg.yaml | 5 description: Retained register based retained memory area. 7 compatible: "zephyr,retained-reg"
|
D | zephyr,retained-ram.yaml | 4 description: Uninitialised RAM-based retained memory area. 6 compatible: "zephyr,retained-ram"
|
/Zephyr-latest/samples/boards/nordic/system_off/boards/ |
D | nrf52840dk_nrf52840.overlay | 9 compatible = "zephyr,retained-ram"; 20 /* Shrink SRAM size to avoid overlap with retained memory region */
|
D | nrf52dk_nrf52832.overlay | 9 compatible = "zephyr,retained-ram"; 20 /* Shrink SRAM size to avoid overlap with retained memory region */
|
D | nrf54l15dk_nrf54l15_cpuapp.overlay | 9 compatible = "zephyr,retained-ram"; 20 /* Shrink SRAM size to avoid overlap with retained memory region */
|
D | nrf54l15dk_nrf54l05_cpuapp.overlay | 9 compatible = "zephyr,retained-ram"; 20 /* Shrink SRAM size to avoid overlap with retained memory region:
|
D | nrf54l15dk_nrf54l10_cpuapp.overlay | 9 compatible = "zephyr,retained-ram"; 20 /* Shrink SRAM size to avoid overlap with retained memory region:
|
D | nrf54l20pdk_nrf54l20_cpuapp.overlay | 9 compatible = "zephyr,retained-ram"; 20 /* Shrink SRAM size to avoid overlap with retained memory region:
|
/Zephyr-latest/tests/drivers/retained_mem/api/boards/ |
D | nrf54l15dk_nrf54l05_cpuapp.overlay | 9 compatible = "zephyr,retained-ram"; 20 /* Shrink SRAM size to avoid overlap with retained memory region:
|
D | nrf54l15dk_nrf54l10_cpuapp.overlay | 9 compatible = "zephyr,retained-ram"; 20 /* Shrink SRAM size to avoid overlap with retained memory region:
|
D | nrf54l20pdk_nrf54l20_cpuapp.overlay | 9 compatible = "zephyr,retained-ram"; 20 /* Shrink SRAM size to avoid overlap with retained memory region:
|
/Zephyr-latest/doc/services/retention/ |
D | index.rst | 15 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/ |
D | Kconfig | 10 Enables support for the retention system, which uses retained memory 20 priorities for retained memory drivers).
|
/Zephyr-latest/dts/bindings/retention/ |
D | zephyr,retention.yaml | 5 Retention subsystem area, which has a retained memory parent. Example 16 compatible = "zephyr,retained-ram";
|
/Zephyr-latest/tests/drivers/retained_mem/api/ |
D | Kconfig | 7 mainmenu "Retained memory test"
|