PER Firmware
Loading...
Searching...
No Matches
flash.h File Reference
Include dependency graph for flash.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define FLASH_KEY_1   0x45670123
 
#define FLASH_KEY_2   0xCDEF89AB
 
#define PHAL_FLASH_TIMEOUT   500000U
 

Enumerations

enum  { FLASH_OK = 0 , FLASH_FAIL , FLASH_ADDR_NOT_CLEARED , FLASH_TIMEOUT }
 

Functions

uint32_t PHAL_flashReadU32 (uint32_t addr)
 
uint8_t PHAL_flashWriteU32 (uint32_t address, uint32_t value)
 
uint8_t PHAL_flashWriteU32_Buffered (uint32_t Address, uint32_t *data, uint32_t count)
 
uint8_t PHAL_flashWriteU64 (uint32_t address, uint64_t data)
 
uint8_t PHAL_flashErasePage (uint8_t page)
 
uint8_t PHAL_flashErase (uint32_t *addr, uint32_t words)
 

Detailed Description

Author
Chris McGalliard - port of L4 by Adam Busch (busch.nosp@m.8@pu.nosp@m.rdue..nosp@m.edu)
Version
0.1
Date
2023-08-28

Macro Definition Documentation

◆ FLASH_KEY_1

#define FLASH_KEY_1   0x45670123

◆ FLASH_KEY_2

#define FLASH_KEY_2   0xCDEF89AB

◆ PHAL_FLASH_TIMEOUT

#define PHAL_FLASH_TIMEOUT   500000U

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
FLASH_OK 
FLASH_FAIL 
FLASH_ADDR_NOT_CLEARED 
FLASH_TIMEOUT 

Function Documentation

◆ PHAL_flashErase()

uint8_t PHAL_flashErase ( uint32_t * addr,
uint32_t words )
Here is the call graph for this function:

◆ PHAL_flashErasePage()

uint8_t PHAL_flashErasePage ( uint8_t page)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ PHAL_flashReadU32()

uint32_t PHAL_flashReadU32 ( uint32_t addr)
Here is the call graph for this function:

◆ PHAL_flashWriteU32()

uint8_t PHAL_flashWriteU32 ( uint32_t address,
uint32_t value )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ PHAL_flashWriteU32_Buffered()

uint8_t PHAL_flashWriteU32_Buffered ( uint32_t Address,
uint32_t * data,
uint32_t count )
Here is the call graph for this function:

◆ PHAL_flashWriteU64()

uint8_t PHAL_flashWriteU64 ( uint32_t address,
uint64_t data )
Here is the call graph for this function: