40 #ifndef __DRIVERLIB_FLASH_H__
41 #define __DRIVERLIB_FLASH_H__
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
87 extern int32_t
FlashErase(uint32_t ui32Address);
88 extern int32_t
FlashProgram(uint32_t *pui32Data, uint32_t ui32Address,
92 tFlashProtection eProtect);
94 extern int32_t
FlashUserGet(uint32_t *pui32User0, uint32_t *pui32User1);
95 extern int32_t
FlashUserSet(uint32_t ui32User0, uint32_t ui32User1);
113 #endif // __DRIVERLIB_FLASH_H__
int32_t FlashUserSave(void)
Definition: flash.c:570
int32_t FlashErase(uint32_t ui32Address)
Definition: flash.c:102
int32_t FlashProgram(uint32_t *pui32Data, uint32_t ui32Address, uint32_t ui32Count)
Definition: flash.c:168
void FlashIntUnregister(void)
Definition: flash.c:654
void FlashIntRegister(void(*pfnHandler)(void))
Definition: flash.c:626
int32_t FlashProtectSet(uint32_t ui32Address, tFlashProtection eProtect)
Definition: flash.c:339
void FlashIntDisable(uint32_t ui32IntFlags)
Definition: flash.c:705
tFlashProtection FlashProtectGet(uint32_t ui32Address)
Definition: flash.c:251
uint32_t FlashIntStatus(bool bMasked)
Definition: flash.c:729
void FlashIntClear(uint32_t ui32IntFlags)
Definition: flash.c:769
int32_t FlashUserGet(uint32_t *pui32User0, uint32_t *pui32User1)
Definition: flash.c:508
void FlashIntEnable(uint32_t ui32IntFlags)
Definition: flash.c:682
int32_t FlashUserSet(uint32_t ui32User0, uint32_t ui32User1)
Definition: flash.c:542
int32_t FlashProtectSave(void)
Definition: flash.c:465