00001
00015 #ifndef FLASH_LIB_H
00016 #define FLASH_LIB_H
00017
00018
00019
00020
00021 #include "config.h"
00022
00023
00024
00025
00026 #define FLASH_BLANK_VALUE 0xFF
00027
00028
00029
00030
00038 extern void flash_wr_byte(Uint32 addr_byte, Uchar value);
00039
00049 extern Uchar flash_wr_block(Byte _MemType_* src, Uint32 dst, Uchar n);
00050
00055 extern void flash_erase(void);
00056
00064 extern Uchar flash_rd_byte(Uchar code* addr);
00065
00073 extern Uint16 flash_rd_word(Uint16 code* addr);
00074
00075 #endif
00076
00077
00078
00079
00080
00081
00082
00083
00084
00085
00086
00087
00088
00089