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:
parent
4e1d7abddc
commit
cbdda3c990
@ -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();
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user