11#ifndef PHAL_G4_FLASH_PRIV_H
12#define PHAL_G4_FLASH_PRIV_H
uint32_t FLASH_PRIV_get_page_size_bytes(void)
Determine the active page size from the dual-bank option bit.
Definition flash_priv.c:292
bool FLASH_PRIV_end_operation(const flash_operation_context_t *context)
Finalize a completed operation, restore cache state, lock the controller, and release the operation l...
Definition flash_priv.c:260
bool FLASH_PRIV_erase_page(uint32_t page_address)
Erase one complete flash page.
Definition flash_priv.c:314
bool FLASH_PRIV_begin_read(void)
Acquire the flash operation lock, wait for idle, and clear status.
Definition flash_priv.c:211
bool FLASH_PRIV_begin_operation(flash_operation_context_t *context)
Prepare the controller for programming or page erase.
Definition flash_priv.c:234
bool FLASH_PRIV_program_double_word(uint32_t address, uint64_t data)
Program one STM32G4 double word.
Definition flash_priv.c:296
bool FLASH_PRIV_end_read(void)
Finish a read operation and release the operation lock.
Definition flash_priv.c:226
uint32_t FLASH_PRIV_get_size_bytes(void)
Read the device-reported internal flash capacity.
Definition flash_priv.c:280
Definition flash_priv.h:18
bool data_cache_enabled
Definition flash_priv.h:20
bool instruction_cache_enabled
Definition flash_priv.h:19