1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/msb-430-common/config.c
Oliver Hahm d00b12ef75 * introduced flashrom driver for msb430
* restructured some files concerning flashrom access
* added some ifdefs to shell commands
2010-12-03 22:22:58 +01:00

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)));
}