EE445M RTOS
Taken at the University of Texas Spring 2015
flash.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define FLASH_INT_PROGRAM   0x00000002
 
#define FLASH_INT_ACCESS   0x00000001
 
#define FLASH_INT_EEPROM   0x00000004
 
#define FLASH_INT_VOLTAGE_ERR   0x00000200
 
#define FLASH_INT_DATA_ERR   0x00000400
 
#define FLASH_INT_ERASE_ERR   0x00000800
 
#define FLASH_INT_PROGRAM_ERR   0x00002000
 

Enumerations

enum  tFlashProtection { FlashReadWrite, FlashReadOnly, FlashExecuteOnly }
 

Functions

int32_t FlashErase (uint32_t ui32Address)
 
int32_t FlashProgram (uint32_t *pui32Data, uint32_t ui32Address, uint32_t ui32Count)
 
tFlashProtection FlashProtectGet (uint32_t ui32Address)
 
int32_t FlashProtectSet (uint32_t ui32Address, tFlashProtection eProtect)
 
int32_t FlashProtectSave (void)
 
int32_t FlashUserGet (uint32_t *pui32User0, uint32_t *pui32User1)
 
int32_t FlashUserSet (uint32_t ui32User0, uint32_t ui32User1)
 
int32_t FlashUserSave (void)
 
void FlashIntRegister (void(*pfnHandler)(void))
 
void FlashIntUnregister (void)
 
void FlashIntEnable (uint32_t ui32IntFlags)
 
void FlashIntDisable (uint32_t ui32IntFlags)
 
uint32_t FlashIntStatus (bool bMasked)
 
void FlashIntClear (uint32_t ui32IntFlags)
 

Macro Definition Documentation

#define FLASH_INT_ACCESS   0x00000001

Definition at line 75 of file flash.h.

#define FLASH_INT_DATA_ERR   0x00000400

Definition at line 78 of file flash.h.

#define FLASH_INT_EEPROM   0x00000004

Definition at line 76 of file flash.h.

#define FLASH_INT_ERASE_ERR   0x00000800

Definition at line 79 of file flash.h.

#define FLASH_INT_PROGRAM   0x00000002

Definition at line 74 of file flash.h.

#define FLASH_INT_PROGRAM_ERR   0x00002000

Definition at line 80 of file flash.h.

#define FLASH_INT_VOLTAGE_ERR   0x00000200

Definition at line 77 of file flash.h.

Enumeration Type Documentation

Enumerator
FlashReadWrite 
FlashReadOnly 
FlashExecuteOnly 

Definition at line 60 of file flash.h.

61 {
62  FlashReadWrite, // Flash can be read and written
63  FlashReadOnly, // Flash can only be read
64  FlashExecuteOnly // Flash can only be executed
65 }