Home
last modified time | relevance | path

Searched refs:boot_count (Results 1 – 3 of 3) sorted by relevance

/Zephyr-latest/tests/drivers/flash_simulator/flash_sim_reboot/src/
Dmain.c19 static uint32_t boot_count __noinit;
26 if (boot_count == 0) { in ZTEST()
34 boot_count += 1; in ZTEST()
37 } else if (boot_count == 1) { in ZTEST()
43 zassert_unreachable("Unexpected boot_count value %d", boot_count); in ZTEST()
/Zephyr-latest/samples/drivers/eeprom/src/
Dmain.c17 uint32_t boot_count; member
60 values.boot_count = 0; in main()
63 values.boot_count++; in main()
64 printk("Device booted %d times.\n", values.boot_count); in main()
/Zephyr-latest/samples/subsys/fs/littlefs/src/
Dmain.c70 uint8_t boot_count = 0; in littlefs_increase_infile_value() local
81 rc = fs_read(&file, &boot_count, sizeof(boot_count)); in littlefs_increase_infile_value()
86 LOG_PRINTK("%s read count:%u (bytes: %d)\n", fname, boot_count, rc); in littlefs_increase_infile_value()
94 boot_count += 1; in littlefs_increase_infile_value()
95 rc = fs_write(&file, &boot_count, sizeof(boot_count)); in littlefs_increase_infile_value()
102 boot_count, rc); in littlefs_increase_infile_value()