/**************************************************************************************************************************** multiFileProject.h For Realtek RTL8720DN, etc. using Flash The FlashStorage_RTL8720DN library aims to provide a convenient way to store and retrieve user's data using the non-volatile flash memory of RTL8720DN, etc.. It's using the buffered read and write to minimize the access to Flash. It now supports writing and reading the whole object, not just byte-and-byte. Inspired by Cristian Maglie's FlashStorage (https://github.com/cmaglie/FlashStorage) Built by Khoi Hoang https://github.com/khoih-prog/FlashStorage_RTL8720DN Licensed under MIT license *****************************************************************************************************************************/ // To demo how to include files in multi-file Projects #pragma once // Can be included as many times as necessary, without `Multiple Definitions` Linker Error #include "FlashStorage_RTL8720.h" const int WRITTEN_SIGNATURE = 0xBEEFDEED; // Create a structure that is big enough to contain a name // and a surname. The "valid" variable is set to "true" once // the structure is filled with actual data for the first time. typedef struct { char name[100]; char surname[100]; } Person; void testFlashStorage();