| Example |
#include <file_config.h>
/* Embedded Flash Device Driver Control Block */
EFS_DRV fl0_drv = {
Init,
UnInit,
ReadData,
ProgramPage,
EraseSector,
EraseChip
};
/* Initialize flash programming functions. */
static BOOL Init (U32 adr, U32 clk) {
base_adr = adr;
return (__TRUE);
}
|