summaryrefslogtreecommitdiff
path: root/flash.h
blob: 739fefa61c8fa4709a64124c2f843b5697e81d7d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#ifndef FLASH_H_
#define FLASH_H_

#include "globals.h"
#include <glib.h>

void initFlash(FlashStruct *mem, gboolean reset_to_defaults, int starting_location);
int readUserBlock(FlashStruct *mem);
void writeUserBlock(FlashStruct *mem, int addr, int numbytes);
void fixFlash(FlashStruct *mem);

#endif