px-fwlib 0.10.0
Cross-platform embedded library and documentation for 8/16/32-bit microcontrollers generated with Doxygen 1.9.2

Description

This module can erase a page and write a half page of internal FLASH.

File(s):

Note
The flash erase and program functions must be executed from SRAM, not FLASH.

Functions

void px_flash_unlock (void)
 Unlock FLASH for programming and erase. More...
 
void px_flash_lock (void)
 Lock FLASH to prevent programming or erase. More...
 
void px_flash_erase_page (uint32_t adr)
 Function to erase a page. More...
 

Function Documentation

◆ px_flash_unlock()

void px_flash_unlock ( void  )

Unlock FLASH for programming and erase.

Definition at line 40 of file px_flash.c.

◆ px_flash_lock()

void px_flash_lock ( void  )

Lock FLASH to prevent programming or erase.

Definition at line 64 of file px_flash.c.

◆ px_flash_erase_page()

void px_flash_erase_page ( uint32_t  adr)

Function to erase a page.

Parameters
adrPage address