mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
d00b12ef75
* restructured some files concerning flashrom access * added some ifdefs to shell commands
10 lines
281 B
C
10 lines
281 B
C
#include <stdint.h>
|
|
#include <board-conf.h>
|
|
#include <config.h>
|
|
#include <flashrom.h>
|
|
|
|
uint8_t config_save(void) {
|
|
configmem_t mem = { CONFIG_KEY, sysconfig };
|
|
return (flashrom_erase((uint8_t*) INFOMEM) && flashrom_write((uint8_t*) INFOMEM, (char*) &mem, sizeof(mem)));
|
|
}
|