GlobLib
HAL and API libraries for MCUs and hardware.
stm32f103cb_flash.c File Reference

Source file for stm32f103cb flash. More...

Go to the source code of this file.

Macros

#define FLASH_PAGE_SIZE   255
 The size of each page in words, used internally.
 
#define FLASH_PAGE_BASE   0x8000000
 The flash starting address, used internally.
 

Functions

mcu_error FLASH_clearPage (uint32_t pageNumber)
 Clear a page (1kb) of flash. More...
 
mcu_error FLASH_write (uint32_t pageNumber, uint32_t address, uint32_t data)
 Write a single word to flash. More...
 
mcu_error FLASH_writes (uint32_t pageNumber, uint32_t address, uint32_t *data, uint16_t size)
 Write multiple words to flash, address incremented automatically. More...
 
uint32_t FLASH_read (uint32_t pageNumber, uint32_t address)
 Read a single word from flash memory. More...
 
mcu_error FLASH_reads (uint32_t pageNumber, uint32_t address, uint32_t *container, uint16_t size)
 Read multiple words from flash. More...
 
mcu_error FLASH_readPage (uint32_t pageNumber, uint32_t *container)
 Read an entire page from flash. More...
 
uint8_t FLASH_pageEmpty (uint32_t pageNumber)
 Determine if a given page is empty. More...
 
uint8_t FLASH_firstEmptyPage (void)
 Get the first empty page is flash. More...
 

Detailed Description

Source file for stm32f103cb flash.


Author
Stuart Ianna
Version
0.1
Date
June 2018
Warning
None
Bug:
Compilers
  • arm-none-eabi-gcc (15:4.9.3+svn231177-1) 4.9.3 20150529 (prerelease)

Definition in file stm32f103cb_flash.c.