1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-25 06:23:53 +01:00

cpu/native: read/persist EEPROM data at startup/reboot/exit

This commit is contained in:
Alexandre Abadie 2019-11-13 08:23:00 +01:00
parent 4e1d7abddc
commit cbdda3c990
No known key found for this signature in database
GPG Key ID: 1C919A403CAE1405

View File

@ -47,6 +47,10 @@
#include "periph/init.h"
#include "periph/pm.h"
#ifdef MODULE_PERIPH_EEPROM
#include "eeprom_native.h"
#endif
#define ENABLE_DEBUG (0)
#include "debug.h"
@ -583,6 +587,10 @@ __attribute__((constructor)) static void startup(int argc, char **argv, char **e
}
#endif
#ifdef MODULE_PERIPH_EEPROM
eeprom_native_read();
#endif
periph_init();
board_init();