Searched refs:store_data (Results 1 – 2 of 2) sorted by relevance
/hal_espressif-3.5.0/examples/storage/partition_api/partition_ops/main/ |
D | main.c | 30 static char store_data[] = "ESP-IDF Partition Operations Example (Read, Erase, Write)"; in app_main() local 31 static char read_data[sizeof(store_data)]; in app_main() 38 ESP_ERROR_CHECK(esp_partition_write(partition, 0, store_data, sizeof(store_data))); in app_main() 39 ESP_LOGI(TAG, "Written data: %s", store_data); in app_main() 43 assert(memcmp(store_data, read_data, sizeof(read_data)) == 0); in app_main() 51 memset(store_data, 0xFF, sizeof(read_data)); in app_main() 53 assert(memcmp(store_data, read_data, sizeof(read_data)) == 0); in app_main()
|
/hal_espressif-3.5.0/examples/storage/partition_api/partition_mmap/main/ |
D | main.c | 30 static const char store_data[] = "ESP-IDF Partition Memory Map Example"; in app_main() local 34 ESP_ERROR_CHECK(esp_partition_write(partition, 0, store_data, sizeof(store_data))); in app_main() 35 ESP_LOGI(TAG, "Written sample data to partition: %s", store_data); in app_main() 45 char read_data[sizeof(store_data)]; in app_main() 49 assert(strcmp(store_data, read_data) == 0); in app_main()
|