PER Firmware
Loading...
Searching...
No Matches
flash.c File Reference
Include dependency graph for flash.c:

Functions

static uint32_t flashGetSector (uint32_t addr)
 Convert address to sector number Assumes addr is within flash addr space.
 
static uint8_t flashUnlock ()
 
static void flashLock ()
 
uint32_t PHAL_flashReadU32 (uint32_t addr)
 
uint8_t PHAL_flashWriteU32 (uint32_t Address, uint32_t value)
 
uint8_t PHAL_flashWriteU64 (uint32_t Address, uint64_t Data)
 
uint8_t PHAL_flashWriteU32_Buffered (uint32_t Address, uint32_t *data, uint32_t count)
 
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

Function Documentation

◆ flashGetSector()

static uint32_t flashGetSector ( uint32_t addr)
static

Convert address to sector number Assumes addr is within flash addr space.

Parameters
addrFlash address
Returns
The flash sector
Here is the caller graph for this function:

◆ flashLock()

static void flashLock ( )
static
Here is the caller graph for this function:

◆ flashUnlock()

static uint8_t flashUnlock ( )
static
Here is the caller graph for this function:

◆ 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: