#ifndef FLASH_INCLUDED
#define FLASH_INCLUDED

#include <IOReadWrite.h>

void Flash_Create(void);
void Flash_Destroy(void);
int Flash_Program(IOAddress offset, IOData data);

enum FlashStatus
{
    FlashSuccess = 0,
    FlashVppError,
    FlashProgramError,
    FlashProgramProtectedBlockError,
    FlashUnknownProgramError,
    FlashReadBackError
};

#endif
