PER Firmware
Loading...
Searching...
No Matches
flash.h File Reference
#include "common/phal_F4_F7/phal_F4_F7.h"

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