74 #define FLASH_INT_PROGRAM 0x00000002 // Programming Interrupt Mask 75 #define FLASH_INT_ACCESS 0x00000001 // Access Interrupt Mask 76 #define FLASH_INT_EEPROM 0x00000004 // EEPROM Interrupt Mask 77 #define FLASH_INT_VOLTAGE_ERR 0x00000200 // Voltage Error Interrupt Mask 78 #define FLASH_INT_DATA_ERR 0x00000400 // Invalid Data Interrupt Mask 79 #define FLASH_INT_ERASE_ERR 0x00000800 // Erase Error Interrupt Mask 80 #define FLASH_INT_PROGRAM_ERR 0x00002000 // Program Verify Error Interrupt Mask 89 extern long FlashErase(
unsigned long ulAddress);
93 extern long FlashProgram(
unsigned long *pulData,
unsigned long ulAddress,
94 unsigned long ulCount);
96 unsigned long ulAddress,
97 unsigned long ulCount);
115 #endif // __FLASH_H__ long FlashProgram(unsigned long *pulData, unsigned long ulAddress, unsigned long ulCount)
Definition: flash.c:375
long FlashErase(unsigned long ulAddress)
Definition: flash.c:187
long FlashProgramNonBlocking(unsigned long *pulData, unsigned long ulAddress, unsigned long ulCount)
Definition: flash.c:520
void FlashIntUnregister(void)
Definition: flash.c:735
void FlashIntRegister(void(*pfnHandler)(void))
Definition: flash.c:707
void FlashIntEnable(unsigned long ulIntFlags)
Definition: flash.c:763
void FlashDisable(void)
Definition: flash.c:129
void FlashEraseNonBlocking(unsigned long ulAddress)
Definition: flash.c:251
void FlashIntClear(unsigned long ulIntFlags)
Definition: flash.c:850
tFlashProtection FlashProtectGet(unsigned long ulAddress)
Definition: flash.c:623
void FlashIntDisable(unsigned long ulIntFlags)
Definition: flash.c:786
void FlashMassEraseNonBlocking(void)
Definition: flash.c:333
unsigned long FlashIntStatus(tBoolean bMasked)
Definition: flash.c:810
long FlashMassErase(void)
Definition: flash.c:283