38 #ifndef __DRIVERLIB_FLASH_H__ 39 #define __DRIVERLIB_FLASH_H__ 75 #define FLASH_INT_PROGRAM 0x00000002 // Programming Interrupt Mask 76 #define FLASH_INT_ACCESS 0x00000001 // Access Interrupt Mask 77 #define FLASH_INT_EEPROM 0x00000004 // EEPROM Interrupt Mask 78 #define FLASH_INT_VOLTAGE_ERR 0x00000200 // Voltage Error Interrupt Mask 79 #define FLASH_INT_DATA_ERR 0x00000400 // Invalid Data Interrupt Mask 80 #define FLASH_INT_ERASE_ERR 0x00000800 // Erase Error Interrupt Mask 81 #define FLASH_INT_PROGRAM_ERR 0x00002000 // Program Verify Error Interrupt Mask 88 extern int32_t
FlashErase(uint32_t ui32Address);
89 extern int32_t
FlashProgram(uint32_t *pui32Data, uint32_t ui32Address,
93 tFlashProtection eProtect);
95 extern int32_t
FlashUserGet(uint32_t *pui32User0, uint32_t *pui32User1);
96 extern int32_t
FlashUserSet(uint32_t ui32User0, uint32_t ui32User1);
100 uint32_t *pui32User3);
123 #endif // __DRIVERLIB_FLASH_H__
int32_t FlashUserSave(void)
Definition: flash.c:663
int32_t FlashErase(uint32_t ui32Address)
Definition: flash.c:125
int32_t FlashAllUserRegisterGet(uint32_t *pui32User0, uint32_t *pui32User1, uint32_t *pui32User2, uint32_t *pui32User3)
Definition: flash.c:591
int32_t FlashProgram(uint32_t *pui32Data, uint32_t ui32Address, uint32_t ui32Count)
Definition: flash.c:187
void FlashIntUnregister(void)
Definition: flash.c:799
tFlashProtection
Definition: flash.h:61
void FlashIntRegister(void(*pfnHandler)(void))
Definition: flash.c:771
int32_t FlashProtectSet(uint32_t ui32Address, tFlashProtection eProtect)
Definition: flash.c:358
void FlashIntDisable(uint32_t ui32IntFlags)
Definition: flash.c:876
int32_t FlashAllUserRegisterSave(void)
Definition: flash.c:715
tFlashProtection FlashProtectGet(uint32_t ui32Address)
Definition: flash.c:270
uint32_t FlashIntStatus(bool bMasked)
Definition: flash.c:902
void FlashIntClear(uint32_t ui32IntFlags)
Definition: flash.c:957
int32_t FlashUserGet(uint32_t *pui32User0, uint32_t *pui32User1)
Definition: flash.c:527
void FlashIntEnable(uint32_t ui32IntFlags)
Definition: flash.c:840
int32_t FlashUserSet(uint32_t ui32User0, uint32_t ui32User1)
Definition: flash.c:561
int32_t FlashAllUserRegisterSet(uint32_t ui32User0, uint32_t ui32User1, uint32_t ui32User2, uint32_t ui32User3)
Definition: flash.c:632
int32_t FlashProtectSave(void)
Definition: flash.c:484