1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/board/msba2/config.c
Oliver Hahm a46cdf189a * introduced identifiers (include shell commands to get and set)
* introduced a system wide configuration
2010-12-01 16:26:48 +01:00

9 lines
261 B
C

#include <stdint.h>
#include <config.h>
#include <flashrom.h>
uint8_t config_save(void) {
configmem_t mem = { CONFIG_KEY, sysconfig };
return (flashrom_erase((uint32_t) configmem) && flashrom_write((uint32_t) configmem, (char*) &mem, sizeof(mem)));
}